fake

package
v1.8.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: Apache-2.0, 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 FakeNetworkPolicies

type FakeNetworkPolicies struct {
	Fake *FakeNetworkingV1
	// contains filtered or unexported fields
}

FakeNetworkPolicies implements NetworkPolicyInterface

func (*FakeNetworkPolicies) Create

func (c *FakeNetworkPolicies) Create(networkPolicy *v1.NetworkPolicy) (result *v1.NetworkPolicy, err error)

func (*FakeNetworkPolicies) Delete

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

func (*FakeNetworkPolicies) DeleteCollection

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

func (*FakeNetworkPolicies) Get

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

func (*FakeNetworkPolicies) List

func (c *FakeNetworkPolicies) List(opts meta_v1.ListOptions) (result *v1.NetworkPolicyList, err error)

func (*FakeNetworkPolicies) Patch

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

Patch applies the patch and returns the patched networkPolicy.

func (*FakeNetworkPolicies) Update

func (c *FakeNetworkPolicies) Update(networkPolicy *v1.NetworkPolicy) (result *v1.NetworkPolicy, err error)

func (*FakeNetworkPolicies) Watch

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

type FakeNetworkingV1

type FakeNetworkingV1 struct {
	*testing.Fake
}

func (*FakeNetworkingV1) NetworkPolicies

func (c *FakeNetworkingV1) NetworkPolicies(namespace string) v1.NetworkPolicyInterface

func (*FakeNetworkingV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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