fake

package
v0.0.0-...-e995ff0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCoreV1alpha1

type FakeCoreV1alpha1 struct {
	*testing.Fake
}

func (*FakeCoreV1alpha1) Crypts

func (c *FakeCoreV1alpha1) Crypts(namespace string) v1alpha1.CryptInterface

func (*FakeCoreV1alpha1) RESTClient

func (c *FakeCoreV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

type FakeCrypts

type FakeCrypts struct {
	Fake *FakeCoreV1alpha1
	// contains filtered or unexported fields
}

FakeCrypts implements CryptInterface

func (*FakeCrypts) Create

func (c *FakeCrypts) Create(crypt *v1alpha1.Crypt) (result *v1alpha1.Crypt, err error)

Create takes the representation of a crypt and creates it. Returns the server's representation of the crypt, and an error, if there is any.

func (*FakeCrypts) Delete

func (c *FakeCrypts) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the crypt and deletes it. Returns an error if one occurs.

func (*FakeCrypts) DeleteCollection

func (c *FakeCrypts) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCrypts) Get

func (c *FakeCrypts) Get(name string, options v1.GetOptions) (result *v1alpha1.Crypt, err error)

Get takes name of the crypt, and returns the corresponding crypt object, and an error if there is any.

func (*FakeCrypts) List

func (c *FakeCrypts) List(opts v1.ListOptions) (result *v1alpha1.CryptList, err error)

List takes label and field selectors, and returns the list of Crypts that match those selectors.

func (*FakeCrypts) Patch

func (c *FakeCrypts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Crypt, err error)

Patch applies the patch and returns the patched crypt.

func (*FakeCrypts) Update

func (c *FakeCrypts) Update(crypt *v1alpha1.Crypt) (result *v1alpha1.Crypt, err error)

Update takes the representation of a crypt and updates it. Returns the server's representation of the crypt, and an error, if there is any.

func (*FakeCrypts) UpdateStatus

func (c *FakeCrypts) UpdateStatus(crypt *v1alpha1.Crypt) (*v1alpha1.Crypt, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeCrypts) Watch

func (c *FakeCrypts) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested crypts.

Jump to

Keyboard shortcuts

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