Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockClusterClient
- func (m *MockClusterClient) Apply(arg0 context.Context, arg1 *types.Cluster, arg2 []byte) error
- func (m *MockClusterClient) CreateBootstrapCluster(arg0 context.Context, arg1 *cluster.Spec, ...) (string, error)
- func (m *MockClusterClient) CreateNamespace(arg0 context.Context, arg1, arg2 string) error
- func (m *MockClusterClient) DeleteKindCluster(arg0 context.Context, arg1 *types.Cluster) error
- func (m *MockClusterClient) EXPECT() *MockClusterClientMockRecorder
- func (m *MockClusterClient) GetCAPIClusterCRD(arg0 context.Context, arg1 *types.Cluster) error
- func (m *MockClusterClient) GetCAPIClusters(arg0 context.Context, arg1 *types.Cluster) ([]types.CAPICluster, error)
- func (m *MockClusterClient) GetKindClusterKubeconfig(arg0 context.Context, arg1 string) (string, error)
- func (m *MockClusterClient) KindClusterExists(arg0 context.Context, arg1 string) (bool, error)
- func (m *MockClusterClient) WithEnv(arg0 map[string]string) bootstrapper.BootstrapClusterClientOption
- func (m *MockClusterClient) WithExtraDockerMounts() bootstrapper.BootstrapClusterClientOption
- func (m *MockClusterClient) WithExtraPortMappings(arg0 []int) bootstrapper.BootstrapClusterClientOption
- type MockClusterClientMockRecorder
- func (mr *MockClusterClientMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) CreateBootstrapCluster(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) CreateNamespace(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) DeleteKindCluster(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) GetCAPIClusterCRD(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) GetCAPIClusters(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) GetKindClusterKubeconfig(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) KindClusterExists(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) WithEnv(arg0 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) WithExtraDockerMounts() *gomock.Call
- func (mr *MockClusterClientMockRecorder) WithExtraPortMappings(arg0 interface{}) *gomock.Call
- type MockKindClient
- func (m *MockKindClient) ClusterExists(arg0 context.Context, arg1 string) (bool, error)
- func (m *MockKindClient) CreateBootstrapCluster(arg0 context.Context, arg1 *cluster.Spec, ...) (string, error)
- func (m *MockKindClient) DeleteBootstrapCluster(arg0 context.Context, arg1 *types.Cluster) error
- func (m *MockKindClient) EXPECT() *MockKindClientMockRecorder
- func (m *MockKindClient) GetKubeconfig(arg0 context.Context, arg1 string) (string, error)
- func (m *MockKindClient) WithEnv(arg0 map[string]string) bootstrapper.BootstrapClusterClientOption
- func (m *MockKindClient) WithExtraDockerMounts() bootstrapper.BootstrapClusterClientOption
- func (m *MockKindClient) WithExtraPortMappings(arg0 []int) bootstrapper.BootstrapClusterClientOption
- type MockKindClientMockRecorder
- func (mr *MockKindClientMockRecorder) ClusterExists(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockKindClientMockRecorder) CreateBootstrapCluster(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockKindClientMockRecorder) DeleteBootstrapCluster(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockKindClientMockRecorder) GetKubeconfig(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockKindClientMockRecorder) WithEnv(arg0 interface{}) *gomock.Call
- func (mr *MockKindClientMockRecorder) WithExtraDockerMounts() *gomock.Call
- func (mr *MockKindClientMockRecorder) WithExtraPortMappings(arg0 interface{}) *gomock.Call
- type MockKubernetesClient
- func (m *MockKubernetesClient) ApplyKubeSpecFromBytes(arg0 context.Context, arg1 *types.Cluster, arg2 []byte) error
- func (m *MockKubernetesClient) CreateNamespaceIfNotPresent(arg0 context.Context, arg1, arg2 string) error
- func (m *MockKubernetesClient) EXPECT() *MockKubernetesClientMockRecorder
- func (m *MockKubernetesClient) GetClusters(arg0 context.Context, arg1 *types.Cluster) ([]types.CAPICluster, error)
- func (m *MockKubernetesClient) ValidateClustersCRD(arg0 context.Context, arg1 *types.Cluster) error
- type MockKubernetesClientMockRecorder
- func (mr *MockKubernetesClientMockRecorder) ApplyKubeSpecFromBytes(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockKubernetesClientMockRecorder) CreateNamespaceIfNotPresent(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockKubernetesClientMockRecorder) GetClusters(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockKubernetesClientMockRecorder) ValidateClustersCRD(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClusterClient ¶
type MockClusterClient struct {
// contains filtered or unexported fields
}
MockClusterClient is a mock of ClusterClient interface.
func NewMockClusterClient ¶
func NewMockClusterClient(ctrl *gomock.Controller) *MockClusterClient
NewMockClusterClient creates a new mock instance.
func (*MockClusterClient) CreateBootstrapCluster ¶
func (m *MockClusterClient) CreateBootstrapCluster(arg0 context.Context, arg1 *cluster.Spec, arg2 ...bootstrapper.BootstrapClusterClientOption) (string, error)
CreateBootstrapCluster mocks base method.
func (*MockClusterClient) CreateNamespace ¶
func (m *MockClusterClient) CreateNamespace(arg0 context.Context, arg1, arg2 string) error
CreateNamespace mocks base method.
func (*MockClusterClient) DeleteKindCluster ¶ added in v0.15.2
DeleteKindCluster mocks base method.
func (*MockClusterClient) EXPECT ¶
func (m *MockClusterClient) EXPECT() *MockClusterClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClusterClient) GetCAPIClusterCRD ¶ added in v0.15.2
GetCAPIClusterCRD mocks base method.
func (*MockClusterClient) GetCAPIClusters ¶ added in v0.15.2
func (m *MockClusterClient) GetCAPIClusters(arg0 context.Context, arg1 *types.Cluster) ([]types.CAPICluster, error)
GetCAPIClusters mocks base method.
func (*MockClusterClient) GetKindClusterKubeconfig ¶ added in v0.15.2
func (m *MockClusterClient) GetKindClusterKubeconfig(arg0 context.Context, arg1 string) (string, error)
GetKindClusterKubeconfig mocks base method.
func (*MockClusterClient) KindClusterExists ¶ added in v0.15.2
KindClusterExists mocks base method.
func (*MockClusterClient) WithEnv ¶
func (m *MockClusterClient) WithEnv(arg0 map[string]string) bootstrapper.BootstrapClusterClientOption
WithEnv mocks base method.
func (*MockClusterClient) WithExtraDockerMounts ¶
func (m *MockClusterClient) WithExtraDockerMounts() bootstrapper.BootstrapClusterClientOption
WithExtraDockerMounts mocks base method.
func (*MockClusterClient) WithExtraPortMappings ¶ added in v0.9.0
func (m *MockClusterClient) WithExtraPortMappings(arg0 []int) bootstrapper.BootstrapClusterClientOption
WithExtraPortMappings mocks base method.
type MockClusterClientMockRecorder ¶
type MockClusterClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClusterClientMockRecorder is the mock recorder for MockClusterClient.
func (*MockClusterClientMockRecorder) Apply ¶ added in v0.15.2
func (mr *MockClusterClientMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call
Apply indicates an expected call of Apply.
func (*MockClusterClientMockRecorder) CreateBootstrapCluster ¶
func (mr *MockClusterClientMockRecorder) CreateBootstrapCluster(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CreateBootstrapCluster indicates an expected call of CreateBootstrapCluster.
func (*MockClusterClientMockRecorder) CreateNamespace ¶
func (mr *MockClusterClientMockRecorder) CreateNamespace(arg0, arg1, arg2 interface{}) *gomock.Call
CreateNamespace indicates an expected call of CreateNamespace.
func (*MockClusterClientMockRecorder) DeleteKindCluster ¶ added in v0.15.2
func (mr *MockClusterClientMockRecorder) DeleteKindCluster(arg0, arg1 interface{}) *gomock.Call
DeleteKindCluster indicates an expected call of DeleteKindCluster.
func (*MockClusterClientMockRecorder) GetCAPIClusterCRD ¶ added in v0.15.2
func (mr *MockClusterClientMockRecorder) GetCAPIClusterCRD(arg0, arg1 interface{}) *gomock.Call
GetCAPIClusterCRD indicates an expected call of GetCAPIClusterCRD.
func (*MockClusterClientMockRecorder) GetCAPIClusters ¶ added in v0.15.2
func (mr *MockClusterClientMockRecorder) GetCAPIClusters(arg0, arg1 interface{}) *gomock.Call
GetCAPIClusters indicates an expected call of GetCAPIClusters.
func (*MockClusterClientMockRecorder) GetKindClusterKubeconfig ¶ added in v0.15.2
func (mr *MockClusterClientMockRecorder) GetKindClusterKubeconfig(arg0, arg1 interface{}) *gomock.Call
GetKindClusterKubeconfig indicates an expected call of GetKindClusterKubeconfig.
func (*MockClusterClientMockRecorder) KindClusterExists ¶ added in v0.15.2
func (mr *MockClusterClientMockRecorder) KindClusterExists(arg0, arg1 interface{}) *gomock.Call
KindClusterExists indicates an expected call of KindClusterExists.
func (*MockClusterClientMockRecorder) WithEnv ¶
func (mr *MockClusterClientMockRecorder) WithEnv(arg0 interface{}) *gomock.Call
WithEnv indicates an expected call of WithEnv.
func (*MockClusterClientMockRecorder) WithExtraDockerMounts ¶
func (mr *MockClusterClientMockRecorder) WithExtraDockerMounts() *gomock.Call
WithExtraDockerMounts indicates an expected call of WithExtraDockerMounts.
func (*MockClusterClientMockRecorder) WithExtraPortMappings ¶ added in v0.9.0
func (mr *MockClusterClientMockRecorder) WithExtraPortMappings(arg0 interface{}) *gomock.Call
WithExtraPortMappings indicates an expected call of WithExtraPortMappings.
type MockKindClient ¶ added in v0.15.2
type MockKindClient struct {
// contains filtered or unexported fields
}
MockKindClient is a mock of KindClient interface.
func NewMockKindClient ¶ added in v0.15.2
func NewMockKindClient(ctrl *gomock.Controller) *MockKindClient
NewMockKindClient creates a new mock instance.
func (*MockKindClient) ClusterExists ¶ added in v0.15.2
ClusterExists mocks base method.
func (*MockKindClient) CreateBootstrapCluster ¶ added in v0.15.2
func (m *MockKindClient) CreateBootstrapCluster(arg0 context.Context, arg1 *cluster.Spec, arg2 ...bootstrapper.BootstrapClusterClientOption) (string, error)
CreateBootstrapCluster mocks base method.
func (*MockKindClient) DeleteBootstrapCluster ¶ added in v0.15.2
DeleteBootstrapCluster mocks base method.
func (*MockKindClient) EXPECT ¶ added in v0.15.2
func (m *MockKindClient) EXPECT() *MockKindClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockKindClient) GetKubeconfig ¶ added in v0.15.2
GetKubeconfig mocks base method.
func (*MockKindClient) WithEnv ¶ added in v0.15.2
func (m *MockKindClient) WithEnv(arg0 map[string]string) bootstrapper.BootstrapClusterClientOption
WithEnv mocks base method.
func (*MockKindClient) WithExtraDockerMounts ¶ added in v0.15.2
func (m *MockKindClient) WithExtraDockerMounts() bootstrapper.BootstrapClusterClientOption
WithExtraDockerMounts mocks base method.
func (*MockKindClient) WithExtraPortMappings ¶ added in v0.15.2
func (m *MockKindClient) WithExtraPortMappings(arg0 []int) bootstrapper.BootstrapClusterClientOption
WithExtraPortMappings mocks base method.
type MockKindClientMockRecorder ¶ added in v0.15.2
type MockKindClientMockRecorder struct {
// contains filtered or unexported fields
}
MockKindClientMockRecorder is the mock recorder for MockKindClient.
func (*MockKindClientMockRecorder) ClusterExists ¶ added in v0.15.2
func (mr *MockKindClientMockRecorder) ClusterExists(arg0, arg1 interface{}) *gomock.Call
ClusterExists indicates an expected call of ClusterExists.
func (*MockKindClientMockRecorder) CreateBootstrapCluster ¶ added in v0.15.2
func (mr *MockKindClientMockRecorder) CreateBootstrapCluster(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CreateBootstrapCluster indicates an expected call of CreateBootstrapCluster.
func (*MockKindClientMockRecorder) DeleteBootstrapCluster ¶ added in v0.15.2
func (mr *MockKindClientMockRecorder) DeleteBootstrapCluster(arg0, arg1 interface{}) *gomock.Call
DeleteBootstrapCluster indicates an expected call of DeleteBootstrapCluster.
func (*MockKindClientMockRecorder) GetKubeconfig ¶ added in v0.15.2
func (mr *MockKindClientMockRecorder) GetKubeconfig(arg0, arg1 interface{}) *gomock.Call
GetKubeconfig indicates an expected call of GetKubeconfig.
func (*MockKindClientMockRecorder) WithEnv ¶ added in v0.15.2
func (mr *MockKindClientMockRecorder) WithEnv(arg0 interface{}) *gomock.Call
WithEnv indicates an expected call of WithEnv.
func (*MockKindClientMockRecorder) WithExtraDockerMounts ¶ added in v0.15.2
func (mr *MockKindClientMockRecorder) WithExtraDockerMounts() *gomock.Call
WithExtraDockerMounts indicates an expected call of WithExtraDockerMounts.
func (*MockKindClientMockRecorder) WithExtraPortMappings ¶ added in v0.15.2
func (mr *MockKindClientMockRecorder) WithExtraPortMappings(arg0 interface{}) *gomock.Call
WithExtraPortMappings indicates an expected call of WithExtraPortMappings.
type MockKubernetesClient ¶ added in v0.15.2
type MockKubernetesClient struct {
// contains filtered or unexported fields
}
MockKubernetesClient is a mock of KubernetesClient interface.
func NewMockKubernetesClient ¶ added in v0.15.2
func NewMockKubernetesClient(ctrl *gomock.Controller) *MockKubernetesClient
NewMockKubernetesClient creates a new mock instance.
func (*MockKubernetesClient) ApplyKubeSpecFromBytes ¶ added in v0.15.2
func (m *MockKubernetesClient) ApplyKubeSpecFromBytes(arg0 context.Context, arg1 *types.Cluster, arg2 []byte) error
ApplyKubeSpecFromBytes mocks base method.
func (*MockKubernetesClient) CreateNamespaceIfNotPresent ¶ added in v0.15.2
func (m *MockKubernetesClient) CreateNamespaceIfNotPresent(arg0 context.Context, arg1, arg2 string) error
CreateNamespaceIfNotPresent mocks base method.
func (*MockKubernetesClient) EXPECT ¶ added in v0.15.2
func (m *MockKubernetesClient) EXPECT() *MockKubernetesClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockKubernetesClient) GetClusters ¶ added in v0.15.2
func (m *MockKubernetesClient) GetClusters(arg0 context.Context, arg1 *types.Cluster) ([]types.CAPICluster, error)
GetClusters mocks base method.
func (*MockKubernetesClient) ValidateClustersCRD ¶ added in v0.15.2
ValidateClustersCRD mocks base method.
type MockKubernetesClientMockRecorder ¶ added in v0.15.2
type MockKubernetesClientMockRecorder struct {
// contains filtered or unexported fields
}
MockKubernetesClientMockRecorder is the mock recorder for MockKubernetesClient.
func (*MockKubernetesClientMockRecorder) ApplyKubeSpecFromBytes ¶ added in v0.15.2
func (mr *MockKubernetesClientMockRecorder) ApplyKubeSpecFromBytes(arg0, arg1, arg2 interface{}) *gomock.Call
ApplyKubeSpecFromBytes indicates an expected call of ApplyKubeSpecFromBytes.
func (*MockKubernetesClientMockRecorder) CreateNamespaceIfNotPresent ¶ added in v0.15.2
func (mr *MockKubernetesClientMockRecorder) CreateNamespaceIfNotPresent(arg0, arg1, arg2 interface{}) *gomock.Call
CreateNamespaceIfNotPresent indicates an expected call of CreateNamespaceIfNotPresent.
func (*MockKubernetesClientMockRecorder) GetClusters ¶ added in v0.15.2
func (mr *MockKubernetesClientMockRecorder) GetClusters(arg0, arg1 interface{}) *gomock.Call
GetClusters indicates an expected call of GetClusters.
func (*MockKubernetesClientMockRecorder) ValidateClustersCRD ¶ added in v0.15.2
func (mr *MockKubernetesClientMockRecorder) ValidateClustersCRD(arg0, arg1 interface{}) *gomock.Call
ValidateClustersCRD indicates an expected call of ValidateClustersCRD.