fake

package
v0.0.0-...-1c6c245 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 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 FakeConfigs

type FakeConfigs struct {
	Fake *FakeImageregistryV1
}

FakeConfigs implements ConfigInterface

func (*FakeConfigs) Create

func (c *FakeConfigs) Create(config *imageregistryv1.Config) (result *imageregistryv1.Config, err error)

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

func (*FakeConfigs) Delete

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

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

func (*FakeConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConfigs) Get

func (c *FakeConfigs) Get(name string, options v1.GetOptions) (result *imageregistryv1.Config, err error)

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

func (*FakeConfigs) List

func (c *FakeConfigs) List(opts v1.ListOptions) (result *imageregistryv1.ConfigList, err error)

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

func (*FakeConfigs) Patch

func (c *FakeConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *imageregistryv1.Config, err error)

Patch applies the patch and returns the patched config.

func (*FakeConfigs) Update

func (c *FakeConfigs) Update(config *imageregistryv1.Config) (result *imageregistryv1.Config, err error)

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

func (*FakeConfigs) UpdateStatus

func (c *FakeConfigs) UpdateStatus(config *imageregistryv1.Config) (*imageregistryv1.Config, error)

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

func (*FakeConfigs) Watch

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

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

type FakeImageregistryV1

type FakeImageregistryV1 struct {
	*testing.Fake
}

func (*FakeImageregistryV1) Configs

func (c *FakeImageregistryV1) Configs() v1.ConfigInterface

func (*FakeImageregistryV1) RESTClient

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