Documentation
¶
Index ¶
- type Dependencies
- func (_mock *Dependencies) AddHydrationQueueItem(key types.HydrationQueueKey)
- func (_m *Dependencies) EXPECT() *Dependencies_Expecter
- func (_mock *Dependencies) GetHydratorCommitMessageTemplate() (string, error)
- func (_mock *Dependencies) GetProcessableAppProj(app *v1alpha1.Application) (*v1alpha1.AppProject, error)
- func (_mock *Dependencies) GetProcessableApps() (*v1alpha1.ApplicationList, error)
- func (_mock *Dependencies) GetRepoObjs(ctx context.Context, app *v1alpha1.Application, ...) ([]*unstructured.Unstructured, *apiclient.ManifestResponse, error)
- func (_mock *Dependencies) GetWriteCredentials(ctx context.Context, repoURL string, project string) (*v1alpha1.Repository, error)
- func (_mock *Dependencies) PersistAppHydratorStatus(orig *v1alpha1.Application, newStatus *v1alpha1.SourceHydratorStatus)
- func (_mock *Dependencies) RequestAppRefresh(appName string, appNamespace string) error
- type Dependencies_AddHydrationQueueItem_Call
- func (_c *Dependencies_AddHydrationQueueItem_Call) Return() *Dependencies_AddHydrationQueueItem_Call
- func (_c *Dependencies_AddHydrationQueueItem_Call) Run(run func(key types.HydrationQueueKey)) *Dependencies_AddHydrationQueueItem_Call
- func (_c *Dependencies_AddHydrationQueueItem_Call) RunAndReturn(run func(key types.HydrationQueueKey)) *Dependencies_AddHydrationQueueItem_Call
- type Dependencies_Expecter
- func (_e *Dependencies_Expecter) AddHydrationQueueItem(key interface{}) *Dependencies_AddHydrationQueueItem_Call
- func (_e *Dependencies_Expecter) GetHydratorCommitMessageTemplate() *Dependencies_GetHydratorCommitMessageTemplate_Call
- func (_e *Dependencies_Expecter) GetProcessableAppProj(app interface{}) *Dependencies_GetProcessableAppProj_Call
- func (_e *Dependencies_Expecter) GetProcessableApps() *Dependencies_GetProcessableApps_Call
- func (_e *Dependencies_Expecter) GetRepoObjs(ctx interface{}, app interface{}, source interface{}, revision interface{}, ...) *Dependencies_GetRepoObjs_Call
- func (_e *Dependencies_Expecter) GetWriteCredentials(ctx interface{}, repoURL interface{}, project interface{}) *Dependencies_GetWriteCredentials_Call
- func (_e *Dependencies_Expecter) PersistAppHydratorStatus(orig interface{}, newStatus interface{}) *Dependencies_PersistAppHydratorStatus_Call
- func (_e *Dependencies_Expecter) RequestAppRefresh(appName interface{}, appNamespace interface{}) *Dependencies_RequestAppRefresh_Call
- type Dependencies_GetHydratorCommitMessageTemplate_Call
- func (_c *Dependencies_GetHydratorCommitMessageTemplate_Call) Return(s string, err error) *Dependencies_GetHydratorCommitMessageTemplate_Call
- func (_c *Dependencies_GetHydratorCommitMessageTemplate_Call) Run(run func()) *Dependencies_GetHydratorCommitMessageTemplate_Call
- func (_c *Dependencies_GetHydratorCommitMessageTemplate_Call) RunAndReturn(run func() (string, error)) *Dependencies_GetHydratorCommitMessageTemplate_Call
- type Dependencies_GetProcessableAppProj_Call
- func (_c *Dependencies_GetProcessableAppProj_Call) Return(appProject *v1alpha1.AppProject, err error) *Dependencies_GetProcessableAppProj_Call
- func (_c *Dependencies_GetProcessableAppProj_Call) Run(run func(app *v1alpha1.Application)) *Dependencies_GetProcessableAppProj_Call
- func (_c *Dependencies_GetProcessableAppProj_Call) RunAndReturn(run func(app *v1alpha1.Application) (*v1alpha1.AppProject, error)) *Dependencies_GetProcessableAppProj_Call
- type Dependencies_GetProcessableApps_Call
- func (_c *Dependencies_GetProcessableApps_Call) Return(applicationList *v1alpha1.ApplicationList, err error) *Dependencies_GetProcessableApps_Call
- func (_c *Dependencies_GetProcessableApps_Call) Run(run func()) *Dependencies_GetProcessableApps_Call
- func (_c *Dependencies_GetProcessableApps_Call) RunAndReturn(run func() (*v1alpha1.ApplicationList, error)) *Dependencies_GetProcessableApps_Call
- type Dependencies_GetRepoObjs_Call
- func (_c *Dependencies_GetRepoObjs_Call) Return(unstructureds []*unstructured.Unstructured, ...) *Dependencies_GetRepoObjs_Call
- func (_c *Dependencies_GetRepoObjs_Call) Run(run func(ctx context.Context, app *v1alpha1.Application, ...)) *Dependencies_GetRepoObjs_Call
- func (_c *Dependencies_GetRepoObjs_Call) RunAndReturn(...) *Dependencies_GetRepoObjs_Call
- type Dependencies_GetWriteCredentials_Call
- func (_c *Dependencies_GetWriteCredentials_Call) Return(repository *v1alpha1.Repository, err error) *Dependencies_GetWriteCredentials_Call
- func (_c *Dependencies_GetWriteCredentials_Call) Run(run func(ctx context.Context, repoURL string, project string)) *Dependencies_GetWriteCredentials_Call
- func (_c *Dependencies_GetWriteCredentials_Call) RunAndReturn(...) *Dependencies_GetWriteCredentials_Call
- type Dependencies_PersistAppHydratorStatus_Call
- func (_c *Dependencies_PersistAppHydratorStatus_Call) Return() *Dependencies_PersistAppHydratorStatus_Call
- func (_c *Dependencies_PersistAppHydratorStatus_Call) Run(run func(orig *v1alpha1.Application, newStatus *v1alpha1.SourceHydratorStatus)) *Dependencies_PersistAppHydratorStatus_Call
- func (_c *Dependencies_PersistAppHydratorStatus_Call) RunAndReturn(run func(orig *v1alpha1.Application, newStatus *v1alpha1.SourceHydratorStatus)) *Dependencies_PersistAppHydratorStatus_Call
- type Dependencies_RequestAppRefresh_Call
- func (_c *Dependencies_RequestAppRefresh_Call) Return(err error) *Dependencies_RequestAppRefresh_Call
- func (_c *Dependencies_RequestAppRefresh_Call) Run(run func(appName string, appNamespace string)) *Dependencies_RequestAppRefresh_Call
- func (_c *Dependencies_RequestAppRefresh_Call) RunAndReturn(run func(appName string, appNamespace string) error) *Dependencies_RequestAppRefresh_Call
- type RepoGetter
- type RepoGetter_Expecter
- type RepoGetter_GetRepository_Call
- func (_c *RepoGetter_GetRepository_Call) Return(repository *v1alpha1.Repository, err error) *RepoGetter_GetRepository_Call
- func (_c *RepoGetter_GetRepository_Call) Run(run func(ctx context.Context, repoURL string, project string)) *RepoGetter_GetRepository_Call
- func (_c *RepoGetter_GetRepository_Call) RunAndReturn(...) *RepoGetter_GetRepository_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
Dependencies is an autogenerated mock type for the Dependencies type
func NewDependencies ¶
func NewDependencies(t interface {
mock.TestingT
Cleanup(func())
}) *Dependencies
NewDependencies creates a new instance of Dependencies. 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 (*Dependencies) AddHydrationQueueItem ¶
func (_mock *Dependencies) AddHydrationQueueItem(key types.HydrationQueueKey)
AddHydrationQueueItem provides a mock function for the type Dependencies
func (*Dependencies) EXPECT ¶
func (_m *Dependencies) EXPECT() *Dependencies_Expecter
func (*Dependencies) GetHydratorCommitMessageTemplate ¶
func (_mock *Dependencies) GetHydratorCommitMessageTemplate() (string, error)
GetHydratorCommitMessageTemplate provides a mock function for the type Dependencies
func (*Dependencies) GetProcessableAppProj ¶
func (_mock *Dependencies) GetProcessableAppProj(app *v1alpha1.Application) (*v1alpha1.AppProject, error)
GetProcessableAppProj provides a mock function for the type Dependencies
func (*Dependencies) GetProcessableApps ¶
func (_mock *Dependencies) GetProcessableApps() (*v1alpha1.ApplicationList, error)
GetProcessableApps provides a mock function for the type Dependencies
func (*Dependencies) GetRepoObjs ¶
func (_mock *Dependencies) GetRepoObjs(ctx context.Context, app *v1alpha1.Application, source v1alpha1.ApplicationSource, revision string, project *v1alpha1.AppProject) ([]*unstructured.Unstructured, *apiclient.ManifestResponse, error)
GetRepoObjs provides a mock function for the type Dependencies
func (*Dependencies) GetWriteCredentials ¶
func (_mock *Dependencies) GetWriteCredentials(ctx context.Context, repoURL string, project string) (*v1alpha1.Repository, error)
GetWriteCredentials provides a mock function for the type Dependencies
func (*Dependencies) PersistAppHydratorStatus ¶
func (_mock *Dependencies) PersistAppHydratorStatus(orig *v1alpha1.Application, newStatus *v1alpha1.SourceHydratorStatus)
PersistAppHydratorStatus provides a mock function for the type Dependencies
func (*Dependencies) RequestAppRefresh ¶
func (_mock *Dependencies) RequestAppRefresh(appName string, appNamespace string) error
RequestAppRefresh provides a mock function for the type Dependencies
type Dependencies_AddHydrationQueueItem_Call ¶
Dependencies_AddHydrationQueueItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddHydrationQueueItem'
func (*Dependencies_AddHydrationQueueItem_Call) Return ¶
func (_c *Dependencies_AddHydrationQueueItem_Call) Return() *Dependencies_AddHydrationQueueItem_Call
func (*Dependencies_AddHydrationQueueItem_Call) Run ¶
func (_c *Dependencies_AddHydrationQueueItem_Call) Run(run func(key types.HydrationQueueKey)) *Dependencies_AddHydrationQueueItem_Call
func (*Dependencies_AddHydrationQueueItem_Call) RunAndReturn ¶
func (_c *Dependencies_AddHydrationQueueItem_Call) RunAndReturn(run func(key types.HydrationQueueKey)) *Dependencies_AddHydrationQueueItem_Call
type Dependencies_Expecter ¶
type Dependencies_Expecter struct {
// contains filtered or unexported fields
}
func (*Dependencies_Expecter) AddHydrationQueueItem ¶
func (_e *Dependencies_Expecter) AddHydrationQueueItem(key interface{}) *Dependencies_AddHydrationQueueItem_Call
AddHydrationQueueItem is a helper method to define mock.On call
- key types.HydrationQueueKey
func (*Dependencies_Expecter) GetHydratorCommitMessageTemplate ¶
func (_e *Dependencies_Expecter) GetHydratorCommitMessageTemplate() *Dependencies_GetHydratorCommitMessageTemplate_Call
GetHydratorCommitMessageTemplate is a helper method to define mock.On call
func (*Dependencies_Expecter) GetProcessableAppProj ¶
func (_e *Dependencies_Expecter) GetProcessableAppProj(app interface{}) *Dependencies_GetProcessableAppProj_Call
GetProcessableAppProj is a helper method to define mock.On call
- app *v1alpha1.Application
func (*Dependencies_Expecter) GetProcessableApps ¶
func (_e *Dependencies_Expecter) GetProcessableApps() *Dependencies_GetProcessableApps_Call
GetProcessableApps is a helper method to define mock.On call
func (*Dependencies_Expecter) GetRepoObjs ¶
func (_e *Dependencies_Expecter) GetRepoObjs(ctx interface{}, app interface{}, source interface{}, revision interface{}, project interface{}) *Dependencies_GetRepoObjs_Call
GetRepoObjs is a helper method to define mock.On call
- ctx context.Context
- app *v1alpha1.Application
- source v1alpha1.ApplicationSource
- revision string
- project *v1alpha1.AppProject
func (*Dependencies_Expecter) GetWriteCredentials ¶
func (_e *Dependencies_Expecter) GetWriteCredentials(ctx interface{}, repoURL interface{}, project interface{}) *Dependencies_GetWriteCredentials_Call
GetWriteCredentials is a helper method to define mock.On call
- ctx context.Context
- repoURL string
- project string
func (*Dependencies_Expecter) PersistAppHydratorStatus ¶
func (_e *Dependencies_Expecter) PersistAppHydratorStatus(orig interface{}, newStatus interface{}) *Dependencies_PersistAppHydratorStatus_Call
PersistAppHydratorStatus is a helper method to define mock.On call
- orig *v1alpha1.Application
- newStatus *v1alpha1.SourceHydratorStatus
func (*Dependencies_Expecter) RequestAppRefresh ¶
func (_e *Dependencies_Expecter) RequestAppRefresh(appName interface{}, appNamespace interface{}) *Dependencies_RequestAppRefresh_Call
RequestAppRefresh is a helper method to define mock.On call
- appName string
- appNamespace string
type Dependencies_GetHydratorCommitMessageTemplate_Call ¶
Dependencies_GetHydratorCommitMessageTemplate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHydratorCommitMessageTemplate'
func (*Dependencies_GetHydratorCommitMessageTemplate_Call) Return ¶
func (_c *Dependencies_GetHydratorCommitMessageTemplate_Call) Return(s string, err error) *Dependencies_GetHydratorCommitMessageTemplate_Call
func (*Dependencies_GetHydratorCommitMessageTemplate_Call) Run ¶
func (_c *Dependencies_GetHydratorCommitMessageTemplate_Call) Run(run func()) *Dependencies_GetHydratorCommitMessageTemplate_Call
func (*Dependencies_GetHydratorCommitMessageTemplate_Call) RunAndReturn ¶
func (_c *Dependencies_GetHydratorCommitMessageTemplate_Call) RunAndReturn(run func() (string, error)) *Dependencies_GetHydratorCommitMessageTemplate_Call
type Dependencies_GetProcessableAppProj_Call ¶
Dependencies_GetProcessableAppProj_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProcessableAppProj'
func (*Dependencies_GetProcessableAppProj_Call) Return ¶
func (_c *Dependencies_GetProcessableAppProj_Call) Return(appProject *v1alpha1.AppProject, err error) *Dependencies_GetProcessableAppProj_Call
func (*Dependencies_GetProcessableAppProj_Call) Run ¶
func (_c *Dependencies_GetProcessableAppProj_Call) Run(run func(app *v1alpha1.Application)) *Dependencies_GetProcessableAppProj_Call
func (*Dependencies_GetProcessableAppProj_Call) RunAndReturn ¶
func (_c *Dependencies_GetProcessableAppProj_Call) RunAndReturn(run func(app *v1alpha1.Application) (*v1alpha1.AppProject, error)) *Dependencies_GetProcessableAppProj_Call
type Dependencies_GetProcessableApps_Call ¶
Dependencies_GetProcessableApps_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProcessableApps'
func (*Dependencies_GetProcessableApps_Call) Return ¶
func (_c *Dependencies_GetProcessableApps_Call) Return(applicationList *v1alpha1.ApplicationList, err error) *Dependencies_GetProcessableApps_Call
func (*Dependencies_GetProcessableApps_Call) Run ¶
func (_c *Dependencies_GetProcessableApps_Call) Run(run func()) *Dependencies_GetProcessableApps_Call
func (*Dependencies_GetProcessableApps_Call) RunAndReturn ¶
func (_c *Dependencies_GetProcessableApps_Call) RunAndReturn(run func() (*v1alpha1.ApplicationList, error)) *Dependencies_GetProcessableApps_Call
type Dependencies_GetRepoObjs_Call ¶
Dependencies_GetRepoObjs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepoObjs'
func (*Dependencies_GetRepoObjs_Call) Return ¶
func (_c *Dependencies_GetRepoObjs_Call) Return(unstructureds []*unstructured.Unstructured, manifestResponse *apiclient.ManifestResponse, err error) *Dependencies_GetRepoObjs_Call
func (*Dependencies_GetRepoObjs_Call) Run ¶
func (_c *Dependencies_GetRepoObjs_Call) Run(run func(ctx context.Context, app *v1alpha1.Application, source v1alpha1.ApplicationSource, revision string, project *v1alpha1.AppProject)) *Dependencies_GetRepoObjs_Call
func (*Dependencies_GetRepoObjs_Call) RunAndReturn ¶
func (_c *Dependencies_GetRepoObjs_Call) RunAndReturn(run func(ctx context.Context, app *v1alpha1.Application, source v1alpha1.ApplicationSource, revision string, project *v1alpha1.AppProject) ([]*unstructured.Unstructured, *apiclient.ManifestResponse, error)) *Dependencies_GetRepoObjs_Call
type Dependencies_GetWriteCredentials_Call ¶
Dependencies_GetWriteCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWriteCredentials'
func (*Dependencies_GetWriteCredentials_Call) Return ¶
func (_c *Dependencies_GetWriteCredentials_Call) Return(repository *v1alpha1.Repository, err error) *Dependencies_GetWriteCredentials_Call
func (*Dependencies_GetWriteCredentials_Call) Run ¶
func (_c *Dependencies_GetWriteCredentials_Call) Run(run func(ctx context.Context, repoURL string, project string)) *Dependencies_GetWriteCredentials_Call
func (*Dependencies_GetWriteCredentials_Call) RunAndReturn ¶
func (_c *Dependencies_GetWriteCredentials_Call) RunAndReturn(run func(ctx context.Context, repoURL string, project string) (*v1alpha1.Repository, error)) *Dependencies_GetWriteCredentials_Call
type Dependencies_PersistAppHydratorStatus_Call ¶
Dependencies_PersistAppHydratorStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PersistAppHydratorStatus'
func (*Dependencies_PersistAppHydratorStatus_Call) Return ¶
func (_c *Dependencies_PersistAppHydratorStatus_Call) Return() *Dependencies_PersistAppHydratorStatus_Call
func (*Dependencies_PersistAppHydratorStatus_Call) Run ¶
func (_c *Dependencies_PersistAppHydratorStatus_Call) Run(run func(orig *v1alpha1.Application, newStatus *v1alpha1.SourceHydratorStatus)) *Dependencies_PersistAppHydratorStatus_Call
func (*Dependencies_PersistAppHydratorStatus_Call) RunAndReturn ¶
func (_c *Dependencies_PersistAppHydratorStatus_Call) RunAndReturn(run func(orig *v1alpha1.Application, newStatus *v1alpha1.SourceHydratorStatus)) *Dependencies_PersistAppHydratorStatus_Call
type Dependencies_RequestAppRefresh_Call ¶
Dependencies_RequestAppRefresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestAppRefresh'
func (*Dependencies_RequestAppRefresh_Call) Return ¶
func (_c *Dependencies_RequestAppRefresh_Call) Return(err error) *Dependencies_RequestAppRefresh_Call
func (*Dependencies_RequestAppRefresh_Call) Run ¶
func (_c *Dependencies_RequestAppRefresh_Call) Run(run func(appName string, appNamespace string)) *Dependencies_RequestAppRefresh_Call
func (*Dependencies_RequestAppRefresh_Call) RunAndReturn ¶
func (_c *Dependencies_RequestAppRefresh_Call) RunAndReturn(run func(appName string, appNamespace string) error) *Dependencies_RequestAppRefresh_Call
type RepoGetter ¶
RepoGetter is an autogenerated mock type for the RepoGetter type
func NewRepoGetter ¶
func NewRepoGetter(t interface {
mock.TestingT
Cleanup(func())
}) *RepoGetter
NewRepoGetter creates a new instance of RepoGetter. 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 (*RepoGetter) EXPECT ¶
func (_m *RepoGetter) EXPECT() *RepoGetter_Expecter
func (*RepoGetter) GetRepository ¶
func (_mock *RepoGetter) GetRepository(ctx context.Context, repoURL string, project string) (*v1alpha1.Repository, error)
GetRepository provides a mock function for the type RepoGetter
type RepoGetter_Expecter ¶
type RepoGetter_Expecter struct {
// contains filtered or unexported fields
}
func (*RepoGetter_Expecter) GetRepository ¶
func (_e *RepoGetter_Expecter) GetRepository(ctx interface{}, repoURL interface{}, project interface{}) *RepoGetter_GetRepository_Call
GetRepository is a helper method to define mock.On call
- ctx context.Context
- repoURL string
- project string
type RepoGetter_GetRepository_Call ¶
RepoGetter_GetRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepository'
func (*RepoGetter_GetRepository_Call) Return ¶
func (_c *RepoGetter_GetRepository_Call) Return(repository *v1alpha1.Repository, err error) *RepoGetter_GetRepository_Call
func (*RepoGetter_GetRepository_Call) Run ¶
func (_c *RepoGetter_GetRepository_Call) Run(run func(ctx context.Context, repoURL string, project string)) *RepoGetter_GetRepository_Call
func (*RepoGetter_GetRepository_Call) RunAndReturn ¶
func (_c *RepoGetter_GetRepository_Call) RunAndReturn(run func(ctx context.Context, repoURL string, project string) (*v1alpha1.Repository, error)) *RepoGetter_GetRepository_Call