Documentation
¶
Index ¶
- func AddCommandsTo(rootCmd *cobra.Command)
- func BuyIX(cmd *cobra.Command, args []string, noColor bool) error
- func DeleteIX(cmd *cobra.Command, args []string, noColor bool) error
- func GetIX(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func GetIXStatus(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func ListIXs(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func UpdateIX(cmd *cobra.Command, args []string, noColor bool) error
- type IXOutput
- type IXStatus
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommandsTo ¶
AddCommandsTo builds the ix commands and adds them to the root command
func GetIXStatus ¶
Types ¶
type IXOutput ¶
type IXOutput struct {
output.Output `json:"-" header:"-"`
UID string `json:"uid" header:"UID"`
Name string `json:"name" header:"NAME"`
NetworkServiceType string `json:"network_service_type" header:"NETWORK SERVICE TYPE"`
ASN int `json:"asn" header:"ASN"`
RateLimit int `json:"rate_limit" header:"RATE LIMIT"`
VLAN int `json:"vlan" header:"VLAN"`
MACAddress string `json:"mac_address" header:"MAC ADDRESS"`
Status string `json:"status" header:"STATUS"`
}
IXOutput represents the desired fields for JSON output of IX details.
type IXStatus ¶
type IXStatus struct {
output.Output `json:"-" header:"-"`
UID string `json:"uid" header:"UID"`
Name string `json:"name" header:"NAME"`
Status string `json:"status" header:"STATUS"`
Type string `json:"type" header:"TYPE"`
}
IXStatus represents a lightweight status view of an IX.
type Module ¶
type Module struct{}
Module implements the registry.Module interface for IX commands
func (*Module) RegisterCommands ¶
RegisterCommands adds IX commands to the root command
Click to show internal directories.
Click to hide internal directories.