Documentation
¶
Index ¶
- func AddCommandsTo(rootCmd *cobra.Command)
- func BuyMVE(cmd *cobra.Command, args []string, noColor bool) error
- func DeleteMVE(cmd *cobra.Command, args []string, noColor bool) error
- func GetMVE(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func GetMVEStatus(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func ListAvailableMVESizes(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func ListMVEImages(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func ListMVEResourceTags(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func ListMVEs(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func LockMVE(cmd *cobra.Command, args []string, noColor bool) error
- func ParseVendorConfig(vendorConfigMap map[string]interface{}) (megaport.VendorConfig, error)
- func RestoreMVE(cmd *cobra.Command, args []string, noColor bool) error
- func UnlockMVE(cmd *cobra.Command, args []string, noColor bool) error
- func UpdateMVE(cmd *cobra.Command, args []string, noColor bool) error
- func UpdateMVEResourceTags(cmd *cobra.Command, args []string, noColor bool) error
- func ValidateMVE(cmd *cobra.Command, args []string, noColor bool) error
- type MVEStatus
- type MockMVEService
- func (m *MockMVEService) BuyMVE(ctx context.Context, req *megaport.BuyMVERequest) (*megaport.BuyMVEResponse, error)
- func (m *MockMVEService) DeleteMVE(ctx context.Context, req *megaport.DeleteMVERequest) (*megaport.DeleteMVEResponse, error)
- func (m *MockMVEService) GetMVE(ctx context.Context, mveID string) (*megaport.MVE, error)
- func (m *MockMVEService) ListAvailableMVESizes(ctx context.Context) ([]*megaport.MVESize, error)
- func (m *MockMVEService) ListMVEImages(ctx context.Context) ([]*megaport.MVEImage, error)
- func (m *MockMVEService) ListMVEResourceTags(ctx context.Context, mveID string) (map[string]string, error)
- func (m *MockMVEService) ListMVEs(ctx context.Context, req *megaport.ListMVEsRequest) ([]*megaport.MVE, error)
- func (m *MockMVEService) ModifyMVE(ctx context.Context, req *megaport.ModifyMVERequest) (*megaport.ModifyMVEResponse, error)
- func (m *MockMVEService) Reset()
- func (m *MockMVEService) UpdateMVEResourceTags(ctx context.Context, mveID string, tags map[string]string) error
- func (m *MockMVEService) ValidateMVEOrder(ctx context.Context, req *megaport.BuyMVERequest) error
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommandsTo ¶
func GetMVEStatus ¶ added in v0.4.4
GetMVEStatus retrieves only the provisioning status of an MVE without all details
func ListAvailableMVESizes ¶
func ListMVEImages ¶
func ListMVEResourceTags ¶ added in v0.4.3
func ParseVendorConfig ¶ added in v0.5.7
func ParseVendorConfig(vendorConfigMap map[string]interface{}) (megaport.VendorConfig, error)
ParseVendorConfig converts a vendor config map (e.g. decoded from YAML/JSON) into the appropriate typed VendorConfig based on the "vendor" key.
func RestoreMVE ¶ added in v0.5.4
func UpdateMVEResourceTags ¶ added in v0.4.3
Types ¶
type MockMVEService ¶
type MockMVEService struct {
GetMVEErr error
GetMVEResult *megaport.MVE
ListMVEsErr error
ListMVEsResult []*megaport.MVE
BuyMVEErr error
BuyMVEResult *megaport.BuyMVEResponse
DeleteMVEErr error
DeleteMVEResult *megaport.DeleteMVEResponse
CapturedDeleteMVERequest *megaport.DeleteMVERequest
ModifyMVEErr error
ModifyMVEResult *megaport.ModifyMVEResponse
ValidateMVEOrderErr error
ListMVEResourceTagsErr error
ListMVEResourceTagsResult map[string]string
UpdateMVEResourceTagsErr error
ListMVEImagesErr error
ListMVEImagesResult []*megaport.MVEImage
ListAvailableMVESizesErr error
ListAvailableMVESizesResult []*megaport.MVESize
CapturedBuyMVERequest *megaport.BuyMVERequest
CapturedModifyMVERequest *megaport.ModifyMVERequest
CapturedListMVEsRequest *megaport.ListMVEsRequest
CapturedUpdateMVEResourceTagsRequest map[string]string
ForceNilGetMVE bool
}
func (*MockMVEService) BuyMVE ¶
func (m *MockMVEService) BuyMVE(ctx context.Context, req *megaport.BuyMVERequest) (*megaport.BuyMVEResponse, error)
func (*MockMVEService) DeleteMVE ¶
func (m *MockMVEService) DeleteMVE(ctx context.Context, req *megaport.DeleteMVERequest) (*megaport.DeleteMVEResponse, error)
func (*MockMVEService) ListAvailableMVESizes ¶
func (*MockMVEService) ListMVEImages ¶
func (*MockMVEService) ListMVEResourceTags ¶
func (*MockMVEService) ListMVEs ¶ added in v0.3.8
func (m *MockMVEService) ListMVEs(ctx context.Context, req *megaport.ListMVEsRequest) ([]*megaport.MVE, error)
func (*MockMVEService) ModifyMVE ¶
func (m *MockMVEService) ModifyMVE(ctx context.Context, req *megaport.ModifyMVERequest) (*megaport.ModifyMVEResponse, error)
func (*MockMVEService) Reset ¶
func (m *MockMVEService) Reset()
func (*MockMVEService) UpdateMVEResourceTags ¶
func (*MockMVEService) ValidateMVEOrder ¶
func (m *MockMVEService) ValidateMVEOrder(ctx context.Context, req *megaport.BuyMVERequest) error
Click to show internal directories.
Click to hide internal directories.