fake_client

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Objects map[storageKey]runtime.Object
	// contains filtered or unexported fields
}

func NewFakeClient

func NewFakeClient(initialObjects []runtime.Object, errorInjector errorInjector) (*Client, error)

func (Client) Create

func (f Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

func (Client) Delete

func (f Client) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

func (Client) DeleteAllOf

func (f Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error

func (Client) Get

func (f Client) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error

func (Client) List

func (f Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

func (Client) Patch

func (f Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

func (Client) RESTMapper

func (f Client) RESTMapper() meta.RESTMapper

func (Client) Scheme

func (f Client) Scheme() *runtime.Scheme

func (Client) Status

func (f Client) Status() client.StatusWriter

func (Client) Update

func (f Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

Jump to

Keyboard shortcuts

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