fake

package
v0.0.0-...-e24fcb8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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 FakeOperatorV1alpha1

type FakeOperatorV1alpha1 struct {
	*testing.Fake
}

func (*FakeOperatorV1alpha1) PrestoClusters

func (c *FakeOperatorV1alpha1) PrestoClusters(namespace string) v1alpha1.PrestoClusterInterface

func (*FakeOperatorV1alpha1) RESTClient

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

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

type FakePrestoClusters

type FakePrestoClusters struct {
	Fake *FakeOperatorV1alpha1
	// contains filtered or unexported fields
}

FakePrestoClusters implements PrestoClusterInterface

func (*FakePrestoClusters) Create

func (c *FakePrestoClusters) Create(prestoCluster *v1alpha1.PrestoCluster) (result *v1alpha1.PrestoCluster, err error)

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

func (*FakePrestoClusters) Delete

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

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

func (*FakePrestoClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePrestoClusters) Get

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

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

func (*FakePrestoClusters) List

func (c *FakePrestoClusters) List(opts v1.ListOptions) (result *v1alpha1.PrestoClusterList, err error)

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

func (*FakePrestoClusters) Patch

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

Patch applies the patch and returns the patched prestoCluster.

func (*FakePrestoClusters) Update

func (c *FakePrestoClusters) Update(prestoCluster *v1alpha1.PrestoCluster) (result *v1alpha1.PrestoCluster, err error)

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

func (*FakePrestoClusters) Watch

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

Jump to

Keyboard shortcuts

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