fake

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 4

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 FakeCiliumClusterwideNetworkPolicies

type FakeCiliumClusterwideNetworkPolicies struct {
	Fake *FakeCiliumV2
}

FakeCiliumClusterwideNetworkPolicies implements CiliumClusterwideNetworkPolicyInterface

func (*FakeCiliumClusterwideNetworkPolicies) Create

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

func (*FakeCiliumClusterwideNetworkPolicies) Delete

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

func (*FakeCiliumClusterwideNetworkPolicies) DeleteCollection

func (c *FakeCiliumClusterwideNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCiliumClusterwideNetworkPolicies) Get

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

func (*FakeCiliumClusterwideNetworkPolicies) List

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

func (*FakeCiliumClusterwideNetworkPolicies) Patch

func (c *FakeCiliumClusterwideNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumClusterwideNetworkPolicy, err error)

Patch applies the patch and returns the patched ciliumClusterwideNetworkPolicy.

func (*FakeCiliumClusterwideNetworkPolicies) Update

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

func (*FakeCiliumClusterwideNetworkPolicies) UpdateStatus

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

func (*FakeCiliumClusterwideNetworkPolicies) Watch

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

type FakeCiliumEndpoints

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

FakeCiliumEndpoints implements CiliumEndpointInterface

func (*FakeCiliumEndpoints) Create

func (c *FakeCiliumEndpoints) Create(ctx context.Context, ciliumEndpoint *v2.CiliumEndpoint, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCiliumEndpoints) Get

func (c *FakeCiliumEndpoints) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumEndpoint, err error)

Patch applies the patch and returns the patched ciliumEndpoint.

func (*FakeCiliumEndpoints) Update

func (c *FakeCiliumEndpoints) Update(ctx context.Context, ciliumEndpoint *v2.CiliumEndpoint, opts v1.UpdateOptions) (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(ctx context.Context, ciliumEndpoint *v2.CiliumEndpoint, opts v1.UpdateOptions) (*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

type FakeCiliumIdentities struct {
	Fake *FakeCiliumV2
}

FakeCiliumIdentities implements CiliumIdentityInterface

func (*FakeCiliumIdentities) Create

func (c *FakeCiliumIdentities) Create(ctx context.Context, ciliumIdentity *v2.CiliumIdentity, opts v1.CreateOptions) (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

func (c *FakeCiliumIdentities) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeCiliumIdentities) DeleteCollection

func (c *FakeCiliumIdentities) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCiliumIdentities) Get

func (c *FakeCiliumIdentities) Get(ctx context.Context, 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

func (c *FakeCiliumIdentities) List(ctx context.Context, 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

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

Patch applies the patch and returns the patched ciliumIdentity.

func (*FakeCiliumIdentities) Update

func (c *FakeCiliumIdentities) Update(ctx context.Context, ciliumIdentity *v2.CiliumIdentity, opts v1.UpdateOptions) (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(ctx context.Context, ciliumIdentity *v2.CiliumIdentity, opts v1.UpdateOptions) (*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

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(ctx context.Context, ciliumNetworkPolicy *v2.CiliumNetworkPolicy, opts v1.CreateOptions) (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

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

func (*FakeCiliumNetworkPolicies) DeleteCollection

func (c *FakeCiliumNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCiliumNetworkPolicies) Get

func (c *FakeCiliumNetworkPolicies) Get(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumNetworkPolicy, err error)

Patch applies the patch and returns the patched ciliumNetworkPolicy.

func (*FakeCiliumNetworkPolicies) Update

func (c *FakeCiliumNetworkPolicies) Update(ctx context.Context, ciliumNetworkPolicy *v2.CiliumNetworkPolicy, opts v1.UpdateOptions) (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(ctx context.Context, ciliumNetworkPolicy *v2.CiliumNetworkPolicy, opts v1.UpdateOptions) (*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

type FakeCiliumNodes struct {
	Fake *FakeCiliumV2
}

FakeCiliumNodes implements CiliumNodeInterface

func (*FakeCiliumNodes) Create

func (c *FakeCiliumNodes) Create(ctx context.Context, ciliumNode *v2.CiliumNode, opts v1.CreateOptions) (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

func (c *FakeCiliumNodes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeCiliumNodes) DeleteCollection

func (c *FakeCiliumNodes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCiliumNodes) Get

func (c *FakeCiliumNodes) Get(ctx context.Context, 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

func (c *FakeCiliumNodes) List(ctx context.Context, 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

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

Patch applies the patch and returns the patched ciliumNode.

func (*FakeCiliumNodes) Update

func (c *FakeCiliumNodes) Update(ctx context.Context, ciliumNode *v2.CiliumNode, opts v1.UpdateOptions) (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

func (c *FakeCiliumNodes) UpdateStatus(ctx context.Context, ciliumNode *v2.CiliumNode, opts v1.UpdateOptions) (*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

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

type FakeCiliumV2

type FakeCiliumV2 struct {
	*testing.Fake
}

func (*FakeCiliumV2) CiliumClusterwideNetworkPolicies

func (c *FakeCiliumV2) CiliumClusterwideNetworkPolicies() v2.CiliumClusterwideNetworkPolicyInterface

func (*FakeCiliumV2) CiliumEndpoints

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

func (*FakeCiliumV2) CiliumIdentities

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

func (*FakeCiliumV2) CiliumNetworkPolicies

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

func (*FakeCiliumV2) CiliumNodes

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