Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockFluxClient
- func (m *MockFluxClient) BootstrapGit(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig, ...) error
- func (m *MockFluxClient) BootstrapGithub(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig) error
- func (m *MockFluxClient) EXPECT() *MockFluxClientMockRecorder
- func (m *MockFluxClient) Reconcile(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig) error
- func (m *MockFluxClient) Uninstall(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig) error
- type MockFluxClientMockRecorder
- func (mr *MockFluxClientMockRecorder) BootstrapGit(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockFluxClientMockRecorder) BootstrapGithub(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFluxClientMockRecorder) Reconcile(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFluxClientMockRecorder) Uninstall(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockGitClient
- func (m *MockGitClient) Add(arg0 string) error
- func (m *MockGitClient) Branch(arg0 string) error
- func (m *MockGitClient) Clone(arg0 context.Context) error
- func (m *MockGitClient) Commit(arg0 string) error
- func (m *MockGitClient) CreateRepo(arg0 context.Context, arg1 git.CreateRepoOpts) error
- func (m *MockGitClient) EXPECT() *MockGitClientMockRecorder
- func (m *MockGitClient) GetRepo(arg0 context.Context) (*git.Repository, error)
- func (m *MockGitClient) Init() error
- func (m *MockGitClient) PathExists(arg0 context.Context, arg1, arg2, arg3, arg4 string) (bool, error)
- func (m *MockGitClient) Pull(arg0 context.Context, arg1 string) error
- func (m *MockGitClient) Push(arg0 context.Context) error
- func (m *MockGitClient) Remove(arg0 string) error
- type MockGitClientMockRecorder
- func (mr *MockGitClientMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockGitClientMockRecorder) Branch(arg0 interface{}) *gomock.Call
- func (mr *MockGitClientMockRecorder) Clone(arg0 interface{}) *gomock.Call
- func (mr *MockGitClientMockRecorder) Commit(arg0 interface{}) *gomock.Call
- func (mr *MockGitClientMockRecorder) CreateRepo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGitClientMockRecorder) GetRepo(arg0 interface{}) *gomock.Call
- func (mr *MockGitClientMockRecorder) Init() *gomock.Call
- func (mr *MockGitClientMockRecorder) PathExists(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockGitClientMockRecorder) Pull(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGitClientMockRecorder) Push(arg0 interface{}) *gomock.Call
- func (mr *MockGitClientMockRecorder) Remove(arg0 interface{}) *gomock.Call
- type MockGitOpsFluxClient
- func (m *MockGitOpsFluxClient) BootstrapGit(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig, ...) error
- func (m *MockGitOpsFluxClient) BootstrapGithub(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig) error
- func (m *MockGitOpsFluxClient) DeleteSystemSecret(arg0 context.Context, arg1 *types.Cluster, arg2 string) error
- func (m *MockGitOpsFluxClient) DisableResourceReconcile(arg0 context.Context, arg1 *types.Cluster, arg2, arg3, arg4 string) error
- func (m *MockGitOpsFluxClient) EXPECT() *MockGitOpsFluxClientMockRecorder
- func (m *MockGitOpsFluxClient) EnableResourceReconcile(arg0 context.Context, arg1 *types.Cluster, arg2, arg3, arg4 string) error
- func (m *MockGitOpsFluxClient) ForceReconcile(arg0 context.Context, arg1 *types.Cluster, arg2 string) error
- func (m *MockGitOpsFluxClient) GetCluster(arg0 context.Context, arg1 *types.Cluster, arg2 *cluster.Spec) (*v1alpha1.Cluster, error)
- func (m *MockGitOpsFluxClient) Reconcile(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig) error
- func (m *MockGitOpsFluxClient) Uninstall(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig) error
- type MockGitOpsFluxClientMockRecorder
- func (mr *MockGitOpsFluxClientMockRecorder) BootstrapGit(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) BootstrapGithub(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) DeleteSystemSecret(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) DisableResourceReconcile(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) EnableResourceReconcile(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) ForceReconcile(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) GetCluster(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) Reconcile(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGitOpsFluxClientMockRecorder) Uninstall(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockKubeClient
- func (m *MockKubeClient) DeleteSecret(arg0 context.Context, arg1 *types.Cluster, arg2, arg3 string) error
- func (m *MockKubeClient) EXPECT() *MockKubeClientMockRecorder
- func (m *MockKubeClient) GetEksaCluster(arg0 context.Context, arg1 *types.Cluster, arg2 string) (*v1alpha1.Cluster, error)
- func (m *MockKubeClient) RemoveAnnotation(arg0 context.Context, arg1, arg2, arg3 string, arg4 ...executables.KubectlOpt) error
- func (m *MockKubeClient) UpdateAnnotation(arg0 context.Context, arg1, arg2 string, arg3 map[string]string, ...) error
- type MockKubeClientMockRecorder
- func (mr *MockKubeClientMockRecorder) DeleteSecret(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockKubeClientMockRecorder) GetEksaCluster(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockKubeClientMockRecorder) RemoveAnnotation(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
- func (mr *MockKubeClientMockRecorder) UpdateAnnotation(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *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(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig, arg3 *config.CliConfig) error
BootstrapGit mocks base method.
func (*MockFluxClient) BootstrapGithub ¶
func (m *MockFluxClient) BootstrapGithub(arg0 context.Context, arg1 *types.Cluster, arg2 *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(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig) error
Reconcile mocks base method.
func (*MockFluxClient) Uninstall ¶
func (m *MockFluxClient) Uninstall(arg0 context.Context, arg1 *types.Cluster, arg2 *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(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
BootstrapGit indicates an expected call of BootstrapGit.
func (*MockFluxClientMockRecorder) BootstrapGithub ¶
func (mr *MockFluxClientMockRecorder) BootstrapGithub(arg0, arg1, arg2 interface{}) *gomock.Call
BootstrapGithub indicates an expected call of BootstrapGithub.
func (*MockFluxClientMockRecorder) Reconcile ¶
func (mr *MockFluxClientMockRecorder) Reconcile(arg0, arg1, arg2 interface{}) *gomock.Call
Reconcile indicates an expected call of Reconcile.
func (*MockFluxClientMockRecorder) Uninstall ¶
func (mr *MockFluxClientMockRecorder) Uninstall(arg0, arg1, arg2 interface{}) *gomock.Call
Uninstall indicates an expected call of Uninstall.
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) Branch ¶
func (m *MockGitClient) Branch(arg0 string) error
Branch mocks base method.
func (*MockGitClient) Clone ¶
func (m *MockGitClient) Clone(arg0 context.Context) error
Clone mocks base method.
func (*MockGitClient) Commit ¶
func (m *MockGitClient) Commit(arg0 string) error
Commit mocks base method.
func (*MockGitClient) CreateRepo ¶
func (m *MockGitClient) CreateRepo(arg0 context.Context, arg1 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(arg0 context.Context) (*git.Repository, error)
GetRepo mocks base method.
func (*MockGitClient) PathExists ¶
func (m *MockGitClient) PathExists(arg0 context.Context, arg1, arg2, arg3, arg4 string) (bool, error)
PathExists mocks base method.
func (*MockGitClient) Pull ¶
func (m *MockGitClient) Pull(arg0 context.Context, arg1 string) error
Pull mocks base method.
func (*MockGitClient) Push ¶
func (m *MockGitClient) Push(arg0 context.Context) error
Push mocks base method.
func (*MockGitClient) Remove ¶
func (m *MockGitClient) Remove(arg0 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(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockGitClientMockRecorder) Branch ¶
func (mr *MockGitClientMockRecorder) Branch(arg0 interface{}) *gomock.Call
Branch indicates an expected call of Branch.
func (*MockGitClientMockRecorder) Clone ¶
func (mr *MockGitClientMockRecorder) Clone(arg0 interface{}) *gomock.Call
Clone indicates an expected call of Clone.
func (*MockGitClientMockRecorder) Commit ¶
func (mr *MockGitClientMockRecorder) Commit(arg0 interface{}) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockGitClientMockRecorder) CreateRepo ¶
func (mr *MockGitClientMockRecorder) CreateRepo(arg0, arg1 interface{}) *gomock.Call
CreateRepo indicates an expected call of CreateRepo.
func (*MockGitClientMockRecorder) GetRepo ¶
func (mr *MockGitClientMockRecorder) GetRepo(arg0 interface{}) *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(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
PathExists indicates an expected call of PathExists.
func (*MockGitClientMockRecorder) Pull ¶
func (mr *MockGitClientMockRecorder) Pull(arg0, arg1 interface{}) *gomock.Call
Pull indicates an expected call of Pull.
func (*MockGitClientMockRecorder) Push ¶
func (mr *MockGitClientMockRecorder) Push(arg0 interface{}) *gomock.Call
Push indicates an expected call of Push.
func (*MockGitClientMockRecorder) Remove ¶
func (mr *MockGitClientMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove.
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(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig, arg3 *config.CliConfig) error
BootstrapGit mocks base method.
func (*MockGitOpsFluxClient) BootstrapGithub ¶
func (m *MockGitOpsFluxClient) BootstrapGithub(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig) error
BootstrapGithub mocks base method.
func (*MockGitOpsFluxClient) DeleteSystemSecret ¶
func (m *MockGitOpsFluxClient) DeleteSystemSecret(arg0 context.Context, arg1 *types.Cluster, arg2 string) error
DeleteSystemSecret mocks base method.
func (*MockGitOpsFluxClient) DisableResourceReconcile ¶ added in v0.11.2
func (m *MockGitOpsFluxClient) DisableResourceReconcile(arg0 context.Context, arg1 *types.Cluster, arg2, arg3, arg4 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(arg0 context.Context, arg1 *types.Cluster, arg2, arg3, arg4 string) error
EnableResourceReconcile mocks base method.
func (*MockGitOpsFluxClient) ForceReconcile ¶
func (m *MockGitOpsFluxClient) ForceReconcile(arg0 context.Context, arg1 *types.Cluster, arg2 string) error
ForceReconcile mocks base method.
func (*MockGitOpsFluxClient) GetCluster ¶
func (m *MockGitOpsFluxClient) GetCluster(arg0 context.Context, arg1 *types.Cluster, arg2 *cluster.Spec) (*v1alpha1.Cluster, error)
GetCluster mocks base method.
func (*MockGitOpsFluxClient) Reconcile ¶
func (m *MockGitOpsFluxClient) Reconcile(arg0 context.Context, arg1 *types.Cluster, arg2 *v1alpha1.FluxConfig) error
Reconcile mocks base method.
func (*MockGitOpsFluxClient) Uninstall ¶
func (m *MockGitOpsFluxClient) Uninstall(arg0 context.Context, arg1 *types.Cluster, arg2 *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(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
BootstrapGit indicates an expected call of BootstrapGit.
func (*MockGitOpsFluxClientMockRecorder) BootstrapGithub ¶
func (mr *MockGitOpsFluxClientMockRecorder) BootstrapGithub(arg0, arg1, arg2 interface{}) *gomock.Call
BootstrapGithub indicates an expected call of BootstrapGithub.
func (*MockGitOpsFluxClientMockRecorder) DeleteSystemSecret ¶
func (mr *MockGitOpsFluxClientMockRecorder) DeleteSystemSecret(arg0, arg1, arg2 interface{}) *gomock.Call
DeleteSystemSecret indicates an expected call of DeleteSystemSecret.
func (*MockGitOpsFluxClientMockRecorder) DisableResourceReconcile ¶ added in v0.11.2
func (mr *MockGitOpsFluxClientMockRecorder) DisableResourceReconcile(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
DisableResourceReconcile indicates an expected call of DisableResourceReconcile.
func (*MockGitOpsFluxClientMockRecorder) EnableResourceReconcile ¶ added in v0.11.2
func (mr *MockGitOpsFluxClientMockRecorder) EnableResourceReconcile(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
EnableResourceReconcile indicates an expected call of EnableResourceReconcile.
func (*MockGitOpsFluxClientMockRecorder) ForceReconcile ¶
func (mr *MockGitOpsFluxClientMockRecorder) ForceReconcile(arg0, arg1, arg2 interface{}) *gomock.Call
ForceReconcile indicates an expected call of ForceReconcile.
func (*MockGitOpsFluxClientMockRecorder) GetCluster ¶
func (mr *MockGitOpsFluxClientMockRecorder) GetCluster(arg0, arg1, arg2 interface{}) *gomock.Call
GetCluster indicates an expected call of GetCluster.
func (*MockGitOpsFluxClientMockRecorder) Reconcile ¶
func (mr *MockGitOpsFluxClientMockRecorder) Reconcile(arg0, arg1, arg2 interface{}) *gomock.Call
Reconcile indicates an expected call of Reconcile.
func (*MockGitOpsFluxClientMockRecorder) Uninstall ¶
func (mr *MockGitOpsFluxClientMockRecorder) Uninstall(arg0, arg1, arg2 interface{}) *gomock.Call
Uninstall indicates an expected call of Uninstall.
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(arg0 context.Context, arg1 *types.Cluster, arg2, arg3 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(arg0 context.Context, arg1 *types.Cluster, arg2 string) (*v1alpha1.Cluster, error)
GetEksaCluster mocks base method.
func (*MockKubeClient) RemoveAnnotation ¶ added in v0.11.2
func (m *MockKubeClient) RemoveAnnotation(arg0 context.Context, arg1, arg2, arg3 string, arg4 ...executables.KubectlOpt) error
RemoveAnnotation mocks base method.
func (*MockKubeClient) UpdateAnnotation ¶
func (m *MockKubeClient) UpdateAnnotation(arg0 context.Context, arg1, arg2 string, arg3 map[string]string, arg4 ...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(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
DeleteSecret indicates an expected call of DeleteSecret.
func (*MockKubeClientMockRecorder) GetEksaCluster ¶
func (mr *MockKubeClientMockRecorder) GetEksaCluster(arg0, arg1, arg2 interface{}) *gomock.Call
GetEksaCluster indicates an expected call of GetEksaCluster.
func (*MockKubeClientMockRecorder) RemoveAnnotation ¶ added in v0.11.2
func (mr *MockKubeClientMockRecorder) RemoveAnnotation(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
RemoveAnnotation indicates an expected call of RemoveAnnotation.
func (*MockKubeClientMockRecorder) UpdateAnnotation ¶
func (mr *MockKubeClientMockRecorder) UpdateAnnotation(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *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(arg0 string, arg1 interface{}, arg2 string, arg3 ...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(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
WriteToFile indicates an expected call of WriteToFile.