fake

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 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 FakeGraphFinders added in v0.2.0

type FakeGraphFinders struct {
	Fake *FakeMetaV1alpha1
}

FakeGraphFinders implements GraphFinderInterface

func (*FakeGraphFinders) Create added in v0.2.0

func (c *FakeGraphFinders) Create(graphFinder *v1alpha1.GraphFinder) (result *v1alpha1.GraphFinder, err error)

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

type FakeMetaV1alpha1

type FakeMetaV1alpha1 struct {
	*testing.Fake
}

func (*FakeMetaV1alpha1) GraphFinders added in v0.2.0

func (*FakeMetaV1alpha1) PathFinders

func (*FakeMetaV1alpha1) RESTClient

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

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

func (*FakeMetaV1alpha1) ResourceClasses added in v0.3.0

func (c *FakeMetaV1alpha1) ResourceClasses() v1alpha1.ResourceClassInterface

func (*FakeMetaV1alpha1) ResourceDescriptors

func (c *FakeMetaV1alpha1) ResourceDescriptors() v1alpha1.ResourceDescriptorInterface

type FakePathFinders

type FakePathFinders struct {
	Fake *FakeMetaV1alpha1
}

FakePathFinders implements PathFinderInterface

func (*FakePathFinders) Create

func (c *FakePathFinders) Create(pathFinder *v1alpha1.PathFinder) (result *v1alpha1.PathFinder, err error)

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

type FakeResourceClasses added in v0.3.0

type FakeResourceClasses struct {
	Fake *FakeMetaV1alpha1
}

FakeResourceClasses implements ResourceClassInterface

func (*FakeResourceClasses) Create added in v0.3.0

func (c *FakeResourceClasses) Create(resourceClass *v1alpha1.ResourceClass) (result *v1alpha1.ResourceClass, err error)

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

func (*FakeResourceClasses) Delete added in v0.3.0

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

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

func (*FakeResourceClasses) DeleteCollection added in v0.3.0

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceClasses) Get added in v0.3.0

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

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

func (*FakeResourceClasses) List added in v0.3.0

func (c *FakeResourceClasses) List(opts v1.ListOptions) (result *v1alpha1.ResourceClassList, err error)

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

func (*FakeResourceClasses) Patch added in v0.3.0

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

Patch applies the patch and returns the patched resourceClass.

func (*FakeResourceClasses) Update added in v0.3.0

func (c *FakeResourceClasses) Update(resourceClass *v1alpha1.ResourceClass) (result *v1alpha1.ResourceClass, err error)

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

func (*FakeResourceClasses) Watch added in v0.3.0

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

type FakeResourceDescriptors

type FakeResourceDescriptors struct {
	Fake *FakeMetaV1alpha1
}

FakeResourceDescriptors implements ResourceDescriptorInterface

func (*FakeResourceDescriptors) Create

func (c *FakeResourceDescriptors) Create(resourceDescriptor *v1alpha1.ResourceDescriptor) (result *v1alpha1.ResourceDescriptor, err error)

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

func (*FakeResourceDescriptors) Delete

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

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

func (*FakeResourceDescriptors) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceDescriptors) Get

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

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

func (*FakeResourceDescriptors) List

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

func (*FakeResourceDescriptors) Patch

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

Patch applies the patch and returns the patched resourceDescriptor.

func (*FakeResourceDescriptors) Update

func (c *FakeResourceDescriptors) Update(resourceDescriptor *v1alpha1.ResourceDescriptor) (result *v1alpha1.ResourceDescriptor, err error)

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

func (*FakeResourceDescriptors) Watch

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

Jump to

Keyboard shortcuts

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