Documentation
¶
Index ¶
- func AddCommandsTo(rootCmd *cobra.Command)
- func CreateManagedAccount(cmd *cobra.Command, args []string, noColor bool) error
- func GetManagedAccount(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func ListManagedAccounts(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func UpdateManagedAccount(cmd *cobra.Command, args []string, noColor bool) error
- type ManagedAccountOutput
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommandsTo ¶
AddCommandsTo builds the managed-account commands and adds them to the root command
func CreateManagedAccount ¶
func GetManagedAccount ¶
func ListManagedAccounts ¶
Types ¶
type ManagedAccountOutput ¶
type ManagedAccountOutput struct {
output.Output `json:"-" header:"-"`
AccountName string `json:"account_name" header:"Account Name"`
AccountRef string `json:"account_ref" header:"Account Ref"`
CompanyUID string `json:"company_uid" header:"Company UID"`
}
ManagedAccountOutput represents the desired fields for output of managed account details.
func ToManagedAccountOutput ¶
func ToManagedAccountOutput(account *megaport.ManagedAccount) (ManagedAccountOutput, error)
ToManagedAccountOutput converts a *megaport.ManagedAccount to our ManagedAccountOutput struct.
type Module ¶
type Module struct{}
Module implements the registry.Module interface for managed account commands
func (*Module) RegisterCommands ¶
RegisterCommands adds managed account commands to the root command
Click to show internal directories.
Click to hide internal directories.