Documentation ¶
Index ¶
- type ArgoDB
- func (_m *ArgoDB) AddGPGPublicKey(ctx context.Context, keyData string) (map[string]*v1alpha1.GnuPGPublicKey, []string, error)
- func (_m *ArgoDB) CreateCluster(ctx context.Context, c *v1alpha1.Cluster) (*v1alpha1.Cluster, error)
- func (_m *ArgoDB) CreateRepoCertificate(ctx context.Context, certificate *v1alpha1.RepositoryCertificateList, ...) (*v1alpha1.RepositoryCertificateList, error)
- func (_m *ArgoDB) CreateRepository(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error)
- func (_m *ArgoDB) CreateRepositoryCredentials(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)
- func (_m *ArgoDB) DeleteCluster(ctx context.Context, server string) error
- func (_m *ArgoDB) DeleteGPGPublicKey(ctx context.Context, keyID string) error
- func (_m *ArgoDB) DeleteRepository(ctx context.Context, name string) error
- func (_m *ArgoDB) DeleteRepositoryCredentials(ctx context.Context, name string) error
- func (_m *ArgoDB) GetAllHelmRepositoryCredentials(ctx context.Context) ([]*v1alpha1.RepoCreds, error)
- func (_m *ArgoDB) GetApplicationControllerReplicas() int
- func (_m *ArgoDB) GetCluster(ctx context.Context, server string) (*v1alpha1.Cluster, error)
- func (_m *ArgoDB) GetClusterServersByName(ctx context.Context, name string) ([]string, error)
- func (_m *ArgoDB) GetProjectClusters(ctx context.Context, project string) ([]*v1alpha1.Cluster, error)
- func (_m *ArgoDB) GetProjectRepositories(ctx context.Context, project string) ([]*v1alpha1.Repository, error)
- func (_m *ArgoDB) GetRepository(ctx context.Context, url string) (*v1alpha1.Repository, error)
- func (_m *ArgoDB) GetRepositoryCredentials(ctx context.Context, name string) (*v1alpha1.RepoCreds, error)
- func (_m *ArgoDB) ListClusters(ctx context.Context) (*v1alpha1.ClusterList, error)
- func (_m *ArgoDB) ListConfiguredGPGPublicKeys(ctx context.Context) (map[string]*v1alpha1.GnuPGPublicKey, error)
- func (_m *ArgoDB) ListHelmRepositories(ctx context.Context) ([]*v1alpha1.Repository, error)
- func (_m *ArgoDB) ListRepoCertificates(ctx context.Context, selector *db.CertificateListSelector) (*v1alpha1.RepositoryCertificateList, error)
- func (_m *ArgoDB) ListRepositories(ctx context.Context) ([]*v1alpha1.Repository, error)
- func (_m *ArgoDB) ListRepositoryCredentials(ctx context.Context) ([]string, error)
- func (_m *ArgoDB) RemoveRepoCertificates(ctx context.Context, selector *db.CertificateListSelector) (*v1alpha1.RepositoryCertificateList, error)
- func (_m *ArgoDB) RepositoryExists(ctx context.Context, repoURL string) (bool, error)
- func (_m *ArgoDB) UpdateCluster(ctx context.Context, c *v1alpha1.Cluster) (*v1alpha1.Cluster, error)
- func (_m *ArgoDB) UpdateRepository(ctx context.Context, r *v1alpha1.Repository) (*v1alpha1.Repository, error)
- func (_m *ArgoDB) UpdateRepositoryCredentials(ctx context.Context, r *v1alpha1.RepoCreds) (*v1alpha1.RepoCreds, error)
- func (_m *ArgoDB) WatchClusters(ctx context.Context, handleAddEvent func(*v1alpha1.Cluster), ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgoDB ¶
ArgoDB is an autogenerated mock type for the ArgoDB type
func NewArgoDB ¶ added in v2.9.0
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) DeleteCluster ¶
DeleteCluster provides a mock function with given fields: ctx, server
func (*ArgoDB) DeleteGPGPublicKey ¶
DeleteGPGPublicKey provides a mock function with given fields: ctx, keyID
func (*ArgoDB) DeleteRepository ¶
DeleteRepository provides a mock function with given fields: ctx, name
func (*ArgoDB) DeleteRepositoryCredentials ¶
DeleteRepositoryCredentials 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
GetApplicationControllerReplicas provides a mock function with given fields:
func (*ArgoDB) GetCluster ¶
GetCluster provides a mock function with given fields: ctx, server
func (*ArgoDB) GetClusterServersByName ¶ added in v2.2.3
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) GetRepository ¶
GetRepository provides a mock function with given fields: ctx, url
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) ListClusters ¶
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 ¶
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 ¶
ListRepositories provides a mock function with given fields: ctx
func (*ArgoDB) ListRepositoryCredentials ¶
ListRepositoryCredentials 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
RepositoryExists provides a mock function with given fields: ctx, repoURL
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) 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