fake

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 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 FakeCompositionV1

type FakeCompositionV1 struct {
	*testing.Fake
}

func (*FakeCompositionV1) RESTClient

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

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

func (*FakeCompositionV1) ServiceDescriptors

func (c *FakeCompositionV1) ServiceDescriptors() v1.ServiceDescriptorInterface

type FakeServiceDescriptors

type FakeServiceDescriptors struct {
	Fake *FakeCompositionV1
}

FakeServiceDescriptors implements ServiceDescriptorInterface

func (*FakeServiceDescriptors) Create

func (c *FakeServiceDescriptors) Create(serviceDescriptor *compositionv1.ServiceDescriptor) (result *compositionv1.ServiceDescriptor, err error)

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

func (*FakeServiceDescriptors) Delete

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

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

func (*FakeServiceDescriptors) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceDescriptors) Get

func (c *FakeServiceDescriptors) Get(name string, options v1.GetOptions) (result *compositionv1.ServiceDescriptor, err error)

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

func (*FakeServiceDescriptors) List

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

func (*FakeServiceDescriptors) Patch

func (c *FakeServiceDescriptors) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *compositionv1.ServiceDescriptor, err error)

Patch applies the patch and returns the patched serviceDescriptor.

func (*FakeServiceDescriptors) Update

func (c *FakeServiceDescriptors) Update(serviceDescriptor *compositionv1.ServiceDescriptor) (result *compositionv1.ServiceDescriptor, err error)

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

func (*FakeServiceDescriptors) Watch

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

Jump to

Keyboard shortcuts

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