This is the Megaport Go Library. It allows users to orchestrate the creation of Megaport Services.
Before using this library, please ensure you read Megaport's Terms and Conditions.
To view the Library Documentation, please see the Wiki.
The Megaport API Documentation is also available online.
Tests can be executed for this library by running make integration
to run all integration tests or by calling one of the following to run the tests per service:
- auth-integ
- location-integ
- mcr-integ
- partner-integ
- port-integ
- vxc-integ
In order to run theses tests valid user Credentials will need to be provided as per the Credentials section below.
For the purposes of testing Megaport Credentials can be passed to the integration tests by setting the following environment variables:
- MEGAPORT_USERNAME: The username used to login to the Megaport Portal.
- MEGAPORT_PASSWORD: The password used to login to the Megaport Portal.
- MEGAPORT_MFA_OTP_KEY: The key taken from the "Add Authentication" screen in the Megaport Portal (this is not your OTP, it is the key you used to setup your Authenticator).
Please read the Contributing Section prior to starting work on contributions.