datacenter

package
v0.3.4-test Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package datacenter is a generated GoMock package.

Index

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.

Jump to

Keyboard shortcuts

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