mocks

package
v0.25.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

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.

func (*MockFluxClientMockRecorder) Reconcile

func (mr *MockFluxClientMockRecorder) Reconcile(ctx, arg1, fluxConfig any) *gomock.Call

Reconcile indicates an expected call of Reconcile.

func (*MockFluxClientMockRecorder) Uninstall

func (mr *MockFluxClientMockRecorder) Uninstall(ctx, arg1, fluxConfig any) *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) 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

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) Init

func (m *MockGitClient) Init() error

Init 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

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.

func (*MockGitClientMockRecorder) Push

func (mr *MockGitClientMockRecorder) Push(ctx any) *gomock.Call

Push indicates an expected call of Push.

func (*MockGitClientMockRecorder) Remove

func (mr *MockGitClientMockRecorder) Remove(filename any) *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(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

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.

func (*MockGitOpsFluxClientMockRecorder) Reconcile

func (mr *MockGitOpsFluxClientMockRecorder) Reconcile(ctx, arg1, fluxConfig any) *gomock.Call

Reconcile indicates an expected call of Reconcile.

func (*MockGitOpsFluxClientMockRecorder) Uninstall

func (mr *MockGitOpsFluxClientMockRecorder) Uninstall(ctx, arg1, fluxConfig any) *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(ctx context.Context, managementCluster *types.Cluster, secretName, namespace string) error

DeleteSecret mocks base method.

func (*MockKubeClient) EXPECT

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

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.

Jump to

Keyboard shortcuts

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