fake

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 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 FakeAutopilotRuleObjects added in v1.3.0

type FakeAutopilotRuleObjects struct {
	Fake *FakeAutopilotV1alpha1
}

FakeAutopilotRuleObjects implements AutopilotRuleObjectInterface

func (*FakeAutopilotRuleObjects) Create added in v1.3.0

func (c *FakeAutopilotRuleObjects) Create(autopilotRuleObject *v1alpha1.AutopilotRuleObject) (result *v1alpha1.AutopilotRuleObject, err error)

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

func (*FakeAutopilotRuleObjects) Delete added in v1.3.0

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

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

func (*FakeAutopilotRuleObjects) DeleteCollection added in v1.3.0

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

DeleteCollection deletes a collection of objects.

func (*FakeAutopilotRuleObjects) Get added in v1.3.0

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

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

func (*FakeAutopilotRuleObjects) List added in v1.3.0

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

func (*FakeAutopilotRuleObjects) Patch added in v1.3.0

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

Patch applies the patch and returns the patched autopilotRuleObject.

func (*FakeAutopilotRuleObjects) Update added in v1.3.0

func (c *FakeAutopilotRuleObjects) Update(autopilotRuleObject *v1alpha1.AutopilotRuleObject) (result *v1alpha1.AutopilotRuleObject, err error)

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

func (*FakeAutopilotRuleObjects) UpdateStatus added in v1.3.0

func (c *FakeAutopilotRuleObjects) UpdateStatus(autopilotRuleObject *v1alpha1.AutopilotRuleObject) (*v1alpha1.AutopilotRuleObject, error)

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

func (*FakeAutopilotRuleObjects) Watch added in v1.3.0

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

type FakeAutopilotRules

type FakeAutopilotRules struct {
	Fake *FakeAutopilotV1alpha1
}

FakeAutopilotRules implements AutopilotRuleInterface

func (*FakeAutopilotRules) Create

func (c *FakeAutopilotRules) Create(autopilotRule *v1alpha1.AutopilotRule) (result *v1alpha1.AutopilotRule, err error)

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

func (*FakeAutopilotRules) Delete

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

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

func (*FakeAutopilotRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAutopilotRules) Get

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

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

func (*FakeAutopilotRules) List

func (c *FakeAutopilotRules) List(opts v1.ListOptions) (result *v1alpha1.AutopilotRuleList, err error)

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

func (*FakeAutopilotRules) Patch

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

Patch applies the patch and returns the patched autopilotRule.

func (*FakeAutopilotRules) Update

func (c *FakeAutopilotRules) Update(autopilotRule *v1alpha1.AutopilotRule) (result *v1alpha1.AutopilotRule, err error)

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

func (*FakeAutopilotRules) Watch

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

type FakeAutopilotV1alpha1

type FakeAutopilotV1alpha1 struct {
	*testing.Fake
}

func (*FakeAutopilotV1alpha1) AutopilotRuleObjects added in v1.3.0

func (*FakeAutopilotV1alpha1) AutopilotRules

func (*FakeAutopilotV1alpha1) RESTClient

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