managed_account

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MPL-2.0 Imports: 11 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 managed-account commands and adds them to the root command

func CreateManagedAccount

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

func GetManagedAccount

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

func ListManagedAccounts

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

func UpdateManagedAccount

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

Types

type MockManagedAccountService added in v0.5.3

type MockManagedAccountService struct {
	// contains filtered or unexported fields
}

func (*MockManagedAccountService) CreateManagedAccount added in v0.5.3

func (*MockManagedAccountService) GetManagedAccount added in v0.5.3

func (m *MockManagedAccountService) GetManagedAccount(ctx context.Context, companyUID string, name string) (*megaport.ManagedAccount, error)

func (*MockManagedAccountService) ListManagedAccounts added in v0.5.3

func (m *MockManagedAccountService) ListManagedAccounts(ctx context.Context) ([]*megaport.ManagedAccount, error)

func (*MockManagedAccountService) UpdateManagedAccount added in v0.5.3

func (m *MockManagedAccountService) UpdateManagedAccount(ctx context.Context, companyUID string, req *megaport.ManagedAccountRequest) (*megaport.ManagedAccount, error)

type Module

type Module struct{}

Module implements the registry.Module interface for managed account commands

func NewModule

func NewModule() *Module

NewModule creates a new managed account module

func (*Module) Name

func (m *Module) Name() string

Name returns the module name

func (*Module) RegisterCommands

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

RegisterCommands adds managed account commands to the root command

Jump to

Keyboard shortcuts

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