fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0 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 FakeAdapters

type FakeAdapters struct {
	Fake *FakeKnativeV1alpha1
	// contains filtered or unexported fields
}

FakeAdapters implements AdapterInterface

func (*FakeAdapters) Create

func (c *FakeAdapters) Create(adapter *v1alpha1.Adapter) (result *v1alpha1.Adapter, err error)

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

func (*FakeAdapters) Delete

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

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

func (*FakeAdapters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAdapters) Get

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

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

func (*FakeAdapters) List

func (c *FakeAdapters) List(opts v1.ListOptions) (result *v1alpha1.AdapterList, err error)

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

func (*FakeAdapters) Patch

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

Patch applies the patch and returns the patched adapter.

func (*FakeAdapters) Update

func (c *FakeAdapters) Update(adapter *v1alpha1.Adapter) (result *v1alpha1.Adapter, err error)

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

func (*FakeAdapters) UpdateStatus

func (c *FakeAdapters) UpdateStatus(adapter *v1alpha1.Adapter) (*v1alpha1.Adapter, error)

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

func (*FakeAdapters) Watch

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

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

type FakeDeployers

type FakeDeployers struct {
	Fake *FakeKnativeV1alpha1
	// contains filtered or unexported fields
}

FakeDeployers implements DeployerInterface

func (*FakeDeployers) Create

func (c *FakeDeployers) Create(deployer *v1alpha1.Deployer) (result *v1alpha1.Deployer, err error)

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

func (*FakeDeployers) Delete

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

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

func (*FakeDeployers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDeployers) Get

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

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

func (*FakeDeployers) List

func (c *FakeDeployers) List(opts v1.ListOptions) (result *v1alpha1.DeployerList, err error)

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

func (*FakeDeployers) Patch

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

Patch applies the patch and returns the patched deployer.

func (*FakeDeployers) Update

func (c *FakeDeployers) Update(deployer *v1alpha1.Deployer) (result *v1alpha1.Deployer, err error)

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

func (*FakeDeployers) UpdateStatus

func (c *FakeDeployers) UpdateStatus(deployer *v1alpha1.Deployer) (*v1alpha1.Deployer, error)

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

func (*FakeDeployers) Watch

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

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

type FakeKnativeV1alpha1

type FakeKnativeV1alpha1 struct {
	*testing.Fake
}

func (*FakeKnativeV1alpha1) Adapters

func (c *FakeKnativeV1alpha1) Adapters(namespace string) v1alpha1.AdapterInterface

func (*FakeKnativeV1alpha1) Deployers

func (c *FakeKnativeV1alpha1) Deployers(namespace string) v1alpha1.DeployerInterface

func (*FakeKnativeV1alpha1) RESTClient

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