Documentation ¶
Overview ¶
Package datacenter is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) CheckDuplicateDatacenter(ctx context.Context, datacenterName, location string) (*ionoscloud.Datacenter, error)
- func (m *MockClient) CreateDatacenter(ctx context.Context, datacenter ionoscloud.Datacenter) (ionoscloud.Datacenter, *ionoscloud.APIResponse, error)
- func (m *MockClient) DeleteDatacenter(ctx context.Context, datacenterID string) (*ionoscloud.APIResponse, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetAPIClient() *ionoscloud.APIClient
- func (m *MockClient) GetCPUFamiliesForDatacenter(ctx context.Context, datacenterID string) ([]string, error)
- func (m *MockClient) GetDatacenter(ctx context.Context, datacenterID string) (ionoscloud.Datacenter, *ionoscloud.APIResponse, error)
- func (m *MockClient) GetDatacenterID(datacenter *ionoscloud.Datacenter) (string, error)
- func (m *MockClient) UpdateDatacenter(ctx context.Context, datacenterID string, ...) (ionoscloud.Datacenter, *ionoscloud.APIResponse, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) CheckDuplicateDatacenter(ctx, datacenterName, location interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) CreateDatacenter(ctx, datacenter interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteDatacenter(ctx, datacenterID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetAPIClient() *gomock.Call
- func (mr *MockClientMockRecorder) GetCPUFamiliesForDatacenter(ctx, datacenterID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetDatacenter(ctx, datacenterID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetDatacenterID(datacenter interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UpdateDatacenter(ctx, datacenterID, datacenter interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) CheckDuplicateDatacenter ¶
func (m *MockClient) CheckDuplicateDatacenter(ctx context.Context, datacenterName, location string) (*ionoscloud.Datacenter, error)
CheckDuplicateDatacenter mocks base method.
func (*MockClient) CreateDatacenter ¶
func (m *MockClient) CreateDatacenter(ctx context.Context, datacenter ionoscloud.Datacenter) (ionoscloud.Datacenter, *ionoscloud.APIResponse, error)
CreateDatacenter mocks base method.
func (*MockClient) DeleteDatacenter ¶
func (m *MockClient) DeleteDatacenter(ctx context.Context, datacenterID string) (*ionoscloud.APIResponse, error)
DeleteDatacenter mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetAPIClient ¶
func (m *MockClient) GetAPIClient() *ionoscloud.APIClient
GetAPIClient mocks base method.
func (*MockClient) GetCPUFamiliesForDatacenter ¶
func (m *MockClient) GetCPUFamiliesForDatacenter(ctx context.Context, datacenterID string) ([]string, error)
GetCPUFamiliesForDatacenter mocks base method.
func (*MockClient) GetDatacenter ¶
func (m *MockClient) GetDatacenter(ctx context.Context, datacenterID string) (ionoscloud.Datacenter, *ionoscloud.APIResponse, error)
GetDatacenter mocks base method.
func (*MockClient) GetDatacenterID ¶
func (m *MockClient) GetDatacenterID(datacenter *ionoscloud.Datacenter) (string, error)
GetDatacenterID mocks base method.
func (*MockClient) UpdateDatacenter ¶
func (m *MockClient) UpdateDatacenter(ctx context.Context, datacenterID string, datacenter ionoscloud.DatacenterProperties) (ionoscloud.Datacenter, *ionoscloud.APIResponse, error)
UpdateDatacenter mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) CheckDuplicateDatacenter ¶
func (mr *MockClientMockRecorder) CheckDuplicateDatacenter(ctx, datacenterName, location interface{}) *gomock.Call
CheckDuplicateDatacenter indicates an expected call of CheckDuplicateDatacenter.
func (*MockClientMockRecorder) CreateDatacenter ¶
func (mr *MockClientMockRecorder) CreateDatacenter(ctx, datacenter interface{}) *gomock.Call
CreateDatacenter indicates an expected call of CreateDatacenter.
func (*MockClientMockRecorder) DeleteDatacenter ¶
func (mr *MockClientMockRecorder) DeleteDatacenter(ctx, datacenterID interface{}) *gomock.Call
DeleteDatacenter indicates an expected call of DeleteDatacenter.
func (*MockClientMockRecorder) GetAPIClient ¶
func (mr *MockClientMockRecorder) GetAPIClient() *gomock.Call
GetAPIClient indicates an expected call of GetAPIClient.
func (*MockClientMockRecorder) GetCPUFamiliesForDatacenter ¶
func (mr *MockClientMockRecorder) GetCPUFamiliesForDatacenter(ctx, datacenterID interface{}) *gomock.Call
GetCPUFamiliesForDatacenter indicates an expected call of GetCPUFamiliesForDatacenter.
func (*MockClientMockRecorder) GetDatacenter ¶
func (mr *MockClientMockRecorder) GetDatacenter(ctx, datacenterID interface{}) *gomock.Call
GetDatacenter indicates an expected call of GetDatacenter.
func (*MockClientMockRecorder) GetDatacenterID ¶
func (mr *MockClientMockRecorder) GetDatacenterID(datacenter interface{}) *gomock.Call
GetDatacenterID indicates an expected call of GetDatacenterID.
func (*MockClientMockRecorder) UpdateDatacenter ¶
func (mr *MockClientMockRecorder) UpdateDatacenter(ctx, datacenterID, datacenter interface{}) *gomock.Call
UpdateDatacenter indicates an expected call of UpdateDatacenter.