Documentation
¶
Index ¶
- func AddCommandsTo(rootCmd *cobra.Command)
- func StatusDashboard(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- type MockIXService
- func (m *MockIXService) BuyIX(_ context.Context, _ *megaport.BuyIXRequest) (*megaport.BuyIXResponse, error)
- func (m *MockIXService) DeleteIX(_ context.Context, _ string, _ *megaport.DeleteIXRequest) error
- func (m *MockIXService) GetIX(_ context.Context, _ string) (*megaport.IX, error)
- func (m *MockIXService) ListIXPs(_ context.Context, _ *megaport.ListIXPsRequest) ([]*megaport.IXP, error)
- func (m *MockIXService) ListIXs(ctx context.Context, req *megaport.ListIXsRequest) ([]*megaport.IX, error)
- func (m *MockIXService) UpdateIX(_ context.Context, _ string, _ *megaport.UpdateIXRequest) (*megaport.IX, error)
- func (m *MockIXService) ValidateIXOrder(_ context.Context, _ *megaport.BuyIXRequest) error
- type MockMCRService
- func (m *MockMCRService) BuyMCR(_ context.Context, _ *megaport.BuyMCRRequest) (*megaport.BuyMCRResponse, error)
- func (m *MockMCRService) CreatePrefixFilterList(_ context.Context, _ *megaport.CreateMCRPrefixFilterListRequest) (*megaport.CreateMCRPrefixFilterListResponse, error)
- func (m *MockMCRService) DeleteMCR(_ context.Context, _ *megaport.DeleteMCRRequest) (*megaport.DeleteMCRResponse, error)
- func (m *MockMCRService) DeleteMCRPrefixFilterList(_ context.Context, _ string, _ int) (*megaport.DeleteMCRPrefixFilterListResponse, error)
- func (m *MockMCRService) GetMCR(_ context.Context, _ string) (*megaport.MCR, error)
- func (m *MockMCRService) GetMCRPrefixFilterList(_ context.Context, _ string, _ int) (*megaport.MCRPrefixFilterList, error)
- func (m *MockMCRService) GetMCRPrefixFilterLists(_ context.Context, _ string) ([]*megaport.PrefixFilterList, error)
- func (m *MockMCRService) ListMCRPrefixFilterLists(_ context.Context, _ string) ([]*megaport.PrefixFilterList, error)
- func (m *MockMCRService) ListMCRResourceTags(_ context.Context, _ string) (map[string]string, error)
- func (m *MockMCRService) ListMCRs(ctx context.Context, req *megaport.ListMCRsRequest) ([]*megaport.MCR, error)
- func (m *MockMCRService) ModifyMCR(_ context.Context, _ *megaport.ModifyMCRRequest) (*megaport.ModifyMCRResponse, error)
- func (m *MockMCRService) ModifyMCRPrefixFilterList(_ context.Context, _ string, _ int, _ *megaport.MCRPrefixFilterList) (*megaport.ModifyMCRPrefixFilterListResponse, error)
- func (m *MockMCRService) RestoreMCR(_ context.Context, _ string) (*megaport.RestoreMCRResponse, error)
- func (m *MockMCRService) UpdateMCRIPsecAddOn(_ context.Context, _ string, _ string, _ int) error
- func (m *MockMCRService) UpdateMCRResourceTags(_ context.Context, _ string, _ map[string]string) error
- func (m *MockMCRService) UpdateMCRWithAddOn(_ context.Context, _ string, _ megaport.MCRAddOnRequest) error
- func (m *MockMCRService) ValidateMCROrder(_ context.Context, _ *megaport.BuyMCRRequest) error
- func (m *MockMCRService) WaitForMCRReady(_ context.Context, _ string, _ time.Duration) error
- type MockMVEService
- func (m *MockMVEService) BuyMVE(_ context.Context, _ *megaport.BuyMVERequest) (*megaport.BuyMVEResponse, error)
- func (m *MockMVEService) DeleteMVE(_ context.Context, _ *megaport.DeleteMVERequest) (*megaport.DeleteMVEResponse, error)
- func (m *MockMVEService) GetMVE(_ context.Context, _ string) (*megaport.MVE, error)
- func (m *MockMVEService) ListAvailableMVESizes(_ context.Context) ([]*megaport.MVESize, error)
- func (m *MockMVEService) ListMVEImages(_ context.Context) ([]*megaport.MVEImage, error)
- func (m *MockMVEService) ListMVEResourceTags(_ context.Context, _ string) (map[string]string, error)
- func (m *MockMVEService) ListMVEs(ctx context.Context, req *megaport.ListMVEsRequest) ([]*megaport.MVE, error)
- func (m *MockMVEService) ModifyMVE(_ context.Context, _ *megaport.ModifyMVERequest) (*megaport.ModifyMVEResponse, error)
- func (m *MockMVEService) UpdateMVEResourceTags(_ context.Context, _ string, _ map[string]string) error
- func (m *MockMVEService) ValidateMVEOrder(_ context.Context, _ *megaport.BuyMVERequest) error
- type MockPortService
- func (m *MockPortService) BuyPort(_ context.Context, _ *megaport.BuyPortRequest) (*megaport.BuyPortResponse, error)
- func (m *MockPortService) CheckPortVLANAvailability(_ context.Context, _ string, _ int) (bool, error)
- func (m *MockPortService) DeletePort(_ context.Context, _ *megaport.DeletePortRequest) (*megaport.DeletePortResponse, error)
- func (m *MockPortService) GetPort(_ context.Context, _ string) (*megaport.Port, error)
- func (m *MockPortService) ListPortResourceTags(_ context.Context, _ string) (map[string]string, error)
- func (m *MockPortService) ListPorts(ctx context.Context) ([]*megaport.Port, error)
- func (m *MockPortService) LockPort(_ context.Context, _ string) (*megaport.LockPortResponse, error)
- func (m *MockPortService) ModifyPort(_ context.Context, _ *megaport.ModifyPortRequest) (*megaport.ModifyPortResponse, error)
- func (m *MockPortService) RestorePort(_ context.Context, _ string) (*megaport.RestorePortResponse, error)
- func (m *MockPortService) UnlockPort(_ context.Context, _ string) (*megaport.UnlockPortResponse, error)
- func (m *MockPortService) UpdatePortResourceTags(_ context.Context, _ string, _ map[string]string) error
- func (m *MockPortService) ValidatePortOrder(_ context.Context, _ *megaport.BuyPortRequest) error
- type MockVXCService
- func (m *MockVXCService) BuyVXC(_ context.Context, _ *megaport.BuyVXCRequest) (*megaport.BuyVXCResponse, error)
- func (m *MockVXCService) DeleteVXC(_ context.Context, _ string, _ *megaport.DeleteVXCRequest) error
- func (m *MockVXCService) GetVXC(_ context.Context, _ string) (*megaport.VXC, error)
- func (m *MockVXCService) ListPartnerPorts(_ context.Context, _ *megaport.ListPartnerPortsRequest) (*megaport.ListPartnerPortsResponse, error)
- func (m *MockVXCService) ListVXCResourceTags(_ context.Context, _ string) (map[string]string, error)
- func (m *MockVXCService) ListVXCs(ctx context.Context, req *megaport.ListVXCsRequest) ([]*megaport.VXC, error)
- func (m *MockVXCService) LookupPartnerPorts(_ context.Context, _ *megaport.LookupPartnerPortsRequest) (*megaport.LookupPartnerPortsResponse, error)
- func (m *MockVXCService) UpdateVXC(_ context.Context, _ string, _ *megaport.UpdateVXCRequest) (*megaport.VXC, error)
- func (m *MockVXCService) UpdateVXCResourceTags(_ context.Context, _ string, _ map[string]string) error
- func (m *MockVXCService) ValidateVXCOrder(_ context.Context, _ *megaport.BuyVXCRequest) error
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommandsTo ¶
AddCommandsTo builds the status command and adds it to the root command.
Types ¶
type MockIXService ¶
type MockIXService struct {
ListIXsResult []*megaport.IX
ListIXsErr error
CapturedListIXsRequest *megaport.ListIXsRequest
}
MockIXService is a minimal mock for testing the status dashboard.
func (*MockIXService) BuyIX ¶
func (m *MockIXService) BuyIX(_ context.Context, _ *megaport.BuyIXRequest) (*megaport.BuyIXResponse, error)
func (*MockIXService) DeleteIX ¶
func (m *MockIXService) DeleteIX(_ context.Context, _ string, _ *megaport.DeleteIXRequest) error
func (*MockIXService) ListIXPs ¶ added in v0.11.0
func (m *MockIXService) ListIXPs(_ context.Context, _ *megaport.ListIXPsRequest) ([]*megaport.IXP, error)
func (*MockIXService) ListIXs ¶
func (m *MockIXService) ListIXs(ctx context.Context, req *megaport.ListIXsRequest) ([]*megaport.IX, error)
func (*MockIXService) UpdateIX ¶
func (m *MockIXService) UpdateIX(_ context.Context, _ string, _ *megaport.UpdateIXRequest) (*megaport.IX, error)
func (*MockIXService) ValidateIXOrder ¶
func (m *MockIXService) ValidateIXOrder(_ context.Context, _ *megaport.BuyIXRequest) error
type MockMCRService ¶
type MockMCRService struct {
ListMCRsResult []*megaport.MCR
ListMCRsErr error
CapturedListMCRsRequest *megaport.ListMCRsRequest
}
MockMCRService is a minimal mock for testing the status dashboard.
func (*MockMCRService) BuyMCR ¶
func (m *MockMCRService) BuyMCR(_ context.Context, _ *megaport.BuyMCRRequest) (*megaport.BuyMCRResponse, error)
func (*MockMCRService) CreatePrefixFilterList ¶
func (m *MockMCRService) CreatePrefixFilterList(_ context.Context, _ *megaport.CreateMCRPrefixFilterListRequest) (*megaport.CreateMCRPrefixFilterListResponse, error)
func (*MockMCRService) DeleteMCR ¶
func (m *MockMCRService) DeleteMCR(_ context.Context, _ *megaport.DeleteMCRRequest) (*megaport.DeleteMCRResponse, error)
func (*MockMCRService) DeleteMCRPrefixFilterList ¶
func (m *MockMCRService) DeleteMCRPrefixFilterList(_ context.Context, _ string, _ int) (*megaport.DeleteMCRPrefixFilterListResponse, error)
func (*MockMCRService) GetMCRPrefixFilterList ¶
func (m *MockMCRService) GetMCRPrefixFilterList(_ context.Context, _ string, _ int) (*megaport.MCRPrefixFilterList, error)
func (*MockMCRService) GetMCRPrefixFilterLists ¶
func (m *MockMCRService) GetMCRPrefixFilterLists(_ context.Context, _ string) ([]*megaport.PrefixFilterList, error)
func (*MockMCRService) ListMCRPrefixFilterLists ¶
func (m *MockMCRService) ListMCRPrefixFilterLists(_ context.Context, _ string) ([]*megaport.PrefixFilterList, error)
func (*MockMCRService) ListMCRResourceTags ¶
func (*MockMCRService) ListMCRs ¶
func (m *MockMCRService) ListMCRs(ctx context.Context, req *megaport.ListMCRsRequest) ([]*megaport.MCR, error)
func (*MockMCRService) ModifyMCR ¶
func (m *MockMCRService) ModifyMCR(_ context.Context, _ *megaport.ModifyMCRRequest) (*megaport.ModifyMCRResponse, error)
func (*MockMCRService) ModifyMCRPrefixFilterList ¶
func (m *MockMCRService) ModifyMCRPrefixFilterList(_ context.Context, _ string, _ int, _ *megaport.MCRPrefixFilterList) (*megaport.ModifyMCRPrefixFilterListResponse, error)
func (*MockMCRService) RestoreMCR ¶
func (m *MockMCRService) RestoreMCR(_ context.Context, _ string) (*megaport.RestoreMCRResponse, error)
func (*MockMCRService) UpdateMCRIPsecAddOn ¶ added in v0.7.1
func (*MockMCRService) UpdateMCRResourceTags ¶
func (*MockMCRService) UpdateMCRWithAddOn ¶ added in v0.7.1
func (m *MockMCRService) UpdateMCRWithAddOn(_ context.Context, _ string, _ megaport.MCRAddOnRequest) error
func (*MockMCRService) ValidateMCROrder ¶
func (m *MockMCRService) ValidateMCROrder(_ context.Context, _ *megaport.BuyMCRRequest) error
func (*MockMCRService) WaitForMCRReady ¶ added in v0.9.2
type MockMVEService ¶
type MockMVEService struct {
ListMVEsResult []*megaport.MVE
ListMVEsErr error
CapturedListMVEsRequest *megaport.ListMVEsRequest
}
MockMVEService is a minimal mock for testing the status dashboard.
func (*MockMVEService) BuyMVE ¶
func (m *MockMVEService) BuyMVE(_ context.Context, _ *megaport.BuyMVERequest) (*megaport.BuyMVEResponse, error)
func (*MockMVEService) DeleteMVE ¶
func (m *MockMVEService) DeleteMVE(_ context.Context, _ *megaport.DeleteMVERequest) (*megaport.DeleteMVEResponse, error)
func (*MockMVEService) ListAvailableMVESizes ¶
func (*MockMVEService) ListMVEImages ¶
func (*MockMVEService) ListMVEResourceTags ¶
func (*MockMVEService) ListMVEs ¶
func (m *MockMVEService) ListMVEs(ctx context.Context, req *megaport.ListMVEsRequest) ([]*megaport.MVE, error)
func (*MockMVEService) ModifyMVE ¶
func (m *MockMVEService) ModifyMVE(_ context.Context, _ *megaport.ModifyMVERequest) (*megaport.ModifyMVEResponse, error)
func (*MockMVEService) UpdateMVEResourceTags ¶
func (*MockMVEService) ValidateMVEOrder ¶
func (m *MockMVEService) ValidateMVEOrder(_ context.Context, _ *megaport.BuyMVERequest) error
type MockPortService ¶
MockPortService is a minimal mock for testing the status dashboard.
func (*MockPortService) BuyPort ¶
func (m *MockPortService) BuyPort(_ context.Context, _ *megaport.BuyPortRequest) (*megaport.BuyPortResponse, error)
func (*MockPortService) CheckPortVLANAvailability ¶
func (*MockPortService) DeletePort ¶
func (m *MockPortService) DeletePort(_ context.Context, _ *megaport.DeletePortRequest) (*megaport.DeletePortResponse, error)
func (*MockPortService) ListPortResourceTags ¶
func (*MockPortService) LockPort ¶
func (m *MockPortService) LockPort(_ context.Context, _ string) (*megaport.LockPortResponse, error)
func (*MockPortService) ModifyPort ¶
func (m *MockPortService) ModifyPort(_ context.Context, _ *megaport.ModifyPortRequest) (*megaport.ModifyPortResponse, error)
func (*MockPortService) RestorePort ¶
func (m *MockPortService) RestorePort(_ context.Context, _ string) (*megaport.RestorePortResponse, error)
func (*MockPortService) UnlockPort ¶
func (m *MockPortService) UnlockPort(_ context.Context, _ string) (*megaport.UnlockPortResponse, error)
func (*MockPortService) UpdatePortResourceTags ¶
func (*MockPortService) ValidatePortOrder ¶
func (m *MockPortService) ValidatePortOrder(_ context.Context, _ *megaport.BuyPortRequest) error
type MockVXCService ¶
type MockVXCService struct {
ListVXCsResult []*megaport.VXC
ListVXCsErr error
CapturedListVXCsRequest *megaport.ListVXCsRequest
}
MockVXCService is a minimal mock for testing the status dashboard.
func (*MockVXCService) BuyVXC ¶
func (m *MockVXCService) BuyVXC(_ context.Context, _ *megaport.BuyVXCRequest) (*megaport.BuyVXCResponse, error)
func (*MockVXCService) DeleteVXC ¶
func (m *MockVXCService) DeleteVXC(_ context.Context, _ string, _ *megaport.DeleteVXCRequest) error
func (*MockVXCService) ListPartnerPorts ¶
func (m *MockVXCService) ListPartnerPorts(_ context.Context, _ *megaport.ListPartnerPortsRequest) (*megaport.ListPartnerPortsResponse, error)
func (*MockVXCService) ListVXCResourceTags ¶
func (*MockVXCService) ListVXCs ¶
func (m *MockVXCService) ListVXCs(ctx context.Context, req *megaport.ListVXCsRequest) ([]*megaport.VXC, error)
func (*MockVXCService) LookupPartnerPorts ¶
func (m *MockVXCService) LookupPartnerPorts(_ context.Context, _ *megaport.LookupPartnerPortsRequest) (*megaport.LookupPartnerPortsResponse, error)
func (*MockVXCService) UpdateVXC ¶
func (m *MockVXCService) UpdateVXC(_ context.Context, _ string, _ *megaport.UpdateVXCRequest) (*megaport.VXC, error)
func (*MockVXCService) UpdateVXCResourceTags ¶
func (*MockVXCService) ValidateVXCOrder ¶
func (m *MockVXCService) ValidateVXCOrder(_ context.Context, _ *megaport.BuyVXCRequest) error
type Module ¶
type Module struct{}
Module implements the registry.Module interface for the status command.
func (*Module) RegisterCommands ¶
RegisterCommands adds the status command to the root command.
Click to show internal directories.
Click to hide internal directories.