fake

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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 FakeBundles

type FakeBundles struct {
	Fake *FakeSmithV1
	// contains filtered or unexported fields
}

FakeBundles implements BundleInterface

func (*FakeBundles) Create

func (c *FakeBundles) Create(bundle *smithv1.Bundle) (result *smithv1.Bundle, err error)

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

func (*FakeBundles) Delete

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

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

func (*FakeBundles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBundles) Get

func (c *FakeBundles) Get(name string, options v1.GetOptions) (result *smithv1.Bundle, err error)

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

func (*FakeBundles) List

func (c *FakeBundles) List(opts v1.ListOptions) (result *smithv1.BundleList, err error)

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

func (*FakeBundles) Patch

func (c *FakeBundles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *smithv1.Bundle, err error)

Patch applies the patch and returns the patched bundle.

func (*FakeBundles) Update

func (c *FakeBundles) Update(bundle *smithv1.Bundle) (result *smithv1.Bundle, err error)

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

func (*FakeBundles) UpdateStatus

func (c *FakeBundles) UpdateStatus(bundle *smithv1.Bundle) (*smithv1.Bundle, error)

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

func (*FakeBundles) Watch

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

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

type FakeSmithV1

type FakeSmithV1 struct {
	*testing.Fake
}

func (*FakeSmithV1) Bundles

func (c *FakeSmithV1) Bundles(namespace string) v1.BundleInterface

func (*FakeSmithV1) RESTClient

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