fake

package
Version: v3.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2017 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 FakeUserV1

type FakeUserV1 struct {
	*testing.Fake
}

func (*FakeUserV1) RESTClient

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

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

func (*FakeUserV1) Users

func (c *FakeUserV1) Users(namespace string) v1.UserResourceInterface

type FakeUsers

type FakeUsers struct {
	Fake *FakeUserV1
	// contains filtered or unexported fields
}

FakeUsers implements UserResourceInterface

func (*FakeUsers) Create

func (c *FakeUsers) Create(userResource *v1.User) (result *v1.User, err error)

func (*FakeUsers) Delete

func (c *FakeUsers) Delete(name string, options *meta_v1.DeleteOptions) error

func (*FakeUsers) DeleteCollection

func (c *FakeUsers) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (*FakeUsers) Get

func (c *FakeUsers) Get(name string, options meta_v1.GetOptions) (result *v1.User, err error)

func (*FakeUsers) List

func (c *FakeUsers) List(opts meta_v1.ListOptions) (result *v1.UserList, err error)

func (*FakeUsers) Patch

func (c *FakeUsers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.User, err error)

Patch applies the patch and returns the patched userResource.

func (*FakeUsers) Update

func (c *FakeUsers) Update(userResource *v1.User) (result *v1.User, err error)

func (*FakeUsers) Watch

func (c *FakeUsers) Watch(opts meta_v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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