fake

package
v0.0.0-...-0118a35 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0, MIT 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 FakeAddonInstances

type FakeAddonInstances struct {
	Fake *FakeGardenV1alpha1
	// contains filtered or unexported fields
}

FakeAddonInstances implements AddonInstanceInterface

func (*FakeAddonInstances) Create

func (c *FakeAddonInstances) Create(addonInstance *v1alpha1.AddonInstance) (result *v1alpha1.AddonInstance, err error)

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

func (*FakeAddonInstances) Delete

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

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

func (*FakeAddonInstances) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAddonInstances) Get

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

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

func (*FakeAddonInstances) List

func (c *FakeAddonInstances) List(opts v1.ListOptions) (result *v1alpha1.AddonInstanceList, err error)

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

func (*FakeAddonInstances) Patch

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

Patch applies the patch and returns the patched addonInstance.

func (*FakeAddonInstances) Update

func (c *FakeAddonInstances) Update(addonInstance *v1alpha1.AddonInstance) (result *v1alpha1.AddonInstance, err error)

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

func (*FakeAddonInstances) UpdateStatus

func (c *FakeAddonInstances) UpdateStatus(addonInstance *v1alpha1.AddonInstance) (*v1alpha1.AddonInstance, error)

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

func (*FakeAddonInstances) Watch

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

type FakeAddonManifests

type FakeAddonManifests struct {
	Fake *FakeGardenV1alpha1
	// contains filtered or unexported fields
}

FakeAddonManifests implements AddonManifestInterface

func (*FakeAddonManifests) Create

func (c *FakeAddonManifests) Create(addonManifest *v1alpha1.AddonManifest) (result *v1alpha1.AddonManifest, err error)

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

func (*FakeAddonManifests) Delete

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

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

func (*FakeAddonManifests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAddonManifests) Get

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

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

func (*FakeAddonManifests) List

func (c *FakeAddonManifests) List(opts v1.ListOptions) (result *v1alpha1.AddonManifestList, err error)

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

func (*FakeAddonManifests) Patch

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

Patch applies the patch and returns the patched addonManifest.

func (*FakeAddonManifests) Update

func (c *FakeAddonManifests) Update(addonManifest *v1alpha1.AddonManifest) (result *v1alpha1.AddonManifest, err error)

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

func (*FakeAddonManifests) Watch

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

type FakeGardenV1alpha1

type FakeGardenV1alpha1 struct {
	*testing.Fake
}

func (*FakeGardenV1alpha1) AddonInstances

func (c *FakeGardenV1alpha1) AddonInstances(namespace string) v1alpha1.AddonInstanceInterface

func (*FakeGardenV1alpha1) AddonManifests

func (c *FakeGardenV1alpha1) AddonManifests(namespace string) v1alpha1.AddonManifestInterface

func (*FakeGardenV1alpha1) RESTClient

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