fake

package
v7.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 29, 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 FakeClusterLabels

type FakeClusterLabels struct {
	Fake *FakeContainershipV3
	// contains filtered or unexported fields
}

FakeClusterLabels implements ClusterLabelInterface

func (*FakeClusterLabels) Create

func (c *FakeClusterLabels) Create(clusterLabel *v3.ClusterLabel) (result *v3.ClusterLabel, err error)

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

func (*FakeClusterLabels) Delete

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

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

func (*FakeClusterLabels) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterLabels) Get

func (c *FakeClusterLabels) Get(name string, options v1.GetOptions) (result *v3.ClusterLabel, err error)

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

func (*FakeClusterLabels) List

func (c *FakeClusterLabels) List(opts v1.ListOptions) (result *v3.ClusterLabelList, err error)

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

func (*FakeClusterLabels) Patch

func (c *FakeClusterLabels) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v3.ClusterLabel, err error)

Patch applies the patch and returns the patched clusterLabel.

func (*FakeClusterLabels) Update

func (c *FakeClusterLabels) Update(clusterLabel *v3.ClusterLabel) (result *v3.ClusterLabel, err error)

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

func (*FakeClusterLabels) Watch

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

type FakeContainershipV3

type FakeContainershipV3 struct {
	*testing.Fake
}

func (*FakeContainershipV3) ClusterLabels

func (c *FakeContainershipV3) ClusterLabels(namespace string) v3.ClusterLabelInterface

func (*FakeContainershipV3) Plugins

func (c *FakeContainershipV3) Plugins(namespace string) v3.PluginInterface

func (*FakeContainershipV3) RESTClient

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

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

func (*FakeContainershipV3) Registries

func (c *FakeContainershipV3) Registries(namespace string) v3.RegistryInterface

func (*FakeContainershipV3) Users

func (c *FakeContainershipV3) Users(namespace string) v3.UserInterface

type FakePlugins

type FakePlugins struct {
	Fake *FakeContainershipV3
	// contains filtered or unexported fields
}

FakePlugins implements PluginInterface

func (*FakePlugins) Create

func (c *FakePlugins) Create(plugin *v3.Plugin) (result *v3.Plugin, err error)

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

func (*FakePlugins) Delete

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

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

func (*FakePlugins) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePlugins) Get

func (c *FakePlugins) Get(name string, options v1.GetOptions) (result *v3.Plugin, err error)

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

func (*FakePlugins) List

func (c *FakePlugins) List(opts v1.ListOptions) (result *v3.PluginList, err error)

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

func (*FakePlugins) Patch

func (c *FakePlugins) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v3.Plugin, err error)

Patch applies the patch and returns the patched plugin.

func (*FakePlugins) Update

func (c *FakePlugins) Update(plugin *v3.Plugin) (result *v3.Plugin, err error)

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

func (*FakePlugins) Watch

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

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

type FakeRegistries

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

FakeRegistries implements RegistryInterface

func (*FakeRegistries) Create

func (c *FakeRegistries) Create(registry *v3.Registry) (result *v3.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(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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRegistries) Get

func (c *FakeRegistries) Get(name string, options v1.GetOptions) (result *v3.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(opts v1.ListOptions) (result *v3.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v3.Registry, err error)

Patch applies the patch and returns the patched registry.

func (*FakeRegistries) Update

func (c *FakeRegistries) Update(registry *v3.Registry) (result *v3.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) Watch

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

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

type FakeUsers

type FakeUsers struct {
	Fake *FakeContainershipV3
	// contains filtered or unexported fields
}

FakeUsers implements UserInterface

func (*FakeUsers) Create

func (c *FakeUsers) Create(user *v3.User) (result *v3.User, err error)

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

func (*FakeUsers) Delete

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

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

func (*FakeUsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUsers) Get

func (c *FakeUsers) Get(name string, options v1.GetOptions) (result *v3.User, err error)

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

func (*FakeUsers) List

func (c *FakeUsers) List(opts v1.ListOptions) (result *v3.UserList, err error)

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

func (*FakeUsers) Patch

func (c *FakeUsers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v3.User, err error)

Patch applies the patch and returns the patched user.

func (*FakeUsers) Update

func (c *FakeUsers) Update(user *v3.User) (result *v3.User, err error)

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

func (*FakeUsers) Watch

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

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

Jump to

Keyboard shortcuts

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