fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 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 FakeReleaseV1alpha1

type FakeReleaseV1alpha1 struct {
	*testing.Fake
}

func (*FakeReleaseV1alpha1) RESTClient

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

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

func (*FakeReleaseV1alpha1) Releases

func (c *FakeReleaseV1alpha1) Releases(namespace string) v1alpha1.ReleaseInterface

type FakeReleases

type FakeReleases struct {
	Fake *FakeReleaseV1alpha1
	// contains filtered or unexported fields
}

FakeReleases implements ReleaseInterface

func (*FakeReleases) Create

func (c *FakeReleases) Create(release *v1alpha1.Release) (result *v1alpha1.Release, err error)

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

func (*FakeReleases) Delete

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

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

func (*FakeReleases) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeReleases) Get

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

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

func (*FakeReleases) List

func (c *FakeReleases) List(opts v1.ListOptions) (result *v1alpha1.ReleaseList, err error)

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

func (*FakeReleases) Patch

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

Patch applies the patch and returns the patched release.

func (*FakeReleases) Update

func (c *FakeReleases) Update(release *v1alpha1.Release) (result *v1alpha1.Release, err error)

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

func (*FakeReleases) Watch

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

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

Jump to

Keyboard shortcuts

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