fake

package
v0.0.0-...-fa73266 Latest Latest
Warning

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

Go to latest
Published: Oct 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 FakeNimbessV1

type FakeNimbessV1 struct {
	*testing.Fake
}

func (*FakeNimbessV1) RESTClient

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

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

func (*FakeNimbessV1) UnifiedNetworkPolicies

func (c *FakeNimbessV1) UnifiedNetworkPolicies(namespace string) v1.UnifiedNetworkPolicyInterface

type FakeUnifiedNetworkPolicies

type FakeUnifiedNetworkPolicies struct {
	Fake *FakeNimbessV1
	// contains filtered or unexported fields
}

FakeUnifiedNetworkPolicies implements UnifiedNetworkPolicyInterface

func (*FakeUnifiedNetworkPolicies) Create

func (c *FakeUnifiedNetworkPolicies) Create(unifiedNetworkPolicy *unpv1.UnifiedNetworkPolicy) (result *unpv1.UnifiedNetworkPolicy, err error)

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

func (*FakeUnifiedNetworkPolicies) Delete

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

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

func (*FakeUnifiedNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUnifiedNetworkPolicies) Get

func (c *FakeUnifiedNetworkPolicies) Get(name string, options v1.GetOptions) (result *unpv1.UnifiedNetworkPolicy, err error)

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

func (*FakeUnifiedNetworkPolicies) List

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

func (*FakeUnifiedNetworkPolicies) Patch

func (c *FakeUnifiedNetworkPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *unpv1.UnifiedNetworkPolicy, err error)

Patch applies the patch and returns the patched unifiedNetworkPolicy.

func (*FakeUnifiedNetworkPolicies) Update

func (c *FakeUnifiedNetworkPolicies) Update(unifiedNetworkPolicy *unpv1.UnifiedNetworkPolicy) (result *unpv1.UnifiedNetworkPolicy, err error)

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

func (*FakeUnifiedNetworkPolicies) Watch

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

type FakeUnpConfigs

type FakeUnpConfigs struct {
	Fake *FakeNimbessV1
	// contains filtered or unexported fields
}

FakeUnpConfigs implements UnpConfigInterface

func (*FakeUnpConfigs) Create

func (c *FakeUnpConfigs) Create(unpConfig *unpv1.UnpConfig) (result *unpv1.UnpConfig, err error)

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

func (*FakeUnpConfigs) Delete

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

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

func (*FakeUnpConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUnpConfigs) Get

func (c *FakeUnpConfigs) Get(name string, options v1.GetOptions) (result *unpv1.UnpConfig, err error)

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

func (*FakeUnpConfigs) List

func (c *FakeUnpConfigs) List(opts v1.ListOptions) (result *unpv1.UnpConfigList, err error)

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

func (*FakeUnpConfigs) Patch

func (c *FakeUnpConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *unpv1.UnpConfig, err error)

Patch applies the patch and returns the patched unpConfig.

func (*FakeUnpConfigs) Update

func (c *FakeUnpConfigs) Update(unpConfig *unpv1.UnpConfig) (result *unpv1.UnpConfig, err error)

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

func (*FakeUnpConfigs) Watch

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

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

Jump to

Keyboard shortcuts

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