kubefakes

package
v0.4.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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 FakeKube

type FakeKube struct {
	ApplyStub func(context.Context, []byte, string) error

	DeleteStub func(context.Context, []byte) error

	DeleteByNameStub func(context.Context, string, schema.GroupVersionResource, string) error

	FluxPresentStub func(context.Context) (bool, error)

	GetApplicationStub func(context.Context, types.NamespacedName) (*v1alpha1.Application, error)

	GetApplicationsStub func(context.Context, string) ([]v1alpha1.Application, error)

	GetClusterNameStub func(context.Context) (string, error)

	GetClusterStatusStub func(context.Context) kube.ClusterStatus

	GetResourceStub func(context.Context, types.NamespacedName, kube.Resource) error

	GetSecretStub func(context.Context, types.NamespacedName) (*v1.Secret, error)

	NamespacePresentStub func(context.Context, string) (bool, error)

	SecretPresentStub func(context.Context, string, string) (bool, error)
	// contains filtered or unexported fields
}

func (*FakeKube) Apply

func (fake *FakeKube) Apply(arg1 context.Context, arg2 []byte, arg3 string) error

func (*FakeKube) ApplyArgsForCall

func (fake *FakeKube) ApplyArgsForCall(i int) (context.Context, []byte, string)

func (*FakeKube) ApplyCallCount

func (fake *FakeKube) ApplyCallCount() int

func (*FakeKube) ApplyCalls

func (fake *FakeKube) ApplyCalls(stub func(context.Context, []byte, string) error)

func (*FakeKube) ApplyReturns

func (fake *FakeKube) ApplyReturns(result1 error)

func (*FakeKube) ApplyReturnsOnCall

func (fake *FakeKube) ApplyReturnsOnCall(i int, result1 error)

func (*FakeKube) Delete

func (fake *FakeKube) Delete(arg1 context.Context, arg2 []byte) error

func (*FakeKube) DeleteArgsForCall

func (fake *FakeKube) DeleteArgsForCall(i int) (context.Context, []byte)

func (*FakeKube) DeleteByName added in v0.2.3

func (fake *FakeKube) DeleteByName(arg1 context.Context, arg2 string, arg3 schema.GroupVersionResource, arg4 string) error

func (*FakeKube) DeleteByNameArgsForCall added in v0.2.3

func (fake *FakeKube) DeleteByNameArgsForCall(i int) (context.Context, string, schema.GroupVersionResource, string)

func (*FakeKube) DeleteByNameCallCount added in v0.2.3

func (fake *FakeKube) DeleteByNameCallCount() int

func (*FakeKube) DeleteByNameCalls added in v0.2.3

func (fake *FakeKube) DeleteByNameCalls(stub func(context.Context, string, schema.GroupVersionResource, string) error)

func (*FakeKube) DeleteByNameReturns added in v0.2.3

func (fake *FakeKube) DeleteByNameReturns(result1 error)

func (*FakeKube) DeleteByNameReturnsOnCall added in v0.2.3

func (fake *FakeKube) DeleteByNameReturnsOnCall(i int, result1 error)

func (*FakeKube) DeleteCallCount

func (fake *FakeKube) DeleteCallCount() int

func (*FakeKube) DeleteCalls

func (fake *FakeKube) DeleteCalls(stub func(context.Context, []byte) error)

func (*FakeKube) DeleteReturns

func (fake *FakeKube) DeleteReturns(result1 error)

func (*FakeKube) DeleteReturnsOnCall

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

func (*FakeKube) FluxPresent

func (fake *FakeKube) FluxPresent(arg1 context.Context) (bool, error)

func (*FakeKube) FluxPresentArgsForCall added in v0.2.0

func (fake *FakeKube) FluxPresentArgsForCall(i int) context.Context

func (*FakeKube) FluxPresentCallCount

func (fake *FakeKube) FluxPresentCallCount() int

func (*FakeKube) FluxPresentCalls

func (fake *FakeKube) FluxPresentCalls(stub func(context.Context) (bool, error))

func (*FakeKube) FluxPresentReturns

func (fake *FakeKube) FluxPresentReturns(result1 bool, result2 error)

func (*FakeKube) FluxPresentReturnsOnCall

func (fake *FakeKube) FluxPresentReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeKube) GetApplication

func (fake *FakeKube) GetApplication(arg1 context.Context, arg2 types.NamespacedName) (*v1alpha1.Application, error)

func (*FakeKube) GetApplicationArgsForCall

func (fake *FakeKube) GetApplicationArgsForCall(i int) (context.Context, types.NamespacedName)

func (*FakeKube) GetApplicationCallCount

func (fake *FakeKube) GetApplicationCallCount() int

func (*FakeKube) GetApplicationCalls

func (fake *FakeKube) GetApplicationCalls(stub func(context.Context, types.NamespacedName) (*v1alpha1.Application, error))

func (*FakeKube) GetApplicationReturns

func (fake *FakeKube) GetApplicationReturns(result1 *v1alpha1.Application, result2 error)

func (*FakeKube) GetApplicationReturnsOnCall

func (fake *FakeKube) GetApplicationReturnsOnCall(i int, result1 *v1alpha1.Application, result2 error)

func (*FakeKube) GetApplications added in v0.2.0

func (fake *FakeKube) GetApplications(arg1 context.Context, arg2 string) ([]v1alpha1.Application, error)

func (*FakeKube) GetApplicationsArgsForCall added in v0.2.0

func (fake *FakeKube) GetApplicationsArgsForCall(i int) (context.Context, string)

func (*FakeKube) GetApplicationsCallCount added in v0.2.0

func (fake *FakeKube) GetApplicationsCallCount() int

func (*FakeKube) GetApplicationsCalls added in v0.2.0

func (fake *FakeKube) GetApplicationsCalls(stub func(context.Context, string) ([]v1alpha1.Application, error))

func (*FakeKube) GetApplicationsReturns added in v0.2.0

func (fake *FakeKube) GetApplicationsReturns(result1 []v1alpha1.Application, result2 error)

func (*FakeKube) GetApplicationsReturnsOnCall added in v0.2.0

func (fake *FakeKube) GetApplicationsReturnsOnCall(i int, result1 []v1alpha1.Application, result2 error)

func (*FakeKube) GetClusterName

func (fake *FakeKube) GetClusterName(arg1 context.Context) (string, error)

func (*FakeKube) GetClusterNameArgsForCall added in v0.2.0

func (fake *FakeKube) GetClusterNameArgsForCall(i int) context.Context

func (*FakeKube) GetClusterNameCallCount

func (fake *FakeKube) GetClusterNameCallCount() int

func (*FakeKube) GetClusterNameCalls

func (fake *FakeKube) GetClusterNameCalls(stub func(context.Context) (string, error))

func (*FakeKube) GetClusterNameReturns

func (fake *FakeKube) GetClusterNameReturns(result1 string, result2 error)

func (*FakeKube) GetClusterNameReturnsOnCall

func (fake *FakeKube) GetClusterNameReturnsOnCall(i int, result1 string, result2 error)

func (*FakeKube) GetClusterStatus

func (fake *FakeKube) GetClusterStatus(arg1 context.Context) kube.ClusterStatus

func (*FakeKube) GetClusterStatusArgsForCall added in v0.2.0

func (fake *FakeKube) GetClusterStatusArgsForCall(i int) context.Context

func (*FakeKube) GetClusterStatusCallCount

func (fake *FakeKube) GetClusterStatusCallCount() int

func (*FakeKube) GetClusterStatusCalls

func (fake *FakeKube) GetClusterStatusCalls(stub func(context.Context) kube.ClusterStatus)

func (*FakeKube) GetClusterStatusReturns

func (fake *FakeKube) GetClusterStatusReturns(result1 kube.ClusterStatus)

func (*FakeKube) GetClusterStatusReturnsOnCall

func (fake *FakeKube) GetClusterStatusReturnsOnCall(i int, result1 kube.ClusterStatus)

func (*FakeKube) GetResource added in v0.2.1

func (fake *FakeKube) GetResource(arg1 context.Context, arg2 types.NamespacedName, arg3 kube.Resource) error

func (*FakeKube) GetResourceArgsForCall added in v0.2.1

func (fake *FakeKube) GetResourceArgsForCall(i int) (context.Context, types.NamespacedName, kube.Resource)

func (*FakeKube) GetResourceCallCount added in v0.2.1

func (fake *FakeKube) GetResourceCallCount() int

func (*FakeKube) GetResourceCalls added in v0.2.1

func (fake *FakeKube) GetResourceCalls(stub func(context.Context, types.NamespacedName, kube.Resource) error)

func (*FakeKube) GetResourceReturns added in v0.2.1

func (fake *FakeKube) GetResourceReturns(result1 error)

func (*FakeKube) GetResourceReturnsOnCall added in v0.2.1

func (fake *FakeKube) GetResourceReturnsOnCall(i int, result1 error)

func (*FakeKube) GetSecret added in v0.2.5

func (fake *FakeKube) GetSecret(arg1 context.Context, arg2 types.NamespacedName) (*v1.Secret, error)

func (*FakeKube) GetSecretArgsForCall added in v0.2.5

func (fake *FakeKube) GetSecretArgsForCall(i int) (context.Context, types.NamespacedName)

func (*FakeKube) GetSecretCallCount added in v0.2.5

func (fake *FakeKube) GetSecretCallCount() int

func (*FakeKube) GetSecretCalls added in v0.2.5

func (fake *FakeKube) GetSecretCalls(stub func(context.Context, types.NamespacedName) (*v1.Secret, error))

func (*FakeKube) GetSecretReturns added in v0.2.5

func (fake *FakeKube) GetSecretReturns(result1 *v1.Secret, result2 error)

func (*FakeKube) GetSecretReturnsOnCall added in v0.2.5

func (fake *FakeKube) GetSecretReturnsOnCall(i int, result1 *v1.Secret, result2 error)

func (*FakeKube) Invocations

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

func (*FakeKube) NamespacePresent added in v0.3.2

func (fake *FakeKube) NamespacePresent(arg1 context.Context, arg2 string) (bool, error)

func (*FakeKube) NamespacePresentArgsForCall added in v0.3.2

func (fake *FakeKube) NamespacePresentArgsForCall(i int) (context.Context, string)

func (*FakeKube) NamespacePresentCallCount added in v0.3.2

func (fake *FakeKube) NamespacePresentCallCount() int

func (*FakeKube) NamespacePresentCalls added in v0.3.2

func (fake *FakeKube) NamespacePresentCalls(stub func(context.Context, string) (bool, error))

func (*FakeKube) NamespacePresentReturns added in v0.3.2

func (fake *FakeKube) NamespacePresentReturns(result1 bool, result2 error)

func (*FakeKube) NamespacePresentReturnsOnCall added in v0.3.2

func (fake *FakeKube) NamespacePresentReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeKube) SecretPresent

func (fake *FakeKube) SecretPresent(arg1 context.Context, arg2 string, arg3 string) (bool, error)

func (*FakeKube) SecretPresentArgsForCall

func (fake *FakeKube) SecretPresentArgsForCall(i int) (context.Context, string, string)

func (*FakeKube) SecretPresentCallCount

func (fake *FakeKube) SecretPresentCallCount() int

func (*FakeKube) SecretPresentCalls

func (fake *FakeKube) SecretPresentCalls(stub func(context.Context, string, string) (bool, error))

func (*FakeKube) SecretPresentReturns

func (fake *FakeKube) SecretPresentReturns(result1 bool, result2 error)

func (*FakeKube) SecretPresentReturnsOnCall

func (fake *FakeKube) SecretPresentReturnsOnCall(i int, result1 bool, result2 error)

Jump to

Keyboard shortcuts

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