vxc

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommandsTo

func AddCommandsTo(rootCmd *cobra.Command)

func BuyVXC

func BuyVXC(cmd *cobra.Command, args []string, noColor bool) error

BuyVXC purchases a new Virtual Cross Connect

func DeleteVXC

func DeleteVXC(cmd *cobra.Command, args []string, noColor bool) error

DeleteVXC deletes a VXC with the provided UID

func GetVXC

func GetVXC(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error

func UpdateVXC

func UpdateVXC(cmd *cobra.Command, args []string, noColor bool) error

UpdateVXC updates an existing VXC with the provided configuration

Types

type VXCOutput

type VXCOutput struct {
	output.Output `json:"-" header:"-"`
	UID           string `json:"uid"`
	Name          string `json:"name"`
	AEndUID       string `json:"a_end_uid"`
	BEndUID       string `json:"b_end_uid"`
}

VXCOutput represents the desired fields for JSON output.

func ToVXCOutput

func ToVXCOutput(v *megaport.VXC) (VXCOutput, error)

ToVXCOutput converts a VXC to a VXCOutput.

Jump to

Keyboard shortcuts

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