Documentation
¶
Index ¶
- func AddCommandsTo(rootCmd *cobra.Command)
- func CreateServiceKey(cmd *cobra.Command, args []string, noColor bool) error
- func GetServiceKey(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func ListServiceKeys(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error
- func UpdateServiceKey(cmd *cobra.Command, args []string, noColor bool) error
- type MockServiceKeyService
- func (m *MockServiceKeyService) CreateServiceKey(ctx context.Context, req *megaport.CreateServiceKeyRequest) (*megaport.CreateServiceKeyResponse, error)
- func (m *MockServiceKeyService) GetServiceKey(ctx context.Context, keyId string) (*megaport.ServiceKey, error)
- func (m *MockServiceKeyService) ListServiceKeys(ctx context.Context, req *megaport.ListServiceKeysRequest) (*megaport.ListServiceKeysResponse, error)
- func (m *MockServiceKeyService) UpdateServiceKey(ctx context.Context, req *megaport.UpdateServiceKeyRequest) (*megaport.UpdateServiceKeyResponse, error)
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommandsTo ¶
func CreateServiceKey ¶
func GetServiceKey ¶
func ListServiceKeys ¶
Types ¶
type MockServiceKeyService ¶
type MockServiceKeyService struct {
CreateServiceKeyError error
CreateServiceKeyResult *megaport.CreateServiceKeyResponse
CapturedCreateServiceKeyRequest *megaport.CreateServiceKeyRequest
ListServiceKeysError error
ListServiceKeysResult *megaport.ListServiceKeysResponse
CapturedListServiceKeysRequest *megaport.ListServiceKeysRequest
UpdateServiceKeyError error
UpdateServiceKeyResult *megaport.UpdateServiceKeyResponse
CapturedUpdateServiceKeyRequest *megaport.UpdateServiceKeyRequest
GetServiceKeyError error
GetServiceKeyResult *megaport.ServiceKey
CapturedGetServiceKeyKeyID string
}
func (*MockServiceKeyService) CreateServiceKey ¶
func (m *MockServiceKeyService) CreateServiceKey(ctx context.Context, req *megaport.CreateServiceKeyRequest) (*megaport.CreateServiceKeyResponse, error)
func (*MockServiceKeyService) GetServiceKey ¶
func (m *MockServiceKeyService) GetServiceKey(ctx context.Context, keyId string) (*megaport.ServiceKey, error)
func (*MockServiceKeyService) ListServiceKeys ¶
func (m *MockServiceKeyService) ListServiceKeys(ctx context.Context, req *megaport.ListServiceKeysRequest) (*megaport.ListServiceKeysResponse, error)
func (*MockServiceKeyService) UpdateServiceKey ¶
func (m *MockServiceKeyService) UpdateServiceKey(ctx context.Context, req *megaport.UpdateServiceKeyRequest) (*megaport.UpdateServiceKeyResponse, error)
type Module ¶ added in v0.3.4
type Module struct{}
Module implements the cmdbuilder.Module interface for servicekeys
func NewModule ¶ added in v0.3.4
func NewModule() *Module
NewModule creates a new servicekeys module
func (*Module) RegisterCommands ¶ added in v0.3.4
RegisterCommands adds the servicekeys command to the root command
Click to show internal directories.
Click to hide internal directories.