fake

package
v0.0.0-...-d5b48cf Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 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 FakeFlows

type FakeFlows struct {
	Fake *FakeFlowsV1alpha1
	// contains filtered or unexported fields
}

FakeFlows implements FlowInterface

func (*FakeFlows) Create

func (c *FakeFlows) Create(flow *v1alpha1.Flow) (result *v1alpha1.Flow, err error)

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

func (*FakeFlows) Delete

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

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

func (*FakeFlows) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFlows) Get

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

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

func (*FakeFlows) List

func (c *FakeFlows) List(opts v1.ListOptions) (result *v1alpha1.FlowList, err error)

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

func (*FakeFlows) Patch

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

Patch applies the patch and returns the patched flow.

func (*FakeFlows) Update

func (c *FakeFlows) Update(flow *v1alpha1.Flow) (result *v1alpha1.Flow, err error)

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

func (*FakeFlows) UpdateStatus

func (c *FakeFlows) UpdateStatus(flow *v1alpha1.Flow) (*v1alpha1.Flow, error)

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

func (*FakeFlows) Watch

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

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

type FakeFlowsV1alpha1

type FakeFlowsV1alpha1 struct {
	*testing.Fake
}

func (*FakeFlowsV1alpha1) Flows

func (c *FakeFlowsV1alpha1) Flows(namespace string) v1alpha1.FlowInterface

func (*FakeFlowsV1alpha1) RESTClient

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