fake

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 10 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 FakeAutoDeployUnits

type FakeAutoDeployUnits struct {
	Fake *FakeAutodeployV1
	// contains filtered or unexported fields
}

FakeAutoDeployUnits implements AutoDeployUnitInterface

func (*FakeAutoDeployUnits) Create

func (c *FakeAutoDeployUnits) Create(ctx context.Context, autoDeployUnit *autodeployv1.AutoDeployUnit, opts v1.CreateOptions) (result *autodeployv1.AutoDeployUnit, err error)

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

func (*FakeAutoDeployUnits) Delete

func (c *FakeAutoDeployUnits) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeAutoDeployUnits) DeleteCollection

func (c *FakeAutoDeployUnits) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAutoDeployUnits) Get

func (c *FakeAutoDeployUnits) Get(ctx context.Context, name string, options v1.GetOptions) (result *autodeployv1.AutoDeployUnit, err error)

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

func (*FakeAutoDeployUnits) List

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

func (*FakeAutoDeployUnits) Patch

func (c *FakeAutoDeployUnits) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *autodeployv1.AutoDeployUnit, err error)

Patch applies the patch and returns the patched autoDeployUnit.

func (*FakeAutoDeployUnits) Update

func (c *FakeAutoDeployUnits) Update(ctx context.Context, autoDeployUnit *autodeployv1.AutoDeployUnit, opts v1.UpdateOptions) (result *autodeployv1.AutoDeployUnit, err error)

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

func (*FakeAutoDeployUnits) Watch

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

type FakeAutodeployV1

type FakeAutodeployV1 struct {
	*testing.Fake
}

func (*FakeAutodeployV1) AutoDeployUnits

func (c *FakeAutodeployV1) AutoDeployUnits(namespace string) v1.AutoDeployUnitInterface

func (*FakeAutodeployV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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