Skip to content

GO Library for integrating with the Megaport API

License

Notifications You must be signed in to change notification settings

ngarratt/megaportgo

 
 

Repository files navigation

Overview

MegaportGo

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.

API Overview

To view the Library Documentation, please see the Wiki.

The Megaport API Documentation is also available online.

Testing

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.

Credentials

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).

Contributing

Please read the Contributing Section prior to starting work on contributions.

About

GO Library for integrating with the Megaport API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 97.2%
  • Shell 1.4%
  • Makefile 1.4%