vxc

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommandsTo

func AddCommandsTo(rootCmd *cobra.Command)

AddCommandsTo builds the vxc commands and adds them to the root command

func BuyVXC

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

func DeleteVXC

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

func GetVXC

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

func GetVXCStatus added in v0.4.4

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

func ListVXCResourceTags added in v0.4.3

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

func ListVXCs added in v0.5.0

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

func UpdateVXC

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

func UpdateVXCResourceTags added in v0.4.3

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

Types

type Module added in v0.3.4

type Module struct{}

Module implements the cmdbuilder.Module interface for vxc

func NewModule added in v0.3.4

func NewModule() *Module

NewModule creates a new vxc module

func (*Module) Name added in v0.3.4

func (m *Module) Name() string

Name returns the module name

func (*Module) RegisterCommands added in v0.3.4

func (m *Module) RegisterCommands(rootCmd *cobra.Command)

RegisterCommands adds the vxc command to the root command

type VXCOutput

type VXCOutput struct {
	output.Output `json:"-" header:"-"`
	UID           string `json:"uid" header:"UID"`
	Name          string `json:"name" header:"Name"`
	AEndUID       string `json:"a_end_uid" header:"A End UID"`
	BEndUID       string `json:"b_end_uid" header:"B End UID"`
	AEndVLAN      int    `json:"a_end_vlan" header:"A End VLAN"`
	BEndVLAN      int    `json:"b_end_vlan" header:"B End VLAN"`
	RateLimit     int    `json:"rate_limit" header:"Rate Limit"`
	Status        string `json:"status" header:"Status"`
}

VXCOutput represents the desired fields for output.

func ToVXCOutput

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

ToVXCOutput converts a VXC to a VXCOutput.

type VXCStatus added in v0.4.4

type VXCStatus struct {
	UID    string `json:"uid" header:"UID"`
	Name   string `json:"name" header:"Name"`
	Status string `json:"status" header:"Status"`
	Type   string `json:"type" header:"Type"`
}

Jump to

Keyboard shortcuts

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