Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v2.14.21 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgoDB

type ArgoDB struct {
	mock.Mock
}

ArgoDB is an autogenerated mock type for the ArgoDB type

func NewArgoDB added in v2.9.0

func NewArgoDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *ArgoDB

NewArgoDB creates a new instance of ArgoDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ArgoDB) AddGPGPublicKey

func (_m *ArgoDB) AddGPGPublicKey(ctx context.Context, keyData string) (map[string]*v1alpha1.GnuPGPublicKey, []string, error)

AddGPGPublicKey provides a mock function with given fields: ctx, keyData

func (*ArgoDB) CreateCluster

func (_m *ArgoDB) CreateCluster(ctx context.Context, c *v1alpha1.Cluster) (*v1alpha1.Cluster, error)

CreateCluster provides a mock function with given fields: ctx, c

func (*ArgoDB) CreateRepoCertificate

func (_m *ArgoDB) CreateRepoCertificate(ctx context.Context, certificate *v1alpha1.RepositoryCertificateList, upsert bool) (*v1alpha1.RepositoryCertificateList, error)

CreateRepoCertificate provides a mock function with given fields: ctx, certificate, upsert

func (*ArgoDB) CreateRepository

func (_m *ArgoDB) CreateRepository(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error)

CreateRepository provides a mock function with given fields: ctx, r

func (*ArgoDB) CreateRepositoryCredentials

func (_m *ArgoDB) CreateRepositoryCredentials(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)

CreateRepositoryCredentials provides a mock function with given fields: ctx, r

func (*ArgoDB) CreateWriteRepository added in v2.14.0

func (_m *ArgoDB) CreateWriteRepository(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error)

CreateWriteRepository provides a mock function with given fields: ctx, r

func (*ArgoDB) CreateWriteRepositoryCredentials added in v2.14.0

func (_m *ArgoDB) CreateWriteRepositoryCredentials(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)

CreateWriteRepositoryCredentials provides a mock function with given fields: ctx, r

func (*ArgoDB) DeleteCluster

func (_m *ArgoDB) DeleteCluster(ctx context.Context, server string) error

DeleteCluster provides a mock function with given fields: ctx, server

func (*ArgoDB) DeleteGPGPublicKey

func (_m *ArgoDB) DeleteGPGPublicKey(ctx context.Context, keyID string) error

DeleteGPGPublicKey provides a mock function with given fields: ctx, keyID

func (*ArgoDB) DeleteRepository

func (_m *ArgoDB) DeleteRepository(ctx context.Context, name string, project string) error

DeleteRepository provides a mock function with given fields: ctx, name, project

func (*ArgoDB) DeleteRepositoryCredentials

func (_m *ArgoDB) DeleteRepositoryCredentials(ctx context.Context, name string) error

DeleteRepositoryCredentials provides a mock function with given fields: ctx, name

func (*ArgoDB) DeleteWriteRepository added in v2.14.0

func (_m *ArgoDB) DeleteWriteRepository(ctx context.Context, name string, project string) error

DeleteWriteRepository provides a mock function with given fields: ctx, name, project

func (*ArgoDB) DeleteWriteRepositoryCredentials added in v2.14.0

func (_m *ArgoDB) DeleteWriteRepositoryCredentials(ctx context.Context, name string) error

DeleteWriteRepositoryCredentials provides a mock function with given fields: ctx, name

func (*ArgoDB) GetAllHelmRepositoryCredentials added in v2.1.0

func (_m *ArgoDB) GetAllHelmRepositoryCredentials(ctx context.Context) ([]*v1alpha1.RepoCreds, error)

GetAllHelmRepositoryCredentials provides a mock function with given fields: ctx

func (*ArgoDB) GetApplicationControllerReplicas added in v2.9.0

func (_m *ArgoDB) GetApplicationControllerReplicas() int

GetApplicationControllerReplicas provides a mock function with no fields

func (*ArgoDB) GetCluster

func (_m *ArgoDB) GetCluster(ctx context.Context, server string) (*v1alpha1.Cluster, error)

GetCluster provides a mock function with given fields: ctx, server

func (*ArgoDB) GetClusterServersByName added in v2.2.3

func (_m *ArgoDB) GetClusterServersByName(ctx context.Context, name string) ([]string, error)

GetClusterServersByName provides a mock function with given fields: ctx, name

func (*ArgoDB) GetProjectClusters added in v2.2.0

func (_m *ArgoDB) GetProjectClusters(ctx context.Context, project string) ([]*v1alpha1.Cluster, error)

GetProjectClusters provides a mock function with given fields: ctx, project

func (*ArgoDB) GetProjectRepositories added in v2.2.0

func (_m *ArgoDB) GetProjectRepositories(ctx context.Context, project string) ([]*v1alpha1.Repository, error)

GetProjectRepositories provides a mock function with given fields: ctx, project

func (*ArgoDB) GetProjectWriteRepositories added in v2.14.0

func (_m *ArgoDB) GetProjectWriteRepositories(ctx context.Context, project string) ([]*v1alpha1.Repository, error)

GetProjectWriteRepositories provides a mock function with given fields: ctx, project

func (*ArgoDB) GetRepository

func (_m *ArgoDB) GetRepository(ctx context.Context, url string, project string) (*v1alpha1.Repository, error)

GetRepository provides a mock function with given fields: ctx, url, project

func (*ArgoDB) GetRepositoryCredentials

func (_m *ArgoDB) GetRepositoryCredentials(ctx context.Context, name string) (*v1alpha1.RepoCreds, error)

GetRepositoryCredentials provides a mock function with given fields: ctx, name

func (*ArgoDB) GetWriteCredentials added in v2.14.0

func (_m *ArgoDB) GetWriteCredentials(ctx context.Context, repoURL string) (*v1alpha1.Repository, error)

GetWriteCredentials provides a mock function with given fields: ctx, repoURL

func (*ArgoDB) GetWriteRepository added in v2.14.0

func (_m *ArgoDB) GetWriteRepository(ctx context.Context, url string, project string) (*v1alpha1.Repository, error)

GetWriteRepository provides a mock function with given fields: ctx, url, project

func (*ArgoDB) GetWriteRepositoryCredentials added in v2.14.0

func (_m *ArgoDB) GetWriteRepositoryCredentials(ctx context.Context, name string) (*v1alpha1.RepoCreds, error)

GetWriteRepositoryCredentials provides a mock function with given fields: ctx, name

func (*ArgoDB) ListClusters

func (_m *ArgoDB) ListClusters(ctx context.Context) (*v1alpha1.ClusterList, error)

ListClusters provides a mock function with given fields: ctx

func (*ArgoDB) ListConfiguredGPGPublicKeys

func (_m *ArgoDB) ListConfiguredGPGPublicKeys(ctx context.Context) (map[string]*v1alpha1.GnuPGPublicKey, error)

ListConfiguredGPGPublicKeys provides a mock function with given fields: ctx

func (*ArgoDB) ListHelmRepositories

func (_m *ArgoDB) ListHelmRepositories(ctx context.Context) ([]*v1alpha1.Repository, error)

ListHelmRepositories provides a mock function with given fields: ctx

func (*ArgoDB) ListRepoCertificates

func (_m *ArgoDB) ListRepoCertificates(ctx context.Context, selector *db.CertificateListSelector) (*v1alpha1.RepositoryCertificateList, error)

ListRepoCertificates provides a mock function with given fields: ctx, selector

func (*ArgoDB) ListRepositories

func (_m *ArgoDB) ListRepositories(ctx context.Context) ([]*v1alpha1.Repository, error)

ListRepositories provides a mock function with given fields: ctx

func (*ArgoDB) ListRepositoryCredentials

func (_m *ArgoDB) ListRepositoryCredentials(ctx context.Context) ([]string, error)

ListRepositoryCredentials provides a mock function with given fields: ctx

func (*ArgoDB) ListWriteRepositories added in v2.14.0

func (_m *ArgoDB) ListWriteRepositories(ctx context.Context) ([]*v1alpha1.Repository, error)

ListWriteRepositories provides a mock function with given fields: ctx

func (*ArgoDB) ListWriteRepositoryCredentials added in v2.14.0

func (_m *ArgoDB) ListWriteRepositoryCredentials(ctx context.Context) ([]string, error)

ListWriteRepositoryCredentials provides a mock function with given fields: ctx

func (*ArgoDB) RemoveRepoCertificates

func (_m *ArgoDB) RemoveRepoCertificates(ctx context.Context, selector *db.CertificateListSelector) (*v1alpha1.RepositoryCertificateList, error)

RemoveRepoCertificates provides a mock function with given fields: ctx, selector

func (*ArgoDB) RepositoryExists added in v2.2.0

func (_m *ArgoDB) RepositoryExists(ctx context.Context, repoURL string, project string) (bool, error)

RepositoryExists provides a mock function with given fields: ctx, repoURL, project

func (*ArgoDB) UpdateCluster

func (_m *ArgoDB) UpdateCluster(ctx context.Context, c *v1alpha1.Cluster) (*v1alpha1.Cluster, error)

UpdateCluster provides a mock function with given fields: ctx, c

func (*ArgoDB) UpdateRepository

func (_m *ArgoDB) UpdateRepository(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error)

UpdateRepository provides a mock function with given fields: ctx, r

func (*ArgoDB) UpdateRepositoryCredentials

func (_m *ArgoDB) UpdateRepositoryCredentials(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)

UpdateRepositoryCredentials provides a mock function with given fields: ctx, r

func (*ArgoDB) UpdateWriteRepository added in v2.14.0

func (_m *ArgoDB) UpdateWriteRepository(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error)

UpdateWriteRepository provides a mock function with given fields: ctx, r

func (*ArgoDB) UpdateWriteRepositoryCredentials added in v2.14.0

func (_m *ArgoDB) UpdateWriteRepositoryCredentials(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)

UpdateWriteRepositoryCredentials provides a mock function with given fields: ctx, r

func (*ArgoDB) WatchClusters

func (_m *ArgoDB) WatchClusters(ctx context.Context, handleAddEvent func(*v1alpha1.Cluster), handleModEvent func(*v1alpha1.Cluster, *v1alpha1.Cluster), handleDeleteEvent func(string)) error

WatchClusters provides a mock function with given fields: ctx, handleAddEvent, handleModEvent, handleDeleteEvent

func (*ArgoDB) WriteRepositoryExists added in v2.14.0

func (_m *ArgoDB) WriteRepositoryExists(ctx context.Context, repoURL string, project string) (bool, error)

WriteRepositoryExists provides a mock function with given fields: ctx, repoURL, project

Jump to

Keyboard shortcuts

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