repositoryfakes

package
v0.0.6 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	CreateStub func(context.Context, client.Object, ...client.CreateOption) error

	DeleteStub func(context.Context, client.Object, ...client.DeleteOption) error

	DeleteAllOfStub func(context.Context, client.Object, ...client.DeleteAllOfOption) error

	GetStub func(context.Context, types.NamespacedName, client.Object) error

	ListStub func(context.Context, client.ObjectList, ...client.ListOption) error

	PatchStub func(context.Context, client.Object, client.Patch, ...client.PatchOption) error

	RESTMapperStub func() meta.RESTMapper

	SchemeStub func() *runtime.Scheme

	StatusStub func() client.StatusWriter

	UpdateStub func(context.Context, client.Object, ...client.UpdateOption) error
	// contains filtered or unexported fields
}

func (*FakeClient) Create

func (fake *FakeClient) Create(arg1 context.Context, arg2 client.Object, arg3 ...client.CreateOption) error

func (*FakeClient) CreateArgsForCall

func (fake *FakeClient) CreateArgsForCall(i int) (context.Context, client.Object, []client.CreateOption)

func (*FakeClient) CreateCallCount

func (fake *FakeClient) CreateCallCount() int

func (*FakeClient) CreateCalls

func (fake *FakeClient) CreateCalls(stub func(context.Context, client.Object, ...client.CreateOption) error)

func (*FakeClient) CreateReturns

func (fake *FakeClient) CreateReturns(result1 error)

func (*FakeClient) CreateReturnsOnCall

func (fake *FakeClient) CreateReturnsOnCall(i int, result1 error)

func (*FakeClient) Delete

func (fake *FakeClient) Delete(arg1 context.Context, arg2 client.Object, arg3 ...client.DeleteOption) error

func (*FakeClient) DeleteAllOf

func (fake *FakeClient) DeleteAllOf(arg1 context.Context, arg2 client.Object, arg3 ...client.DeleteAllOfOption) error

func (*FakeClient) DeleteAllOfArgsForCall

func (fake *FakeClient) DeleteAllOfArgsForCall(i int) (context.Context, client.Object, []client.DeleteAllOfOption)

func (*FakeClient) DeleteAllOfCallCount

func (fake *FakeClient) DeleteAllOfCallCount() int

func (*FakeClient) DeleteAllOfCalls

func (fake *FakeClient) DeleteAllOfCalls(stub func(context.Context, client.Object, ...client.DeleteAllOfOption) error)

func (*FakeClient) DeleteAllOfReturns

func (fake *FakeClient) DeleteAllOfReturns(result1 error)

func (*FakeClient) DeleteAllOfReturnsOnCall

func (fake *FakeClient) DeleteAllOfReturnsOnCall(i int, result1 error)

func (*FakeClient) DeleteArgsForCall

func (fake *FakeClient) DeleteArgsForCall(i int) (context.Context, client.Object, []client.DeleteOption)

func (*FakeClient) DeleteCallCount

func (fake *FakeClient) DeleteCallCount() int

func (*FakeClient) DeleteCalls

func (fake *FakeClient) DeleteCalls(stub func(context.Context, client.Object, ...client.DeleteOption) error)

func (*FakeClient) DeleteReturns

func (fake *FakeClient) DeleteReturns(result1 error)

func (*FakeClient) DeleteReturnsOnCall

func (fake *FakeClient) DeleteReturnsOnCall(i int, result1 error)

func (*FakeClient) Get

func (fake *FakeClient) Get(arg1 context.Context, arg2 types.NamespacedName, arg3 client.Object) error

func (*FakeClient) GetArgsForCall

func (fake *FakeClient) GetArgsForCall(i int) (context.Context, types.NamespacedName, client.Object)

func (*FakeClient) GetCallCount

func (fake *FakeClient) GetCallCount() int

func (*FakeClient) GetCalls

func (fake *FakeClient) GetCalls(stub func(context.Context, types.NamespacedName, client.Object) error)

func (*FakeClient) GetReturns

func (fake *FakeClient) GetReturns(result1 error)

func (*FakeClient) GetReturnsOnCall

func (fake *FakeClient) GetReturnsOnCall(i int, result1 error)

func (*FakeClient) Invocations

func (fake *FakeClient) Invocations() map[string][][]interface{}

func (*FakeClient) List

func (fake *FakeClient) List(arg1 context.Context, arg2 client.ObjectList, arg3 ...client.ListOption) error

func (*FakeClient) ListArgsForCall

func (fake *FakeClient) ListArgsForCall(i int) (context.Context, client.ObjectList, []client.ListOption)

func (*FakeClient) ListCallCount

func (fake *FakeClient) ListCallCount() int

func (*FakeClient) ListCalls

func (fake *FakeClient) ListCalls(stub func(context.Context, client.ObjectList, ...client.ListOption) error)

func (*FakeClient) ListReturns

func (fake *FakeClient) ListReturns(result1 error)

func (*FakeClient) ListReturnsOnCall

func (fake *FakeClient) ListReturnsOnCall(i int, result1 error)

func (*FakeClient) Patch

func (fake *FakeClient) Patch(arg1 context.Context, arg2 client.Object, arg3 client.Patch, arg4 ...client.PatchOption) error

func (*FakeClient) PatchArgsForCall

func (fake *FakeClient) PatchArgsForCall(i int) (context.Context, client.Object, client.Patch, []client.PatchOption)

func (*FakeClient) PatchCallCount

func (fake *FakeClient) PatchCallCount() int

func (*FakeClient) PatchCalls

func (fake *FakeClient) PatchCalls(stub func(context.Context, client.Object, client.Patch, ...client.PatchOption) error)

func (*FakeClient) PatchReturns

func (fake *FakeClient) PatchReturns(result1 error)

func (*FakeClient) PatchReturnsOnCall

func (fake *FakeClient) PatchReturnsOnCall(i int, result1 error)

func (*FakeClient) RESTMapper

func (fake *FakeClient) RESTMapper() meta.RESTMapper

func (*FakeClient) RESTMapperCallCount

func (fake *FakeClient) RESTMapperCallCount() int

func (*FakeClient) RESTMapperCalls

func (fake *FakeClient) RESTMapperCalls(stub func() meta.RESTMapper)

func (*FakeClient) RESTMapperReturns

func (fake *FakeClient) RESTMapperReturns(result1 meta.RESTMapper)

func (*FakeClient) RESTMapperReturnsOnCall

func (fake *FakeClient) RESTMapperReturnsOnCall(i int, result1 meta.RESTMapper)

func (*FakeClient) Scheme

func (fake *FakeClient) Scheme() *runtime.Scheme

func (*FakeClient) SchemeCallCount

func (fake *FakeClient) SchemeCallCount() int

func (*FakeClient) SchemeCalls

func (fake *FakeClient) SchemeCalls(stub func() *runtime.Scheme)

func (*FakeClient) SchemeReturns

func (fake *FakeClient) SchemeReturns(result1 *runtime.Scheme)

func (*FakeClient) SchemeReturnsOnCall

func (fake *FakeClient) SchemeReturnsOnCall(i int, result1 *runtime.Scheme)

func (*FakeClient) Status

func (fake *FakeClient) Status() client.StatusWriter

func (*FakeClient) StatusCallCount

func (fake *FakeClient) StatusCallCount() int

func (*FakeClient) StatusCalls

func (fake *FakeClient) StatusCalls(stub func() client.StatusWriter)

func (*FakeClient) StatusReturns

func (fake *FakeClient) StatusReturns(result1 client.StatusWriter)

func (*FakeClient) StatusReturnsOnCall

func (fake *FakeClient) StatusReturnsOnCall(i int, result1 client.StatusWriter)

func (*FakeClient) Update

func (fake *FakeClient) Update(arg1 context.Context, arg2 client.Object, arg3 ...client.UpdateOption) error

func (*FakeClient) UpdateArgsForCall

func (fake *FakeClient) UpdateArgsForCall(i int) (context.Context, client.Object, []client.UpdateOption)

func (*FakeClient) UpdateCallCount

func (fake *FakeClient) UpdateCallCount() int

func (*FakeClient) UpdateCalls

func (fake *FakeClient) UpdateCalls(stub func(context.Context, client.Object, ...client.UpdateOption) error)

func (*FakeClient) UpdateReturns

func (fake *FakeClient) UpdateReturns(result1 error)

func (*FakeClient) UpdateReturnsOnCall

func (fake *FakeClient) UpdateReturnsOnCall(i int, result1 error)

type FakeExpiringCache

type FakeExpiringCache struct {
	GetStub func(interface{}) (interface{}, bool)

	SetStub func(interface{}, interface{}, time.Duration)
	// contains filtered or unexported fields
}

func (*FakeExpiringCache) Get

func (fake *FakeExpiringCache) Get(arg1 interface{}) (interface{}, bool)

func (*FakeExpiringCache) GetArgsForCall

func (fake *FakeExpiringCache) GetArgsForCall(i int) interface{}

func (*FakeExpiringCache) GetCallCount

func (fake *FakeExpiringCache) GetCallCount() int

func (*FakeExpiringCache) GetCalls

func (fake *FakeExpiringCache) GetCalls(stub func(interface{}) (interface{}, bool))

func (*FakeExpiringCache) GetReturns

func (fake *FakeExpiringCache) GetReturns(result1 interface{}, result2 bool)

func (*FakeExpiringCache) GetReturnsOnCall

func (fake *FakeExpiringCache) GetReturnsOnCall(i int, result1 interface{}, result2 bool)

func (*FakeExpiringCache) Invocations

func (fake *FakeExpiringCache) Invocations() map[string][][]interface{}

func (*FakeExpiringCache) Set

func (fake *FakeExpiringCache) Set(arg1 interface{}, arg2 interface{}, arg3 time.Duration)

func (*FakeExpiringCache) SetArgsForCall

func (fake *FakeExpiringCache) SetArgsForCall(i int) (interface{}, interface{}, time.Duration)

func (*FakeExpiringCache) SetCallCount

func (fake *FakeExpiringCache) SetCallCount() int

func (*FakeExpiringCache) SetCalls

func (fake *FakeExpiringCache) SetCalls(stub func(interface{}, interface{}, time.Duration))

type FakeRepoCache

type FakeRepoCache struct {
	RefreshStub func(*unstructured.Unstructured)

	SetStub func(*unstructured.Unstructured, *unstructured.Unstructured)

	UnchangedSinceCachedStub func(*unstructured.Unstructured, []*unstructured.Unstructured) *unstructured.Unstructured
	// contains filtered or unexported fields
}

func (*FakeRepoCache) Invocations

func (fake *FakeRepoCache) Invocations() map[string][][]interface{}

func (*FakeRepoCache) Refresh

func (fake *FakeRepoCache) Refresh(arg1 *unstructured.Unstructured)

func (*FakeRepoCache) RefreshArgsForCall

func (fake *FakeRepoCache) RefreshArgsForCall(i int) *unstructured.Unstructured

func (*FakeRepoCache) RefreshCallCount

func (fake *FakeRepoCache) RefreshCallCount() int

func (*FakeRepoCache) RefreshCalls

func (fake *FakeRepoCache) RefreshCalls(stub func(*unstructured.Unstructured))

func (*FakeRepoCache) Set

func (*FakeRepoCache) SetArgsForCall

func (fake *FakeRepoCache) SetArgsForCall(i int) (*unstructured.Unstructured, *unstructured.Unstructured)

func (*FakeRepoCache) SetCallCount

func (fake *FakeRepoCache) SetCallCount() int

func (*FakeRepoCache) SetCalls

func (fake *FakeRepoCache) SetCalls(stub func(*unstructured.Unstructured, *unstructured.Unstructured))

func (*FakeRepoCache) UnchangedSinceCached

func (fake *FakeRepoCache) UnchangedSinceCached(arg1 *unstructured.Unstructured, arg2 []*unstructured.Unstructured) *unstructured.Unstructured

func (*FakeRepoCache) UnchangedSinceCachedArgsForCall

func (fake *FakeRepoCache) UnchangedSinceCachedArgsForCall(i int) (*unstructured.Unstructured, []*unstructured.Unstructured)

func (*FakeRepoCache) UnchangedSinceCachedCallCount

func (fake *FakeRepoCache) UnchangedSinceCachedCallCount() int

func (*FakeRepoCache) UnchangedSinceCachedCalls

func (fake *FakeRepoCache) UnchangedSinceCachedCalls(stub func(*unstructured.Unstructured, []*unstructured.Unstructured) *unstructured.Unstructured)

func (*FakeRepoCache) UnchangedSinceCachedReturns

func (fake *FakeRepoCache) UnchangedSinceCachedReturns(result1 *unstructured.Unstructured)

func (*FakeRepoCache) UnchangedSinceCachedReturnsOnCall

func (fake *FakeRepoCache) UnchangedSinceCachedReturnsOnCall(i int, result1 *unstructured.Unstructured)

type FakeRepository

type FakeRepository struct {
	EnsureObjectExistsOnClusterStub func(*unstructured.Unstructured, bool) error

	GetClusterTemplateStub func(v1alpha1.ClusterTemplateReference) (templates.Template, error)

	GetPipelineStub func(string, string) (*v1alpha1.Pipeline, error)

	GetRunTemplateStub func(v1alpha1.TemplateReference) (templates.RunTemplate, error)

	GetSchemeStub func() *runtime.Scheme

	GetSupplyChainStub func(string) (*v1alpha1.ClusterSupplyChain, error)

	GetSupplyChainsForWorkloadStub func(*v1alpha1.Workload) ([]v1alpha1.ClusterSupplyChain, error)

	GetWorkloadStub func(string, string) (*v1alpha1.Workload, error)

	ListUnstructuredStub func(*unstructured.Unstructured) ([]*unstructured.Unstructured, error)

	StatusUpdateStub func(client.Object) error
	// contains filtered or unexported fields
}

func (*FakeRepository) EnsureObjectExistsOnCluster added in v0.0.5

func (fake *FakeRepository) EnsureObjectExistsOnCluster(arg1 *unstructured.Unstructured, arg2 bool) error

func (*FakeRepository) EnsureObjectExistsOnClusterArgsForCall added in v0.0.5

func (fake *FakeRepository) EnsureObjectExistsOnClusterArgsForCall(i int) (*unstructured.Unstructured, bool)

func (*FakeRepository) EnsureObjectExistsOnClusterCallCount added in v0.0.5

func (fake *FakeRepository) EnsureObjectExistsOnClusterCallCount() int

func (*FakeRepository) EnsureObjectExistsOnClusterCalls added in v0.0.5

func (fake *FakeRepository) EnsureObjectExistsOnClusterCalls(stub func(*unstructured.Unstructured, bool) error)

func (*FakeRepository) EnsureObjectExistsOnClusterReturns added in v0.0.5

func (fake *FakeRepository) EnsureObjectExistsOnClusterReturns(result1 error)

func (*FakeRepository) EnsureObjectExistsOnClusterReturnsOnCall added in v0.0.5

func (fake *FakeRepository) EnsureObjectExistsOnClusterReturnsOnCall(i int, result1 error)

func (*FakeRepository) GetClusterTemplate added in v0.0.5

func (fake *FakeRepository) GetClusterTemplate(arg1 v1alpha1.ClusterTemplateReference) (templates.Template, error)

func (*FakeRepository) GetClusterTemplateArgsForCall added in v0.0.5

func (fake *FakeRepository) GetClusterTemplateArgsForCall(i int) v1alpha1.ClusterTemplateReference

func (*FakeRepository) GetClusterTemplateCallCount added in v0.0.5

func (fake *FakeRepository) GetClusterTemplateCallCount() int

func (*FakeRepository) GetClusterTemplateCalls added in v0.0.5

func (fake *FakeRepository) GetClusterTemplateCalls(stub func(v1alpha1.ClusterTemplateReference) (templates.Template, error))

func (*FakeRepository) GetClusterTemplateReturns added in v0.0.5

func (fake *FakeRepository) GetClusterTemplateReturns(result1 templates.Template, result2 error)

func (*FakeRepository) GetClusterTemplateReturnsOnCall added in v0.0.5

func (fake *FakeRepository) GetClusterTemplateReturnsOnCall(i int, result1 templates.Template, result2 error)

func (*FakeRepository) GetPipeline added in v0.0.5

func (fake *FakeRepository) GetPipeline(arg1 string, arg2 string) (*v1alpha1.Pipeline, error)

func (*FakeRepository) GetPipelineArgsForCall added in v0.0.5

func (fake *FakeRepository) GetPipelineArgsForCall(i int) (string, string)

func (*FakeRepository) GetPipelineCallCount added in v0.0.5

func (fake *FakeRepository) GetPipelineCallCount() int

func (*FakeRepository) GetPipelineCalls added in v0.0.5

func (fake *FakeRepository) GetPipelineCalls(stub func(string, string) (*v1alpha1.Pipeline, error))

func (*FakeRepository) GetPipelineReturns added in v0.0.5

func (fake *FakeRepository) GetPipelineReturns(result1 *v1alpha1.Pipeline, result2 error)

func (*FakeRepository) GetPipelineReturnsOnCall added in v0.0.5

func (fake *FakeRepository) GetPipelineReturnsOnCall(i int, result1 *v1alpha1.Pipeline, result2 error)

func (*FakeRepository) GetRunTemplate added in v0.0.5

func (fake *FakeRepository) GetRunTemplate(arg1 v1alpha1.TemplateReference) (templates.RunTemplate, error)

func (*FakeRepository) GetRunTemplateArgsForCall added in v0.0.5

func (fake *FakeRepository) GetRunTemplateArgsForCall(i int) v1alpha1.TemplateReference

func (*FakeRepository) GetRunTemplateCallCount added in v0.0.5

func (fake *FakeRepository) GetRunTemplateCallCount() int

func (*FakeRepository) GetRunTemplateCalls added in v0.0.5

func (fake *FakeRepository) GetRunTemplateCalls(stub func(v1alpha1.TemplateReference) (templates.RunTemplate, error))

func (*FakeRepository) GetRunTemplateReturns added in v0.0.5

func (fake *FakeRepository) GetRunTemplateReturns(result1 templates.RunTemplate, result2 error)

func (*FakeRepository) GetRunTemplateReturnsOnCall added in v0.0.5

func (fake *FakeRepository) GetRunTemplateReturnsOnCall(i int, result1 templates.RunTemplate, result2 error)

func (*FakeRepository) GetScheme

func (fake *FakeRepository) GetScheme() *runtime.Scheme

func (*FakeRepository) GetSchemeCallCount

func (fake *FakeRepository) GetSchemeCallCount() int

func (*FakeRepository) GetSchemeCalls

func (fake *FakeRepository) GetSchemeCalls(stub func() *runtime.Scheme)

func (*FakeRepository) GetSchemeReturns

func (fake *FakeRepository) GetSchemeReturns(result1 *runtime.Scheme)

func (*FakeRepository) GetSchemeReturnsOnCall

func (fake *FakeRepository) GetSchemeReturnsOnCall(i int, result1 *runtime.Scheme)

func (*FakeRepository) GetSupplyChain

func (fake *FakeRepository) GetSupplyChain(arg1 string) (*v1alpha1.ClusterSupplyChain, error)

func (*FakeRepository) GetSupplyChainArgsForCall

func (fake *FakeRepository) GetSupplyChainArgsForCall(i int) string

func (*FakeRepository) GetSupplyChainCallCount

func (fake *FakeRepository) GetSupplyChainCallCount() int

func (*FakeRepository) GetSupplyChainCalls

func (fake *FakeRepository) GetSupplyChainCalls(stub func(string) (*v1alpha1.ClusterSupplyChain, error))

func (*FakeRepository) GetSupplyChainReturns

func (fake *FakeRepository) GetSupplyChainReturns(result1 *v1alpha1.ClusterSupplyChain, result2 error)

func (*FakeRepository) GetSupplyChainReturnsOnCall

func (fake *FakeRepository) GetSupplyChainReturnsOnCall(i int, result1 *v1alpha1.ClusterSupplyChain, result2 error)

func (*FakeRepository) GetSupplyChainsForWorkload

func (fake *FakeRepository) GetSupplyChainsForWorkload(arg1 *v1alpha1.Workload) ([]v1alpha1.ClusterSupplyChain, error)

func (*FakeRepository) GetSupplyChainsForWorkloadArgsForCall

func (fake *FakeRepository) GetSupplyChainsForWorkloadArgsForCall(i int) *v1alpha1.Workload

func (*FakeRepository) GetSupplyChainsForWorkloadCallCount

func (fake *FakeRepository) GetSupplyChainsForWorkloadCallCount() int

func (*FakeRepository) GetSupplyChainsForWorkloadCalls

func (fake *FakeRepository) GetSupplyChainsForWorkloadCalls(stub func(*v1alpha1.Workload) ([]v1alpha1.ClusterSupplyChain, error))

func (*FakeRepository) GetSupplyChainsForWorkloadReturns

func (fake *FakeRepository) GetSupplyChainsForWorkloadReturns(result1 []v1alpha1.ClusterSupplyChain, result2 error)

func (*FakeRepository) GetSupplyChainsForWorkloadReturnsOnCall

func (fake *FakeRepository) GetSupplyChainsForWorkloadReturnsOnCall(i int, result1 []v1alpha1.ClusterSupplyChain, result2 error)

func (*FakeRepository) GetWorkload

func (fake *FakeRepository) GetWorkload(arg1 string, arg2 string) (*v1alpha1.Workload, error)

func (*FakeRepository) GetWorkloadArgsForCall

func (fake *FakeRepository) GetWorkloadArgsForCall(i int) (string, string)

func (*FakeRepository) GetWorkloadCallCount

func (fake *FakeRepository) GetWorkloadCallCount() int

func (*FakeRepository) GetWorkloadCalls

func (fake *FakeRepository) GetWorkloadCalls(stub func(string, string) (*v1alpha1.Workload, error))

func (*FakeRepository) GetWorkloadReturns

func (fake *FakeRepository) GetWorkloadReturns(result1 *v1alpha1.Workload, result2 error)

func (*FakeRepository) GetWorkloadReturnsOnCall

func (fake *FakeRepository) GetWorkloadReturnsOnCall(i int, result1 *v1alpha1.Workload, result2 error)

func (*FakeRepository) Invocations

func (fake *FakeRepository) Invocations() map[string][][]interface{}

func (*FakeRepository) ListUnstructured added in v0.0.6

func (fake *FakeRepository) ListUnstructured(arg1 *unstructured.Unstructured) ([]*unstructured.Unstructured, error)

func (*FakeRepository) ListUnstructuredArgsForCall added in v0.0.6

func (fake *FakeRepository) ListUnstructuredArgsForCall(i int) *unstructured.Unstructured

func (*FakeRepository) ListUnstructuredCallCount added in v0.0.6

func (fake *FakeRepository) ListUnstructuredCallCount() int

func (*FakeRepository) ListUnstructuredCalls added in v0.0.6

func (fake *FakeRepository) ListUnstructuredCalls(stub func(*unstructured.Unstructured) ([]*unstructured.Unstructured, error))

func (*FakeRepository) ListUnstructuredReturns added in v0.0.6

func (fake *FakeRepository) ListUnstructuredReturns(result1 []*unstructured.Unstructured, result2 error)

func (*FakeRepository) ListUnstructuredReturnsOnCall added in v0.0.6

func (fake *FakeRepository) ListUnstructuredReturnsOnCall(i int, result1 []*unstructured.Unstructured, result2 error)

func (*FakeRepository) StatusUpdate

func (fake *FakeRepository) StatusUpdate(arg1 client.Object) error

func (*FakeRepository) StatusUpdateArgsForCall

func (fake *FakeRepository) StatusUpdateArgsForCall(i int) client.Object

func (*FakeRepository) StatusUpdateCallCount

func (fake *FakeRepository) StatusUpdateCallCount() int

func (*FakeRepository) StatusUpdateCalls

func (fake *FakeRepository) StatusUpdateCalls(stub func(client.Object) error)

func (*FakeRepository) StatusUpdateReturns

func (fake *FakeRepository) StatusUpdateReturns(result1 error)

func (*FakeRepository) StatusUpdateReturnsOnCall

func (fake *FakeRepository) StatusUpdateReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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