migrationsfakes

package
v0.0.0-...-db62745 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 10 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.

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 FakeCPURequestSetter

type FakeCPURequestSetter struct {
	SetCPURequestStub func(context.Context, *v1.StatefulSet, *resource.Quantity) (*v1.StatefulSet, error)
	// contains filtered or unexported fields
}

func (*FakeCPURequestSetter) Invocations

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

func (*FakeCPURequestSetter) SetCPURequest

func (fake *FakeCPURequestSetter) SetCPURequest(arg1 context.Context, arg2 *v1.StatefulSet, arg3 *resource.Quantity) (*v1.StatefulSet, error)

func (*FakeCPURequestSetter) SetCPURequestArgsForCall

func (fake *FakeCPURequestSetter) SetCPURequestArgsForCall(i int) (context.Context, *v1.StatefulSet, *resource.Quantity)

func (*FakeCPURequestSetter) SetCPURequestCallCount

func (fake *FakeCPURequestSetter) SetCPURequestCallCount() int

func (*FakeCPURequestSetter) SetCPURequestCalls

func (fake *FakeCPURequestSetter) SetCPURequestCalls(stub func(context.Context, *v1.StatefulSet, *resource.Quantity) (*v1.StatefulSet, error))

func (*FakeCPURequestSetter) SetCPURequestReturns

func (fake *FakeCPURequestSetter) SetCPURequestReturns(result1 *v1.StatefulSet, result2 error)

func (*FakeCPURequestSetter) SetCPURequestReturnsOnCall

func (fake *FakeCPURequestSetter) SetCPURequestReturnsOnCall(i int, result1 *v1.StatefulSet, result2 error)

type FakeJobsClient

type FakeJobsClient struct {
	ListStub func(context.Context, bool) ([]v1.Job, error)

	SetAnnotationStub func(context.Context, *v1.Job, string, string) (*v1.Job, error)
	// contains filtered or unexported fields
}

func (*FakeJobsClient) Invocations

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

func (*FakeJobsClient) List

func (fake *FakeJobsClient) List(arg1 context.Context, arg2 bool) ([]v1.Job, error)

func (*FakeJobsClient) ListArgsForCall

func (fake *FakeJobsClient) ListArgsForCall(i int) (context.Context, bool)

func (*FakeJobsClient) ListCallCount

func (fake *FakeJobsClient) ListCallCount() int

func (*FakeJobsClient) ListCalls

func (fake *FakeJobsClient) ListCalls(stub func(context.Context, bool) ([]v1.Job, error))

func (*FakeJobsClient) ListReturns

func (fake *FakeJobsClient) ListReturns(result1 []v1.Job, result2 error)

func (*FakeJobsClient) ListReturnsOnCall

func (fake *FakeJobsClient) ListReturnsOnCall(i int, result1 []v1.Job, result2 error)

func (*FakeJobsClient) SetAnnotation

func (fake *FakeJobsClient) SetAnnotation(arg1 context.Context, arg2 *v1.Job, arg3 string, arg4 string) (*v1.Job, error)

func (*FakeJobsClient) SetAnnotationArgsForCall

func (fake *FakeJobsClient) SetAnnotationArgsForCall(i int) (context.Context, *v1.Job, string, string)

func (*FakeJobsClient) SetAnnotationCallCount

func (fake *FakeJobsClient) SetAnnotationCallCount() int

func (*FakeJobsClient) SetAnnotationCalls

func (fake *FakeJobsClient) SetAnnotationCalls(stub func(context.Context, *v1.Job, string, string) (*v1.Job, error))

func (*FakeJobsClient) SetAnnotationReturns

func (fake *FakeJobsClient) SetAnnotationReturns(result1 *v1.Job, result2 error)

func (*FakeJobsClient) SetAnnotationReturnsOnCall

func (fake *FakeJobsClient) SetAnnotationReturnsOnCall(i int, result1 *v1.Job, result2 error)

type FakeMigrationProvider

type FakeMigrationProvider struct {
	GetLatestMigrationIndexStub func() int

	ProvideStub func() []migrations.MigrationStep
	// contains filtered or unexported fields
}

func (*FakeMigrationProvider) GetLatestMigrationIndex

func (fake *FakeMigrationProvider) GetLatestMigrationIndex() int

func (*FakeMigrationProvider) GetLatestMigrationIndexCallCount

func (fake *FakeMigrationProvider) GetLatestMigrationIndexCallCount() int

func (*FakeMigrationProvider) GetLatestMigrationIndexCalls

func (fake *FakeMigrationProvider) GetLatestMigrationIndexCalls(stub func() int)

func (*FakeMigrationProvider) GetLatestMigrationIndexReturns

func (fake *FakeMigrationProvider) GetLatestMigrationIndexReturns(result1 int)

func (*FakeMigrationProvider) GetLatestMigrationIndexReturnsOnCall

func (fake *FakeMigrationProvider) GetLatestMigrationIndexReturnsOnCall(i int, result1 int)

func (*FakeMigrationProvider) Invocations

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

func (*FakeMigrationProvider) Provide

func (*FakeMigrationProvider) ProvideCallCount

func (fake *FakeMigrationProvider) ProvideCallCount() int

func (*FakeMigrationProvider) ProvideCalls

func (fake *FakeMigrationProvider) ProvideCalls(stub func() []migrations.MigrationStep)

func (*FakeMigrationProvider) ProvideReturns

func (fake *FakeMigrationProvider) ProvideReturns(result1 []migrations.MigrationStep)

func (*FakeMigrationProvider) ProvideReturnsOnCall

func (fake *FakeMigrationProvider) ProvideReturnsOnCall(i int, result1 []migrations.MigrationStep)

type FakeMigrationStep

type FakeMigrationStep struct {
	AppliesToStub func() migrations.ObjectType

	ApplyStub func(context.Context, runtime.Object) error

	SequenceIDStub func() int
	// contains filtered or unexported fields
}

func (*FakeMigrationStep) AppliesTo

func (fake *FakeMigrationStep) AppliesTo() migrations.ObjectType

func (*FakeMigrationStep) AppliesToCallCount

func (fake *FakeMigrationStep) AppliesToCallCount() int

func (*FakeMigrationStep) AppliesToCalls

func (fake *FakeMigrationStep) AppliesToCalls(stub func() migrations.ObjectType)

func (*FakeMigrationStep) AppliesToReturns

func (fake *FakeMigrationStep) AppliesToReturns(result1 migrations.ObjectType)

func (*FakeMigrationStep) AppliesToReturnsOnCall

func (fake *FakeMigrationStep) AppliesToReturnsOnCall(i int, result1 migrations.ObjectType)

func (*FakeMigrationStep) Apply

func (fake *FakeMigrationStep) Apply(arg1 context.Context, arg2 runtime.Object) error

func (*FakeMigrationStep) ApplyArgsForCall

func (fake *FakeMigrationStep) ApplyArgsForCall(i int) (context.Context, runtime.Object)

func (*FakeMigrationStep) ApplyCallCount

func (fake *FakeMigrationStep) ApplyCallCount() int

func (*FakeMigrationStep) ApplyCalls

func (fake *FakeMigrationStep) ApplyCalls(stub func(context.Context, runtime.Object) error)

func (*FakeMigrationStep) ApplyReturns

func (fake *FakeMigrationStep) ApplyReturns(result1 error)

func (*FakeMigrationStep) ApplyReturnsOnCall

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

func (*FakeMigrationStep) Invocations

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

func (*FakeMigrationStep) SequenceID

func (fake *FakeMigrationStep) SequenceID() int

func (*FakeMigrationStep) SequenceIDCallCount

func (fake *FakeMigrationStep) SequenceIDCallCount() int

func (*FakeMigrationStep) SequenceIDCalls

func (fake *FakeMigrationStep) SequenceIDCalls(stub func() int)

func (*FakeMigrationStep) SequenceIDReturns

func (fake *FakeMigrationStep) SequenceIDReturns(result1 int)

func (*FakeMigrationStep) SequenceIDReturnsOnCall

func (fake *FakeMigrationStep) SequenceIDReturnsOnCall(i int, result1 int)

type FakePDBClient

type FakePDBClient struct {
	GetStub func(context.Context, string, string) (*v1beta1.PodDisruptionBudget, error)

	SetOwnerStub func(context.Context, *v1beta1.PodDisruptionBudget, *v1.StatefulSet) (*v1beta1.PodDisruptionBudget, error)
	// contains filtered or unexported fields
}

func (*FakePDBClient) Get

func (fake *FakePDBClient) Get(arg1 context.Context, arg2 string, arg3 string) (*v1beta1.PodDisruptionBudget, error)

func (*FakePDBClient) GetArgsForCall

func (fake *FakePDBClient) GetArgsForCall(i int) (context.Context, string, string)

func (*FakePDBClient) GetCallCount

func (fake *FakePDBClient) GetCallCount() int

func (*FakePDBClient) GetCalls

func (fake *FakePDBClient) GetCalls(stub func(context.Context, string, string) (*v1beta1.PodDisruptionBudget, error))

func (*FakePDBClient) GetReturns

func (fake *FakePDBClient) GetReturns(result1 *v1beta1.PodDisruptionBudget, result2 error)

func (*FakePDBClient) GetReturnsOnCall

func (fake *FakePDBClient) GetReturnsOnCall(i int, result1 *v1beta1.PodDisruptionBudget, result2 error)

func (*FakePDBClient) Invocations

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

func (*FakePDBClient) SetOwner

func (*FakePDBClient) SetOwnerArgsForCall

func (fake *FakePDBClient) SetOwnerArgsForCall(i int) (context.Context, *v1beta1.PodDisruptionBudget, *v1.StatefulSet)

func (*FakePDBClient) SetOwnerCallCount

func (fake *FakePDBClient) SetOwnerCallCount() int

func (*FakePDBClient) SetOwnerCalls

func (*FakePDBClient) SetOwnerReturns

func (fake *FakePDBClient) SetOwnerReturns(result1 *v1beta1.PodDisruptionBudget, result2 error)

func (*FakePDBClient) SetOwnerReturnsOnCall

func (fake *FakePDBClient) SetOwnerReturnsOnCall(i int, result1 *v1beta1.PodDisruptionBudget, result2 error)

type FakeSecretsClient

type FakeSecretsClient struct {
	GetStub func(context.Context, string, string) (*v1.Secret, error)

	SetOwnerStub func(context.Context, *v1.Secret, v1a.Object) (*v1.Secret, error)
	// contains filtered or unexported fields
}

func (*FakeSecretsClient) Get

func (fake *FakeSecretsClient) Get(arg1 context.Context, arg2 string, arg3 string) (*v1.Secret, error)

func (*FakeSecretsClient) GetArgsForCall

func (fake *FakeSecretsClient) GetArgsForCall(i int) (context.Context, string, string)

func (*FakeSecretsClient) GetCallCount

func (fake *FakeSecretsClient) GetCallCount() int

func (*FakeSecretsClient) GetCalls

func (fake *FakeSecretsClient) GetCalls(stub func(context.Context, string, string) (*v1.Secret, error))

func (*FakeSecretsClient) GetReturns

func (fake *FakeSecretsClient) GetReturns(result1 *v1.Secret, result2 error)

func (*FakeSecretsClient) GetReturnsOnCall

func (fake *FakeSecretsClient) GetReturnsOnCall(i int, result1 *v1.Secret, result2 error)

func (*FakeSecretsClient) Invocations

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

func (*FakeSecretsClient) SetOwner

func (fake *FakeSecretsClient) SetOwner(arg1 context.Context, arg2 *v1.Secret, arg3 v1a.Object) (*v1.Secret, error)

func (*FakeSecretsClient) SetOwnerArgsForCall

func (fake *FakeSecretsClient) SetOwnerArgsForCall(i int) (context.Context, *v1.Secret, v1a.Object)

func (*FakeSecretsClient) SetOwnerCallCount

func (fake *FakeSecretsClient) SetOwnerCallCount() int

func (*FakeSecretsClient) SetOwnerCalls

func (fake *FakeSecretsClient) SetOwnerCalls(stub func(context.Context, *v1.Secret, v1a.Object) (*v1.Secret, error))

func (*FakeSecretsClient) SetOwnerReturns

func (fake *FakeSecretsClient) SetOwnerReturns(result1 *v1.Secret, result2 error)

func (*FakeSecretsClient) SetOwnerReturnsOnCall

func (fake *FakeSecretsClient) SetOwnerReturnsOnCall(i int, result1 *v1.Secret, result2 error)

type FakeStatefulsetsClient

type FakeStatefulsetsClient struct {
	GetBySourceTypeStub func(context.Context, string) ([]v1.StatefulSet, error)

	SetAnnotationStub func(context.Context, *v1.StatefulSet, string, string) (*v1.StatefulSet, error)
	// contains filtered or unexported fields
}

func (*FakeStatefulsetsClient) GetBySourceType

func (fake *FakeStatefulsetsClient) GetBySourceType(arg1 context.Context, arg2 string) ([]v1.StatefulSet, error)

func (*FakeStatefulsetsClient) GetBySourceTypeArgsForCall

func (fake *FakeStatefulsetsClient) GetBySourceTypeArgsForCall(i int) (context.Context, string)

func (*FakeStatefulsetsClient) GetBySourceTypeCallCount

func (fake *FakeStatefulsetsClient) GetBySourceTypeCallCount() int

func (*FakeStatefulsetsClient) GetBySourceTypeCalls

func (fake *FakeStatefulsetsClient) GetBySourceTypeCalls(stub func(context.Context, string) ([]v1.StatefulSet, error))

func (*FakeStatefulsetsClient) GetBySourceTypeReturns

func (fake *FakeStatefulsetsClient) GetBySourceTypeReturns(result1 []v1.StatefulSet, result2 error)

func (*FakeStatefulsetsClient) GetBySourceTypeReturnsOnCall

func (fake *FakeStatefulsetsClient) GetBySourceTypeReturnsOnCall(i int, result1 []v1.StatefulSet, result2 error)

func (*FakeStatefulsetsClient) Invocations

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

func (*FakeStatefulsetsClient) SetAnnotation

func (fake *FakeStatefulsetsClient) SetAnnotation(arg1 context.Context, arg2 *v1.StatefulSet, arg3 string, arg4 string) (*v1.StatefulSet, error)

func (*FakeStatefulsetsClient) SetAnnotationArgsForCall

func (fake *FakeStatefulsetsClient) SetAnnotationArgsForCall(i int) (context.Context, *v1.StatefulSet, string, string)

func (*FakeStatefulsetsClient) SetAnnotationCallCount

func (fake *FakeStatefulsetsClient) SetAnnotationCallCount() int

func (*FakeStatefulsetsClient) SetAnnotationCalls

func (fake *FakeStatefulsetsClient) SetAnnotationCalls(stub func(context.Context, *v1.StatefulSet, string, string) (*v1.StatefulSet, error))

func (*FakeStatefulsetsClient) SetAnnotationReturns

func (fake *FakeStatefulsetsClient) SetAnnotationReturns(result1 *v1.StatefulSet, result2 error)

func (*FakeStatefulsetsClient) SetAnnotationReturnsOnCall

func (fake *FakeStatefulsetsClient) SetAnnotationReturnsOnCall(i int, result1 *v1.StatefulSet, result2 error)

Jump to

Keyboard shortcuts

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