fake

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 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 FakeCVOConfigs

type FakeCVOConfigs struct {
	Fake *FakeClusterversionV1
	// contains filtered or unexported fields
}

FakeCVOConfigs implements CVOConfigInterface

func (*FakeCVOConfigs) Create

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

func (*FakeCVOConfigs) Delete

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

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

func (*FakeCVOConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCVOConfigs) Get

func (c *FakeCVOConfigs) Get(name string, options v1.GetOptions) (result *clusterversionopenshiftiov1.CVOConfig, err error)

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

func (*FakeCVOConfigs) List

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

func (*FakeCVOConfigs) Patch

func (c *FakeCVOConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *clusterversionopenshiftiov1.CVOConfig, err error)

Patch applies the patch and returns the patched cVOConfig.

func (*FakeCVOConfigs) Update

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

func (*FakeCVOConfigs) Watch

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

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

type FakeClusterversionV1

type FakeClusterversionV1 struct {
	*testing.Fake
}

func (*FakeClusterversionV1) CVOConfigs

func (c *FakeClusterversionV1) CVOConfigs(namespace string) v1.CVOConfigInterface

func (*FakeClusterversionV1) RESTClient

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