ix

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 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)

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

func BuyIX

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

func DeleteIX

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

func GetIX

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

func GetIXStatus

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

func ListIXs

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

func UpdateIX

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

func ValidateIX added in v0.5.4

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

Types

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 MockIXService added in v0.5.3

type MockIXService struct {
	CapturedListIXsRequest *megaport.ListIXsRequest
	// contains filtered or unexported fields
}

func (*MockIXService) BuyIX added in v0.5.3

func (*MockIXService) DeleteIX added in v0.5.3

func (m *MockIXService) DeleteIX(ctx context.Context, id string, req *megaport.DeleteIXRequest) error

func (*MockIXService) GetIX added in v0.5.3

func (m *MockIXService) GetIX(ctx context.Context, id string) (*megaport.IX, error)

func (*MockIXService) ListIXs added in v0.5.3

func (m *MockIXService) ListIXs(ctx context.Context, req *megaport.ListIXsRequest) ([]*megaport.IX, error)

func (*MockIXService) Reset added in v0.5.9

func (m *MockIXService) Reset()

Reset clears all configured results, errors, and captured requests.

func (*MockIXService) UpdateIX added in v0.5.3

func (m *MockIXService) UpdateIX(ctx context.Context, id string, req *megaport.UpdateIXRequest) (*megaport.IX, error)

func (*MockIXService) ValidateIXOrder added in v0.5.3

func (m *MockIXService) ValidateIXOrder(ctx context.Context, req *megaport.BuyIXRequest) error

type Module

type Module struct{}

Module implements the registry.Module interface for IX commands

func NewModule

func NewModule() *Module

NewModule creates a new IX 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 IX commands to the root command

Jump to

Keyboard shortcuts

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