fake

package
v1.6.12 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 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 FakeCiliumEndpoints

type FakeCiliumEndpoints struct {
	Fake *FakeCiliumV2
	// contains filtered or unexported fields
}

FakeCiliumEndpoints implements CiliumEndpointInterface

func (*FakeCiliumEndpoints) Create

func (c *FakeCiliumEndpoints) Create(ciliumEndpoint *v2.CiliumEndpoint) (result *v2.CiliumEndpoint, err error)

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

func (*FakeCiliumEndpoints) Delete

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

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

func (*FakeCiliumEndpoints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCiliumEndpoints) Get

func (c *FakeCiliumEndpoints) Get(name string, options v1.GetOptions) (result *v2.CiliumEndpoint, err error)

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

func (*FakeCiliumEndpoints) List

func (c *FakeCiliumEndpoints) List(opts v1.ListOptions) (result *v2.CiliumEndpointList, err error)

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

func (*FakeCiliumEndpoints) Patch

func (c *FakeCiliumEndpoints) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2.CiliumEndpoint, err error)

Patch applies the patch and returns the patched ciliumEndpoint.

func (*FakeCiliumEndpoints) Update

func (c *FakeCiliumEndpoints) Update(ciliumEndpoint *v2.CiliumEndpoint) (result *v2.CiliumEndpoint, err error)

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

func (*FakeCiliumEndpoints) UpdateStatus

func (c *FakeCiliumEndpoints) UpdateStatus(ciliumEndpoint *v2.CiliumEndpoint) (*v2.CiliumEndpoint, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeCiliumEndpoints) Watch

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

type FakeCiliumIdentities added in v1.6.0

type FakeCiliumIdentities struct {
	Fake *FakeCiliumV2
}

FakeCiliumIdentities implements CiliumIdentityInterface

func (*FakeCiliumIdentities) Create added in v1.6.0

func (c *FakeCiliumIdentities) Create(ciliumIdentity *v2.CiliumIdentity) (result *v2.CiliumIdentity, err error)

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

func (*FakeCiliumIdentities) Delete added in v1.6.0

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

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

func (*FakeCiliumIdentities) DeleteCollection added in v1.6.0

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

DeleteCollection deletes a collection of objects.

func (*FakeCiliumIdentities) Get added in v1.6.0

func (c *FakeCiliumIdentities) Get(name string, options v1.GetOptions) (result *v2.CiliumIdentity, err error)

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

func (*FakeCiliumIdentities) List added in v1.6.0

func (c *FakeCiliumIdentities) List(opts v1.ListOptions) (result *v2.CiliumIdentityList, err error)

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

func (*FakeCiliumIdentities) Patch added in v1.6.0

func (c *FakeCiliumIdentities) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2.CiliumIdentity, err error)

Patch applies the patch and returns the patched ciliumIdentity.

func (*FakeCiliumIdentities) Update added in v1.6.0

func (c *FakeCiliumIdentities) Update(ciliumIdentity *v2.CiliumIdentity) (result *v2.CiliumIdentity, err error)

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

func (*FakeCiliumIdentities) UpdateStatus added in v1.6.0

func (c *FakeCiliumIdentities) UpdateStatus(ciliumIdentity *v2.CiliumIdentity) (*v2.CiliumIdentity, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeCiliumIdentities) Watch added in v1.6.0

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

type FakeCiliumNetworkPolicies

type FakeCiliumNetworkPolicies struct {
	Fake *FakeCiliumV2
	// contains filtered or unexported fields
}

FakeCiliumNetworkPolicies implements CiliumNetworkPolicyInterface

func (*FakeCiliumNetworkPolicies) Create

func (c *FakeCiliumNetworkPolicies) Create(ciliumNetworkPolicy *v2.CiliumNetworkPolicy) (result *v2.CiliumNetworkPolicy, err error)

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

func (*FakeCiliumNetworkPolicies) Delete

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

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

func (*FakeCiliumNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCiliumNetworkPolicies) Get

func (c *FakeCiliumNetworkPolicies) Get(name string, options v1.GetOptions) (result *v2.CiliumNetworkPolicy, err error)

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

func (*FakeCiliumNetworkPolicies) List

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

func (*FakeCiliumNetworkPolicies) Patch

func (c *FakeCiliumNetworkPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2.CiliumNetworkPolicy, err error)

Patch applies the patch and returns the patched ciliumNetworkPolicy.

func (*FakeCiliumNetworkPolicies) Update

func (c *FakeCiliumNetworkPolicies) Update(ciliumNetworkPolicy *v2.CiliumNetworkPolicy) (result *v2.CiliumNetworkPolicy, err error)

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

func (*FakeCiliumNetworkPolicies) UpdateStatus

func (c *FakeCiliumNetworkPolicies) UpdateStatus(ciliumNetworkPolicy *v2.CiliumNetworkPolicy) (*v2.CiliumNetworkPolicy, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeCiliumNetworkPolicies) Watch

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

type FakeCiliumNodes added in v1.6.0

type FakeCiliumNodes struct {
	Fake *FakeCiliumV2
}

FakeCiliumNodes implements CiliumNodeInterface

func (*FakeCiliumNodes) Create added in v1.6.0

func (c *FakeCiliumNodes) Create(ciliumNode *v2.CiliumNode) (result *v2.CiliumNode, err error)

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

func (*FakeCiliumNodes) Delete added in v1.6.0

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

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

func (*FakeCiliumNodes) DeleteCollection added in v1.6.0

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

DeleteCollection deletes a collection of objects.

func (*FakeCiliumNodes) Get added in v1.6.0

func (c *FakeCiliumNodes) Get(name string, options v1.GetOptions) (result *v2.CiliumNode, err error)

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

func (*FakeCiliumNodes) List added in v1.6.0

func (c *FakeCiliumNodes) List(opts v1.ListOptions) (result *v2.CiliumNodeList, err error)

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

func (*FakeCiliumNodes) Patch added in v1.6.0

func (c *FakeCiliumNodes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2.CiliumNode, err error)

Patch applies the patch and returns the patched ciliumNode.

func (*FakeCiliumNodes) Update added in v1.6.0

func (c *FakeCiliumNodes) Update(ciliumNode *v2.CiliumNode) (result *v2.CiliumNode, err error)

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

func (*FakeCiliumNodes) UpdateStatus added in v1.6.0

func (c *FakeCiliumNodes) UpdateStatus(ciliumNode *v2.CiliumNode) (*v2.CiliumNode, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeCiliumNodes) Watch added in v1.6.0

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

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

type FakeCiliumV2

type FakeCiliumV2 struct {
	*testing.Fake
}

func (*FakeCiliumV2) CiliumEndpoints

func (c *FakeCiliumV2) CiliumEndpoints(namespace string) v2.CiliumEndpointInterface

func (*FakeCiliumV2) CiliumIdentities added in v1.6.0

func (c *FakeCiliumV2) CiliumIdentities() v2.CiliumIdentityInterface

func (*FakeCiliumV2) CiliumNetworkPolicies

func (c *FakeCiliumV2) CiliumNetworkPolicies(namespace string) v2.CiliumNetworkPolicyInterface

func (*FakeCiliumV2) CiliumNodes added in v1.6.0

func (c *FakeCiliumV2) CiliumNodes() v2.CiliumNodeInterface

func (*FakeCiliumV2) RESTClient

func (c *FakeCiliumV2) 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