fake

package
v0.0.0-...-f346423 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: MIT Imports: 10 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 FakeKuberdonV1beta1

type FakeKuberdonV1beta1 struct {
	*testing.Fake
}

func (*FakeKuberdonV1beta1) RESTClient

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

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

func (*FakeKuberdonV1beta1) Registries

func (c *FakeKuberdonV1beta1) Registries(namespace string) v1beta1.RegistryInterface

type FakeRegistries

type FakeRegistries struct {
	Fake *FakeKuberdonV1beta1
	// contains filtered or unexported fields
}

FakeRegistries implements RegistryInterface

func (*FakeRegistries) Create

func (c *FakeRegistries) Create(ctx context.Context, registry *v1beta1.Registry, opts v1.CreateOptions) (result *v1beta1.Registry, err error)

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

func (*FakeRegistries) Delete

func (c *FakeRegistries) Delete(ctx context.Context, name string, options *v1.DeleteOptions) error

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

func (*FakeRegistries) DeleteCollection

func (c *FakeRegistries) DeleteCollection(ctx context.Context, options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRegistries) Get

func (c *FakeRegistries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Registry, err error)

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

func (*FakeRegistries) List

func (c *FakeRegistries) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.RegistryList, err error)

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

func (*FakeRegistries) Patch

func (c *FakeRegistries) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Registry, err error)

Patch applies the patch and returns the patched registry.

func (*FakeRegistries) Update

func (c *FakeRegistries) Update(ctx context.Context, registry *v1beta1.Registry, opts v1.UpdateOptions) (result *v1beta1.Registry, err error)

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

func (*FakeRegistries) UpdateStatus

func (c *FakeRegistries) UpdateStatus(ctx context.Context, registry *v1beta1.Registry, opts v1.UpdateOptions) (*v1beta1.Registry, error)

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

func (*FakeRegistries) Watch

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

Jump to

Keyboard shortcuts

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