fake

package
v0.0.0-...-662d0f3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 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 FakeCanaries

type FakeCanaries struct {
	Fake *FakeFlaggerV1alpha3
	// contains filtered or unexported fields
}

FakeCanaries implements CanaryInterface

func (*FakeCanaries) Create

func (c *FakeCanaries) Create(canary *v1alpha3.Canary) (result *v1alpha3.Canary, err error)

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

func (*FakeCanaries) Delete

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

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

func (*FakeCanaries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCanaries) Get

func (c *FakeCanaries) Get(name string, options v1.GetOptions) (result *v1alpha3.Canary, err error)

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

func (*FakeCanaries) List

func (c *FakeCanaries) List(opts v1.ListOptions) (result *v1alpha3.CanaryList, err error)

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

func (*FakeCanaries) Patch

func (c *FakeCanaries) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha3.Canary, err error)

Patch applies the patch and returns the patched canary.

func (*FakeCanaries) Update

func (c *FakeCanaries) Update(canary *v1alpha3.Canary) (result *v1alpha3.Canary, err error)

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

func (*FakeCanaries) UpdateStatus

func (c *FakeCanaries) UpdateStatus(canary *v1alpha3.Canary) (*v1alpha3.Canary, error)

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

func (*FakeCanaries) Watch

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

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

type FakeFlaggerV1alpha3

type FakeFlaggerV1alpha3 struct {
	*testing.Fake
}

func (*FakeFlaggerV1alpha3) Canaries

func (c *FakeFlaggerV1alpha3) Canaries(namespace string) v1alpha3.CanaryInterface

func (*FakeFlaggerV1alpha3) RESTClient

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