fake

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 7 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 {
	Stubs
}

A convenient way to stub out a Client for test fixtures. Default behavior does nothing and returns a nil error.

func New

func New(objs ...runtime.Object) Client

New returns a fully-functioning Client, "persisting" resources in a map, optionally initialized with some API objects

func (Client) Create

func (c Client) Create(obj *unstructured.Unstructured, options ...mf.ApplyOption) error

Manifestival.Client.Create

func (Client) Delete

func (c Client) Delete(obj *unstructured.Unstructured, options ...mf.DeleteOption) error

Manifestival.Client.Delete

func (Client) Get

Manifestival.Client.Get

func (Client) Update

func (c Client) Update(obj *unstructured.Unstructured, options ...mf.ApplyOption) error

Manifestival.Client.Update

type Stubs

type Stubs struct {
	Create mutator
	Update mutator
	Delete mutator
	Get    accessor
}

Override any of the Client functions

Jump to

Keyboard shortcuts

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