Documentation ¶
Overview ¶
Package k8scluster is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) CheckDuplicateK8sCluster(ctx context.Context, clusterName string) (*ionoscloud.KubernetesCluster, error)
- func (m *MockClient) CreateK8sCluster(ctx context.Context, cluster ionoscloud.KubernetesClusterForPost) (ionoscloud.KubernetesCluster, *ionoscloud.APIResponse, error)
- func (m *MockClient) DeleteK8sCluster(ctx context.Context, clusterID string) (*ionoscloud.APIResponse, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetAPIClient() *ionoscloud.APIClient
- func (m *MockClient) GetK8sCluster(ctx context.Context, clusterID string) (ionoscloud.KubernetesCluster, *ionoscloud.APIResponse, error)
- func (m *MockClient) GetK8sClusterID(cluster *ionoscloud.KubernetesCluster) (string, error)
- func (m *MockClient) GetKubeConfig(ctx context.Context, clusterID string) (string, *ionoscloud.APIResponse, error)
- func (m *MockClient) HasActiveK8sNodePools(ctx context.Context, clusterID string) (bool, error)
- func (m *MockClient) UpdateK8sCluster(ctx context.Context, clusterID string, ...) (ionoscloud.KubernetesCluster, *ionoscloud.APIResponse, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) CheckDuplicateK8sCluster(ctx, clusterName interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) CreateK8sCluster(ctx, cluster interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteK8sCluster(ctx, clusterID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetAPIClient() *gomock.Call
- func (mr *MockClientMockRecorder) GetK8sCluster(ctx, clusterID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetK8sClusterID(cluster interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetKubeConfig(ctx, clusterID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) HasActiveK8sNodePools(ctx, clusterID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UpdateK8sCluster(ctx, clusterID, cluster 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) CheckDuplicateK8sCluster ¶
func (m *MockClient) CheckDuplicateK8sCluster(ctx context.Context, clusterName string) (*ionoscloud.KubernetesCluster, error)
CheckDuplicateK8sCluster mocks base method.
func (*MockClient) CreateK8sCluster ¶
func (m *MockClient) CreateK8sCluster(ctx context.Context, cluster ionoscloud.KubernetesClusterForPost) (ionoscloud.KubernetesCluster, *ionoscloud.APIResponse, error)
CreateK8sCluster mocks base method.
func (*MockClient) DeleteK8sCluster ¶
func (m *MockClient) DeleteK8sCluster(ctx context.Context, clusterID string) (*ionoscloud.APIResponse, error)
DeleteK8sCluster 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) GetK8sCluster ¶
func (m *MockClient) GetK8sCluster(ctx context.Context, clusterID string) (ionoscloud.KubernetesCluster, *ionoscloud.APIResponse, error)
GetK8sCluster mocks base method.
func (*MockClient) GetK8sClusterID ¶
func (m *MockClient) GetK8sClusterID(cluster *ionoscloud.KubernetesCluster) (string, error)
GetK8sClusterID mocks base method.
func (*MockClient) GetKubeConfig ¶
func (m *MockClient) GetKubeConfig(ctx context.Context, clusterID string) (string, *ionoscloud.APIResponse, error)
GetKubeConfig mocks base method.
func (*MockClient) HasActiveK8sNodePools ¶
HasActiveK8sNodePools mocks base method.
func (*MockClient) UpdateK8sCluster ¶
func (m *MockClient) UpdateK8sCluster(ctx context.Context, clusterID string, cluster ionoscloud.KubernetesClusterForPut) (ionoscloud.KubernetesCluster, *ionoscloud.APIResponse, error)
UpdateK8sCluster mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) CheckDuplicateK8sCluster ¶
func (mr *MockClientMockRecorder) CheckDuplicateK8sCluster(ctx, clusterName interface{}) *gomock.Call
CheckDuplicateK8sCluster indicates an expected call of CheckDuplicateK8sCluster.
func (*MockClientMockRecorder) CreateK8sCluster ¶
func (mr *MockClientMockRecorder) CreateK8sCluster(ctx, cluster interface{}) *gomock.Call
CreateK8sCluster indicates an expected call of CreateK8sCluster.
func (*MockClientMockRecorder) DeleteK8sCluster ¶
func (mr *MockClientMockRecorder) DeleteK8sCluster(ctx, clusterID interface{}) *gomock.Call
DeleteK8sCluster indicates an expected call of DeleteK8sCluster.
func (*MockClientMockRecorder) GetAPIClient ¶
func (mr *MockClientMockRecorder) GetAPIClient() *gomock.Call
GetAPIClient indicates an expected call of GetAPIClient.
func (*MockClientMockRecorder) GetK8sCluster ¶
func (mr *MockClientMockRecorder) GetK8sCluster(ctx, clusterID interface{}) *gomock.Call
GetK8sCluster indicates an expected call of GetK8sCluster.
func (*MockClientMockRecorder) GetK8sClusterID ¶
func (mr *MockClientMockRecorder) GetK8sClusterID(cluster interface{}) *gomock.Call
GetK8sClusterID indicates an expected call of GetK8sClusterID.
func (*MockClientMockRecorder) GetKubeConfig ¶
func (mr *MockClientMockRecorder) GetKubeConfig(ctx, clusterID interface{}) *gomock.Call
GetKubeConfig indicates an expected call of GetKubeConfig.
func (*MockClientMockRecorder) HasActiveK8sNodePools ¶
func (mr *MockClientMockRecorder) HasActiveK8sNodePools(ctx, clusterID interface{}) *gomock.Call
HasActiveK8sNodePools indicates an expected call of HasActiveK8sNodePools.
func (*MockClientMockRecorder) UpdateK8sCluster ¶
func (mr *MockClientMockRecorder) UpdateK8sCluster(ctx, clusterID, cluster interface{}) *gomock.Call
UpdateK8sCluster indicates an expected call of UpdateK8sCluster.