mve

package
v0.2.3-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

the `mcr` package is designed to allow you to orchestrate the creation of Megaport Cloud Routers. It provides complete lifecycle management of an MCR.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MVE

type MVE struct {
	*config.Config
	// contains filtered or unexported fields
}

MVE provides an interface for configuring and ordering MVE instances.

func New

func New(cfg *config.Config) *MVE

New returns a new MVE ready for configuration.

func (*MVE) BuyMVE

func (m *MVE) BuyMVE(locationID int, name string, term int, config map[string]interface{}, vnics []*types.MVENetworkInterface) (string, error)

BuyMVE purchases an MVE.

func (*MVE) DeleteMVE

func (m *MVE) DeleteMVE(uid string) (bool, error)

func (*MVE) GetMVEDetails

func (m *MVE) GetMVEDetails(uid string) (*types.MVE, error)

GetMVEDetails returns the details of a configured MVE.

func (*MVE) ModifyMVE

func (m *MVE) ModifyMVE(uid string, name string) (bool, error)

func (*MVE) WaitForMVEProvisioning

func (m *MVE) WaitForMVEProvisioning(uid string) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL