k8sfakes

package
v0.0.0-...-8c8647d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 13 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBuilder

type FakeBuilder struct {
	BuildStub func(reconcile.Reconciler) (controller.Controller, error)

	CompleteStub func(reconcile.Reconciler) error

	ForStub func(client.Object, ...builder.ForOption) k8s.Builder

	NamedStub func(string) k8s.Builder

	OwnsStub func(client.Object, ...builder.OwnsOption) k8s.Builder

	WithEventFilterStub func(predicate.Predicate) k8s.Builder

	WithLoggerStub func(logr.Logger) k8s.Builder

	WithOptionsStub func(controller.Options) k8s.Builder
	// contains filtered or unexported fields
}

func (*FakeBuilder) Build

func (*FakeBuilder) BuildArgsForCall

func (fake *FakeBuilder) BuildArgsForCall(i int) reconcile.Reconciler

func (*FakeBuilder) BuildCallCount

func (fake *FakeBuilder) BuildCallCount() int

func (*FakeBuilder) BuildCalls

func (fake *FakeBuilder) BuildCalls(stub func(reconcile.Reconciler) (controller.Controller, error))

func (*FakeBuilder) BuildReturns

func (fake *FakeBuilder) BuildReturns(result1 controller.Controller, result2 error)

func (*FakeBuilder) BuildReturnsOnCall

func (fake *FakeBuilder) BuildReturnsOnCall(i int, result1 controller.Controller, result2 error)

func (*FakeBuilder) Complete

func (fake *FakeBuilder) Complete(arg1 reconcile.Reconciler) error

func (*FakeBuilder) CompleteArgsForCall

func (fake *FakeBuilder) CompleteArgsForCall(i int) reconcile.Reconciler

func (*FakeBuilder) CompleteCallCount

func (fake *FakeBuilder) CompleteCallCount() int

func (*FakeBuilder) CompleteCalls

func (fake *FakeBuilder) CompleteCalls(stub func(reconcile.Reconciler) error)

func (*FakeBuilder) CompleteReturns

func (fake *FakeBuilder) CompleteReturns(result1 error)

func (*FakeBuilder) CompleteReturnsOnCall

func (fake *FakeBuilder) CompleteReturnsOnCall(i int, result1 error)

func (*FakeBuilder) For

func (fake *FakeBuilder) For(arg1 client.Object, arg2 ...builder.ForOption) k8s.Builder

func (*FakeBuilder) ForArgsForCall

func (fake *FakeBuilder) ForArgsForCall(i int) (client.Object, []builder.ForOption)

func (*FakeBuilder) ForCallCount

func (fake *FakeBuilder) ForCallCount() int

func (*FakeBuilder) ForCalls

func (fake *FakeBuilder) ForCalls(stub func(client.Object, ...builder.ForOption) k8s.Builder)

func (*FakeBuilder) ForReturns

func (fake *FakeBuilder) ForReturns(result1 k8s.Builder)

func (*FakeBuilder) ForReturnsOnCall

func (fake *FakeBuilder) ForReturnsOnCall(i int, result1 k8s.Builder)

func (*FakeBuilder) Invocations

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

func (*FakeBuilder) Named

func (fake *FakeBuilder) Named(arg1 string) k8s.Builder

func (*FakeBuilder) NamedArgsForCall

func (fake *FakeBuilder) NamedArgsForCall(i int) string

func (*FakeBuilder) NamedCallCount

func (fake *FakeBuilder) NamedCallCount() int

func (*FakeBuilder) NamedCalls

func (fake *FakeBuilder) NamedCalls(stub func(string) k8s.Builder)

func (*FakeBuilder) NamedReturns

func (fake *FakeBuilder) NamedReturns(result1 k8s.Builder)

func (*FakeBuilder) NamedReturnsOnCall

func (fake *FakeBuilder) NamedReturnsOnCall(i int, result1 k8s.Builder)

func (*FakeBuilder) Owns

func (fake *FakeBuilder) Owns(arg1 client.Object, arg2 ...builder.OwnsOption) k8s.Builder

func (*FakeBuilder) OwnsArgsForCall

func (fake *FakeBuilder) OwnsArgsForCall(i int) (client.Object, []builder.OwnsOption)

func (*FakeBuilder) OwnsCallCount

func (fake *FakeBuilder) OwnsCallCount() int

func (*FakeBuilder) OwnsCalls

func (fake *FakeBuilder) OwnsCalls(stub func(client.Object, ...builder.OwnsOption) k8s.Builder)

func (*FakeBuilder) OwnsReturns

func (fake *FakeBuilder) OwnsReturns(result1 k8s.Builder)

func (*FakeBuilder) OwnsReturnsOnCall

func (fake *FakeBuilder) OwnsReturnsOnCall(i int, result1 k8s.Builder)

func (*FakeBuilder) WithEventFilter

func (fake *FakeBuilder) WithEventFilter(arg1 predicate.Predicate) k8s.Builder

func (*FakeBuilder) WithEventFilterArgsForCall

func (fake *FakeBuilder) WithEventFilterArgsForCall(i int) predicate.Predicate

func (*FakeBuilder) WithEventFilterCallCount

func (fake *FakeBuilder) WithEventFilterCallCount() int

func (*FakeBuilder) WithEventFilterCalls

func (fake *FakeBuilder) WithEventFilterCalls(stub func(predicate.Predicate) k8s.Builder)

func (*FakeBuilder) WithEventFilterReturns

func (fake *FakeBuilder) WithEventFilterReturns(result1 k8s.Builder)

func (*FakeBuilder) WithEventFilterReturnsOnCall

func (fake *FakeBuilder) WithEventFilterReturnsOnCall(i int, result1 k8s.Builder)

func (*FakeBuilder) WithLogger

func (fake *FakeBuilder) WithLogger(arg1 logr.Logger) k8s.Builder

func (*FakeBuilder) WithLoggerArgsForCall

func (fake *FakeBuilder) WithLoggerArgsForCall(i int) logr.Logger

func (*FakeBuilder) WithLoggerCallCount

func (fake *FakeBuilder) WithLoggerCallCount() int

func (*FakeBuilder) WithLoggerCalls

func (fake *FakeBuilder) WithLoggerCalls(stub func(logr.Logger) k8s.Builder)

func (*FakeBuilder) WithLoggerReturns

func (fake *FakeBuilder) WithLoggerReturns(result1 k8s.Builder)

func (*FakeBuilder) WithLoggerReturnsOnCall

func (fake *FakeBuilder) WithLoggerReturnsOnCall(i int, result1 k8s.Builder)

func (*FakeBuilder) WithOptions

func (fake *FakeBuilder) WithOptions(arg1 controller.Options) k8s.Builder

func (*FakeBuilder) WithOptionsArgsForCall

func (fake *FakeBuilder) WithOptionsArgsForCall(i int) controller.Options

func (*FakeBuilder) WithOptionsCallCount

func (fake *FakeBuilder) WithOptionsCallCount() int

func (*FakeBuilder) WithOptionsCalls

func (fake *FakeBuilder) WithOptionsCalls(stub func(controller.Options) k8s.Builder)

func (*FakeBuilder) WithOptionsReturns

func (fake *FakeBuilder) WithOptionsReturns(result1 k8s.Builder)

func (*FakeBuilder) WithOptionsReturnsOnCall

func (fake *FakeBuilder) WithOptionsReturnsOnCall(i int, result1 k8s.Builder)

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) SetClientObject

func (fake *FakeClient) SetClientObject(out, v client.Object)

SetClientObject sets out to v. This is primarily used within the GetStub to fake the object returned from the API to the vaule of v

Examples:

k.GetStub = func(_ context.Context, _ types.NamespacedName, object client.Object) error {
	k.SetClientObject(object, &stack)
	return nil
}

func (*FakeClient) SetClientObjectList

func (fake *FakeClient) SetClientObjectList(out, v client.ObjectList)

SetClientObjectList sets out list to v. This is primarily used within the GetStub to fake the object returned from the API to the vaule of v

Examples:

k.GetStub = func(_ context.Context, _ types.NamespacedName, list client.ObjectList) error {
	k.SetClientObjectList(list, &podList)
	return nil
}

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 FakeStatusWriter

type FakeStatusWriter struct {
	PatchStub func(context.Context, client.Object, client.Patch, ...client.PatchOption) error

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

func (*FakeStatusWriter) Invocations

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

func (*FakeStatusWriter) Patch

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

func (*FakeStatusWriter) PatchArgsForCall

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

func (*FakeStatusWriter) PatchCallCount

func (fake *FakeStatusWriter) PatchCallCount() int

func (*FakeStatusWriter) PatchCalls

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

func (*FakeStatusWriter) PatchReturns

func (fake *FakeStatusWriter) PatchReturns(result1 error)

func (*FakeStatusWriter) PatchReturnsOnCall

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

func (*FakeStatusWriter) Update

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

func (*FakeStatusWriter) UpdateArgsForCall

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

func (*FakeStatusWriter) UpdateCallCount

func (fake *FakeStatusWriter) UpdateCallCount() int

func (*FakeStatusWriter) UpdateCalls

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

func (*FakeStatusWriter) UpdateReturns

func (fake *FakeStatusWriter) UpdateReturns(result1 error)

func (*FakeStatusWriter) UpdateReturnsOnCall

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

Jump to

Keyboard shortcuts

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