Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockFluxClient
- func (m *MockFluxClient) BootstrapGit(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig, ...) error
- func (m *MockFluxClient) BootstrapGithub(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig) error
- func (m *MockFluxClient) EXPECT() *MockFluxClientMockRecorder
- func (m *MockFluxClient) Reconcile(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig) error
- func (m *MockFluxClient) Uninstall(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig) error
- type MockFluxClientMockRecorder
- func (mr *MockFluxClientMockRecorder) BootstrapGit(ctx, arg1, fluxConfig, cliConfig any) *gomock.Call
- func (mr *MockFluxClientMockRecorder) BootstrapGithub(ctx, arg1, fluxConfig any) *gomock.Call
- func (mr *MockFluxClientMockRecorder) Reconcile(ctx, arg1, fluxConfig any) *gomock.Call
- func (mr *MockFluxClientMockRecorder) Uninstall(ctx, arg1, fluxConfig any) *gomock.Call
- type MockGitClient
- func (m *MockGitClient) Add(filename string) error
- func (m *MockGitClient) Branch(name string) error
- func (m *MockGitClient) Clone(ctx context.Context) error
- func (m *MockGitClient) Commit(message string) error
- func (m *MockGitClient) CreateRepo(ctx context.Context, opts git.CreateRepoOpts) error
- func (m *MockGitClient) EXPECT() *MockGitClientMockRecorder
- func (m *MockGitClient) GetRepo(ctx context.Context) (*git.Repository, error)
- func (m *MockGitClient) Init() error
- func (m *MockGitClient) PathExists(ctx context.Context, owner, repo, branch, path string) (bool, error)
- func (m *MockGitClient) Pull(ctx context.Context, branch string) error
- func (m *MockGitClient) Push(ctx context.Context) error
- func (m *MockGitClient) Remove(filename string) error
- type MockGitClientMockRecorder
- func (mr *MockGitClientMockRecorder) Add(filename any) *gomock.Call
- func (mr *MockGitClientMockRecorder) Branch(name any) *gomock.Call
- func (mr *MockGitClientMockRecorder) Clone(ctx any) *gomock.Call
- func (mr *MockGitClientMockRecorder) Commit(message any) *gomock.Call
- func (mr *MockGitClientMockRecorder) CreateRepo(ctx, opts any) *gomock.Call
- func (mr *MockGitClientMockRecorder) GetRepo(ctx any) *gomock.Call
- func (mr *MockGitClientMockRecorder) Init() *gomock.Call
- func (mr *MockGitClientMockRecorder) PathExists(ctx, owner, repo, branch, path any) *gomock.Call
- func (mr *MockGitClientMockRecorder) Pull(ctx, branch any) *gomock.Call
- func (mr *MockGitClientMockRecorder) Push(ctx any) *gomock.Call
- func (mr *MockGitClientMockRecorder) Remove(filename any) *gomock.Call
- type MockGitOpsFluxClient
- func (m *MockGitOpsFluxClient) BootstrapGit(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig, ...) error
- func (m *MockGitOpsFluxClient) BootstrapGithub(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig) error
- func (m *MockGitOpsFluxClient) DeleteSystemSecret(ctx context.Context, arg1 *types.Cluster, namespace string) error
- func (m *MockGitOpsFluxClient) DisableResourceReconcile(ctx context.Context, arg1 *types.Cluster, ...) error
- func (m *MockGitOpsFluxClient) EXPECT() *MockGitOpsFluxClientMockRecorder
- func (m *MockGitOpsFluxClient) EnableResourceReconcile(ctx context.Context, arg1 *types.Cluster, ...) error
- func (m *MockGitOpsFluxClient) ForceReconcile(ctx context.Context, arg1 *types.Cluster, namespace string) error
- func (m *MockGitOpsFluxClient) GetCluster(ctx context.Context, arg1 *types.Cluster, clusterSpec *cluster.Spec) (*v1alpha1.Cluster, error)
- func (m *MockGitOpsFluxClient) Reconcile(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig) error
- func (m *MockGitOpsFluxClient) Uninstall(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig) error
- type MockGitOpsFluxClientMockRecorder
- func (mr *MockGitOpsFluxClientMockRecorder) BootstrapGit(ctx, arg1, fluxConfig, cliConfig any) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) BootstrapGithub(ctx, arg1, fluxConfig any) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) DeleteSystemSecret(ctx, arg1, namespace any) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) DisableResourceReconcile(ctx, arg1, resourceType, objectName, namespace any) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) EnableResourceReconcile(ctx, arg1, resourceType, objectName, namespace any) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) ForceReconcile(ctx, arg1, namespace any) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) GetCluster(ctx, arg1, clusterSpec any) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) Reconcile(ctx, arg1, fluxConfig any) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) Uninstall(ctx, arg1, fluxConfig any) *gomock.Call
- type MockKubeClient
- func (m *MockKubeClient) DeleteSecret(ctx context.Context, managementCluster *types.Cluster, ...) error
- func (m *MockKubeClient) EXPECT() *MockKubeClientMockRecorder
- func (m *MockKubeClient) GetEksaCluster(ctx context.Context, arg1 *types.Cluster, clusterName string) (*v1alpha1.Cluster, error)
- func (m *MockKubeClient) RemoveAnnotation(ctx context.Context, resourceType, objectName, key string, ...) error
- func (m *MockKubeClient) UpdateAnnotation(ctx context.Context, resourceType, objectName string, ...) error
- type MockKubeClientMockRecorder
- func (mr *MockKubeClientMockRecorder) DeleteSecret(ctx, managementCluster, secretName, namespace any) *gomock.Call
- func (mr *MockKubeClientMockRecorder) GetEksaCluster(ctx, arg1, clusterName any) *gomock.Call
- func (mr *MockKubeClientMockRecorder) RemoveAnnotation(ctx, resourceType, objectName, key any, opts ...any) *gomock.Call
- func (mr *MockKubeClientMockRecorder) UpdateAnnotation(ctx, resourceType, objectName, annotations any, opts ...any) *gomock.Call
- type MockTemplater
- type MockTemplaterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFluxClient ¶
type MockFluxClient struct {
// contains filtered or unexported fields
}
MockFluxClient is a mock of FluxClient interface.
func NewMockFluxClient ¶
func NewMockFluxClient(ctrl *gomock.Controller) *MockFluxClient
NewMockFluxClient creates a new mock instance.
func (*MockFluxClient) BootstrapGit ¶
func (m *MockFluxClient) BootstrapGit(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig, cliConfig *config.CliConfig) error
BootstrapGit mocks base method.
func (*MockFluxClient) BootstrapGithub ¶
func (m *MockFluxClient) BootstrapGithub(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig) error
BootstrapGithub mocks base method.
func (*MockFluxClient) EXPECT ¶
func (m *MockFluxClient) EXPECT() *MockFluxClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFluxClient) Reconcile ¶
func (m *MockFluxClient) Reconcile(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig) error
Reconcile mocks base method.
func (*MockFluxClient) Uninstall ¶
func (m *MockFluxClient) Uninstall(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig) error
Uninstall mocks base method.
type MockFluxClientMockRecorder ¶
type MockFluxClientMockRecorder struct {
// contains filtered or unexported fields
}
MockFluxClientMockRecorder is the mock recorder for MockFluxClient.
func (*MockFluxClientMockRecorder) BootstrapGit ¶
func (mr *MockFluxClientMockRecorder) BootstrapGit(ctx, arg1, fluxConfig, cliConfig any) *gomock.Call
BootstrapGit indicates an expected call of BootstrapGit.
func (*MockFluxClientMockRecorder) BootstrapGithub ¶
func (mr *MockFluxClientMockRecorder) BootstrapGithub(ctx, arg1, fluxConfig any) *gomock.Call
BootstrapGithub indicates an expected call of BootstrapGithub.
type MockGitClient ¶
type MockGitClient struct {
// contains filtered or unexported fields
}
MockGitClient is a mock of GitClient interface.
func NewMockGitClient ¶
func NewMockGitClient(ctrl *gomock.Controller) *MockGitClient
NewMockGitClient creates a new mock instance.
func (*MockGitClient) Add ¶
func (m *MockGitClient) Add(filename string) error
Add mocks base method.
func (*MockGitClient) Branch ¶
func (m *MockGitClient) Branch(name string) error
Branch mocks base method.
func (*MockGitClient) Clone ¶
func (m *MockGitClient) Clone(ctx context.Context) error
Clone mocks base method.
func (*MockGitClient) Commit ¶
func (m *MockGitClient) Commit(message string) error
Commit mocks base method.
func (*MockGitClient) CreateRepo ¶
func (m *MockGitClient) CreateRepo(ctx context.Context, opts git.CreateRepoOpts) error
CreateRepo mocks base method.
func (*MockGitClient) EXPECT ¶
func (m *MockGitClient) EXPECT() *MockGitClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGitClient) GetRepo ¶
func (m *MockGitClient) GetRepo(ctx context.Context) (*git.Repository, error)
GetRepo mocks base method.
func (*MockGitClient) PathExists ¶
func (m *MockGitClient) PathExists(ctx context.Context, owner, repo, branch, path string) (bool, error)
PathExists mocks base method.
func (*MockGitClient) Pull ¶
func (m *MockGitClient) Pull(ctx context.Context, branch string) error
Pull mocks base method.
func (*MockGitClient) Push ¶
func (m *MockGitClient) Push(ctx context.Context) error
Push mocks base method.
func (*MockGitClient) Remove ¶
func (m *MockGitClient) Remove(filename string) error
Remove mocks base method.
type MockGitClientMockRecorder ¶
type MockGitClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGitClientMockRecorder is the mock recorder for MockGitClient.
func (*MockGitClientMockRecorder) Add ¶
func (mr *MockGitClientMockRecorder) Add(filename any) *gomock.Call
Add indicates an expected call of Add.
func (*MockGitClientMockRecorder) Branch ¶
func (mr *MockGitClientMockRecorder) Branch(name any) *gomock.Call
Branch indicates an expected call of Branch.
func (*MockGitClientMockRecorder) Clone ¶
func (mr *MockGitClientMockRecorder) Clone(ctx any) *gomock.Call
Clone indicates an expected call of Clone.
func (*MockGitClientMockRecorder) Commit ¶
func (mr *MockGitClientMockRecorder) Commit(message any) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockGitClientMockRecorder) CreateRepo ¶
func (mr *MockGitClientMockRecorder) CreateRepo(ctx, opts any) *gomock.Call
CreateRepo indicates an expected call of CreateRepo.
func (*MockGitClientMockRecorder) GetRepo ¶
func (mr *MockGitClientMockRecorder) GetRepo(ctx any) *gomock.Call
GetRepo indicates an expected call of GetRepo.
func (*MockGitClientMockRecorder) Init ¶
func (mr *MockGitClientMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init.
func (*MockGitClientMockRecorder) PathExists ¶
func (mr *MockGitClientMockRecorder) PathExists(ctx, owner, repo, branch, path any) *gomock.Call
PathExists indicates an expected call of PathExists.
func (*MockGitClientMockRecorder) Pull ¶
func (mr *MockGitClientMockRecorder) Pull(ctx, branch any) *gomock.Call
Pull indicates an expected call of Pull.
type MockGitOpsFluxClient ¶
type MockGitOpsFluxClient struct {
// contains filtered or unexported fields
}
MockGitOpsFluxClient is a mock of GitOpsFluxClient interface.
func NewMockGitOpsFluxClient ¶
func NewMockGitOpsFluxClient(ctrl *gomock.Controller) *MockGitOpsFluxClient
NewMockGitOpsFluxClient creates a new mock instance.
func (*MockGitOpsFluxClient) BootstrapGit ¶
func (m *MockGitOpsFluxClient) BootstrapGit(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig, cliConfig *config.CliConfig) error
BootstrapGit mocks base method.
func (*MockGitOpsFluxClient) BootstrapGithub ¶
func (m *MockGitOpsFluxClient) BootstrapGithub(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig) error
BootstrapGithub mocks base method.
func (*MockGitOpsFluxClient) DeleteSystemSecret ¶
func (m *MockGitOpsFluxClient) DeleteSystemSecret(ctx context.Context, arg1 *types.Cluster, namespace string) error
DeleteSystemSecret mocks base method.
func (*MockGitOpsFluxClient) DisableResourceReconcile ¶ added in v0.11.2
func (m *MockGitOpsFluxClient) DisableResourceReconcile(ctx context.Context, arg1 *types.Cluster, resourceType, objectName, namespace string) error
DisableResourceReconcile mocks base method.
func (*MockGitOpsFluxClient) EXPECT ¶
func (m *MockGitOpsFluxClient) EXPECT() *MockGitOpsFluxClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGitOpsFluxClient) EnableResourceReconcile ¶ added in v0.11.2
func (m *MockGitOpsFluxClient) EnableResourceReconcile(ctx context.Context, arg1 *types.Cluster, resourceType, objectName, namespace string) error
EnableResourceReconcile mocks base method.
func (*MockGitOpsFluxClient) ForceReconcile ¶
func (m *MockGitOpsFluxClient) ForceReconcile(ctx context.Context, arg1 *types.Cluster, namespace string) error
ForceReconcile mocks base method.
func (*MockGitOpsFluxClient) GetCluster ¶
func (m *MockGitOpsFluxClient) GetCluster(ctx context.Context, arg1 *types.Cluster, clusterSpec *cluster.Spec) (*v1alpha1.Cluster, error)
GetCluster mocks base method.
func (*MockGitOpsFluxClient) Reconcile ¶
func (m *MockGitOpsFluxClient) Reconcile(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig) error
Reconcile mocks base method.
func (*MockGitOpsFluxClient) Uninstall ¶
func (m *MockGitOpsFluxClient) Uninstall(ctx context.Context, arg1 *types.Cluster, fluxConfig *v1alpha1.FluxConfig) error
Uninstall mocks base method.
type MockGitOpsFluxClientMockRecorder ¶
type MockGitOpsFluxClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGitOpsFluxClientMockRecorder is the mock recorder for MockGitOpsFluxClient.
func (*MockGitOpsFluxClientMockRecorder) BootstrapGit ¶
func (mr *MockGitOpsFluxClientMockRecorder) BootstrapGit(ctx, arg1, fluxConfig, cliConfig any) *gomock.Call
BootstrapGit indicates an expected call of BootstrapGit.
func (*MockGitOpsFluxClientMockRecorder) BootstrapGithub ¶
func (mr *MockGitOpsFluxClientMockRecorder) BootstrapGithub(ctx, arg1, fluxConfig any) *gomock.Call
BootstrapGithub indicates an expected call of BootstrapGithub.
func (*MockGitOpsFluxClientMockRecorder) DeleteSystemSecret ¶
func (mr *MockGitOpsFluxClientMockRecorder) DeleteSystemSecret(ctx, arg1, namespace any) *gomock.Call
DeleteSystemSecret indicates an expected call of DeleteSystemSecret.
func (*MockGitOpsFluxClientMockRecorder) DisableResourceReconcile ¶ added in v0.11.2
func (mr *MockGitOpsFluxClientMockRecorder) DisableResourceReconcile(ctx, arg1, resourceType, objectName, namespace any) *gomock.Call
DisableResourceReconcile indicates an expected call of DisableResourceReconcile.
func (*MockGitOpsFluxClientMockRecorder) EnableResourceReconcile ¶ added in v0.11.2
func (mr *MockGitOpsFluxClientMockRecorder) EnableResourceReconcile(ctx, arg1, resourceType, objectName, namespace any) *gomock.Call
EnableResourceReconcile indicates an expected call of EnableResourceReconcile.
func (*MockGitOpsFluxClientMockRecorder) ForceReconcile ¶
func (mr *MockGitOpsFluxClientMockRecorder) ForceReconcile(ctx, arg1, namespace any) *gomock.Call
ForceReconcile indicates an expected call of ForceReconcile.
func (*MockGitOpsFluxClientMockRecorder) GetCluster ¶
func (mr *MockGitOpsFluxClientMockRecorder) GetCluster(ctx, arg1, clusterSpec any) *gomock.Call
GetCluster indicates an expected call of GetCluster.
type MockKubeClient ¶
type MockKubeClient struct {
// contains filtered or unexported fields
}
MockKubeClient is a mock of KubeClient interface.
func NewMockKubeClient ¶
func NewMockKubeClient(ctrl *gomock.Controller) *MockKubeClient
NewMockKubeClient creates a new mock instance.
func (*MockKubeClient) DeleteSecret ¶
func (m *MockKubeClient) DeleteSecret(ctx context.Context, managementCluster *types.Cluster, secretName, namespace string) error
DeleteSecret mocks base method.
func (*MockKubeClient) EXPECT ¶
func (m *MockKubeClient) EXPECT() *MockKubeClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockKubeClient) GetEksaCluster ¶
func (m *MockKubeClient) GetEksaCluster(ctx context.Context, arg1 *types.Cluster, clusterName string) (*v1alpha1.Cluster, error)
GetEksaCluster mocks base method.
func (*MockKubeClient) RemoveAnnotation ¶ added in v0.11.2
func (m *MockKubeClient) RemoveAnnotation(ctx context.Context, resourceType, objectName, key string, opts ...executables.KubectlOpt) error
RemoveAnnotation mocks base method.
func (*MockKubeClient) UpdateAnnotation ¶
func (m *MockKubeClient) UpdateAnnotation(ctx context.Context, resourceType, objectName string, annotations map[string]string, opts ...executables.KubectlOpt) error
UpdateAnnotation mocks base method.
type MockKubeClientMockRecorder ¶
type MockKubeClientMockRecorder struct {
// contains filtered or unexported fields
}
MockKubeClientMockRecorder is the mock recorder for MockKubeClient.
func (*MockKubeClientMockRecorder) DeleteSecret ¶
func (mr *MockKubeClientMockRecorder) DeleteSecret(ctx, managementCluster, secretName, namespace any) *gomock.Call
DeleteSecret indicates an expected call of DeleteSecret.
func (*MockKubeClientMockRecorder) GetEksaCluster ¶
func (mr *MockKubeClientMockRecorder) GetEksaCluster(ctx, arg1, clusterName any) *gomock.Call
GetEksaCluster indicates an expected call of GetEksaCluster.
func (*MockKubeClientMockRecorder) RemoveAnnotation ¶ added in v0.11.2
func (mr *MockKubeClientMockRecorder) RemoveAnnotation(ctx, resourceType, objectName, key any, opts ...any) *gomock.Call
RemoveAnnotation indicates an expected call of RemoveAnnotation.
func (*MockKubeClientMockRecorder) UpdateAnnotation ¶
func (mr *MockKubeClientMockRecorder) UpdateAnnotation(ctx, resourceType, objectName, annotations any, opts ...any) *gomock.Call
UpdateAnnotation indicates an expected call of UpdateAnnotation.
type MockTemplater ¶
type MockTemplater struct {
// contains filtered or unexported fields
}
MockTemplater is a mock of Templater interface.
func NewMockTemplater ¶
func NewMockTemplater(ctrl *gomock.Controller) *MockTemplater
NewMockTemplater creates a new mock instance.
func (*MockTemplater) EXPECT ¶
func (m *MockTemplater) EXPECT() *MockTemplaterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTemplater) WriteToFile ¶
func (m *MockTemplater) WriteToFile(templateContent string, data any, fileName string, f ...filewriter.FileOptionsFunc) (string, error)
WriteToFile mocks base method.
type MockTemplaterMockRecorder ¶
type MockTemplaterMockRecorder struct {
// contains filtered or unexported fields
}
MockTemplaterMockRecorder is the mock recorder for MockTemplater.
func (*MockTemplaterMockRecorder) WriteToFile ¶
func (mr *MockTemplaterMockRecorder) WriteToFile(templateContent, data, fileName any, f ...any) *gomock.Call
WriteToFile indicates an expected call of WriteToFile.