fake

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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 FakeCoreV1

type FakeCoreV1 struct {
	*core.Fake
}

func (*FakeCoreV1) Policies

func (c *FakeCoreV1) Policies(namespace string) v1.PolicyInterface

func (*FakeCoreV1) RESTClient

func (c *FakeCoreV1) RESTClient() restclient.Interface

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

type FakePolicies

type FakePolicies struct {
	Fake *FakeCoreV1
	// contains filtered or unexported fields
}

FakePolicies implements PolicyInterface

func (*FakePolicies) Create

func (c *FakePolicies) Create(policy *v1.Policy) (result *v1.Policy, err error)

func (*FakePolicies) Delete

func (c *FakePolicies) Delete(name string, options *api_v1.DeleteOptions) error

func (*FakePolicies) DeleteCollection

func (c *FakePolicies) DeleteCollection(options *api_v1.DeleteOptions, listOptions api_v1.ListOptions) error

func (*FakePolicies) Get

func (c *FakePolicies) Get(name string) (result *v1.Policy, err error)

func (*FakePolicies) List

func (c *FakePolicies) List(opts api_v1.ListOptions) (result *v1.PolicyList, err error)

func (*FakePolicies) Patch

func (c *FakePolicies) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Policy, err error)

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update

func (c *FakePolicies) Update(policy *v1.Policy) (result *v1.Policy, err error)

func (*FakePolicies) Watch

func (c *FakePolicies) Watch(opts api_v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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