fake

package
v0.0.0-...-204d889 Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 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 FakeFilters

type FakeFilters struct {
	Fake *FakeKfilterV1alpha1
	// contains filtered or unexported fields
}

FakeFilters implements FilterInterface

func (*FakeFilters) Create

func (c *FakeFilters) Create(filter *v1alpha1.Filter) (result *v1alpha1.Filter, err error)

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

func (*FakeFilters) Delete

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

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

func (*FakeFilters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFilters) Get

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

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

func (*FakeFilters) List

func (c *FakeFilters) List(opts v1.ListOptions) (result *v1alpha1.FilterList, err error)

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

func (*FakeFilters) Patch

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

Patch applies the patch and returns the patched filter.

func (*FakeFilters) Update

func (c *FakeFilters) Update(filter *v1alpha1.Filter) (result *v1alpha1.Filter, err error)

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

func (*FakeFilters) Watch

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

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

type FakeKfilterV1alpha1

type FakeKfilterV1alpha1 struct {
	*testing.Fake
}

func (*FakeKfilterV1alpha1) Filters

func (c *FakeKfilterV1alpha1) Filters(namespace string) v1alpha1.FilterInterface

func (*FakeKfilterV1alpha1) RESTClient

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

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

func (*FakeKfilterV1alpha1) Transforms

func (c *FakeKfilterV1alpha1) Transforms(namespace string) v1alpha1.TransformInterface

type FakeTransforms

type FakeTransforms struct {
	Fake *FakeKfilterV1alpha1
	// contains filtered or unexported fields
}

FakeTransforms implements TransformInterface

func (*FakeTransforms) Create

func (c *FakeTransforms) Create(transform *v1alpha1.Transform) (result *v1alpha1.Transform, err error)

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

func (*FakeTransforms) Delete

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

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

func (*FakeTransforms) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTransforms) Get

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

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

func (*FakeTransforms) List

func (c *FakeTransforms) List(opts v1.ListOptions) (result *v1alpha1.TransformList, err error)

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

func (*FakeTransforms) Patch

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

Patch applies the patch and returns the patched transform.

func (*FakeTransforms) Update

func (c *FakeTransforms) Update(transform *v1alpha1.Transform) (result *v1alpha1.Transform, err error)

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

func (*FakeTransforms) Watch

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

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

Jump to

Keyboard shortcuts

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