fake

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more 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 FakeCronHPAs

type FakeCronHPAs struct {
	Fake *FakeCronhpacontrollerV1
	// contains filtered or unexported fields
}

FakeCronHPAs implements CronHPAInterface

func (*FakeCronHPAs) Create

func (c *FakeCronHPAs) Create(cronHPA *cronhpacontrollerv1.CronHPA) (result *cronhpacontrollerv1.CronHPA, err error)

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

func (*FakeCronHPAs) Delete

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

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

func (*FakeCronHPAs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCronHPAs) Get

func (c *FakeCronHPAs) Get(name string, options v1.GetOptions) (result *cronhpacontrollerv1.CronHPA, err error)

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

func (*FakeCronHPAs) List

func (c *FakeCronHPAs) List(opts v1.ListOptions) (result *cronhpacontrollerv1.CronHPAList, err error)

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

func (*FakeCronHPAs) Patch

func (c *FakeCronHPAs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cronhpacontrollerv1.CronHPA, err error)

Patch applies the patch and returns the patched cronHPA.

func (*FakeCronHPAs) Update

func (c *FakeCronHPAs) Update(cronHPA *cronhpacontrollerv1.CronHPA) (result *cronhpacontrollerv1.CronHPA, err error)

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

func (*FakeCronHPAs) Watch

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

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

type FakeCronhpacontrollerV1

type FakeCronhpacontrollerV1 struct {
	*testing.Fake
}

func (*FakeCronhpacontrollerV1) CronHPAs

func (c *FakeCronhpacontrollerV1) CronHPAs(namespace string) v1.CronHPAInterface

func (*FakeCronhpacontrollerV1) RESTClient

func (c *FakeCronhpacontrollerV1) 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