v0.0.0-...-8958888 Latest Latest

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 9 Imported by: 0



Package fake has the automatically generated clients.



This section is empty.


This section is empty.


This section is empty.


type FakeCanaries

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

FakeCanaries implements CanaryInterface

func (*FakeCanaries) Create

func (c *FakeCanaries) Create(canary *canaryv1.Canary) (result *canaryv1.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 *canaryv1.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 *canaryv1.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 *canaryv1.Canary, err error)

Patch applies the patch and returns the patched canary.

func (*FakeCanaries) Update

func (c *FakeCanaries) Update(canary *canaryv1.Canary) (result *canaryv1.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 *canaryv1.Canary) (*canaryv1.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 FakeCanaryV1

type FakeCanaryV1 struct {

func (*FakeCanaryV1) Canaries

func (c *FakeCanaryV1) Canaries(namespace string) v1.CanaryInterface

func (*FakeCanaryV1) RESTClient

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