fake

package
v0.0.0-...-656879a Latest Latest
Warning

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

Go to latest
Published: Oct 4, 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 FakeMyprojectV1alpha1

type FakeMyprojectV1alpha1 struct {
	*testing.Fake
}

func (*FakeMyprojectV1alpha1) RESTClient

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

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

func (*FakeMyprojectV1alpha1) Samples

func (c *FakeMyprojectV1alpha1) Samples(namespace string) v1alpha1.SampleInterface

type FakeSamples

type FakeSamples struct {
	Fake *FakeMyprojectV1alpha1
	// contains filtered or unexported fields
}

FakeSamples implements SampleInterface

func (*FakeSamples) Create

func (c *FakeSamples) Create(sample *v1alpha1.Sample) (result *v1alpha1.Sample, err error)

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

func (*FakeSamples) Delete

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

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

func (*FakeSamples) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSamples) Get

func (c *FakeSamples) Get(name string, options v1.GetOptions) (result *v1alpha1.Sample, err error)

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

func (*FakeSamples) List

func (c *FakeSamples) List(opts v1.ListOptions) (result *v1alpha1.SampleList, err error)

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

func (*FakeSamples) Patch

func (c *FakeSamples) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Sample, err error)

Patch applies the patch and returns the patched sample.

func (*FakeSamples) Update

func (c *FakeSamples) Update(sample *v1alpha1.Sample) (result *v1alpha1.Sample, err error)

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

func (*FakeSamples) Watch

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

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

Jump to

Keyboard shortcuts

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