fake

package
v0.0.0-...-e1628ab Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 10 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 FakeEndpoints

type FakeEndpoints struct {
	Fake *FakeSecurityV1alpha1
	// contains filtered or unexported fields
}

FakeEndpoints implements EndpointInterface

func (*FakeEndpoints) Create

func (c *FakeEndpoints) Create(ctx context.Context, endpoint *v1alpha1.Endpoint, opts v1.CreateOptions) (result *v1alpha1.Endpoint, err error)

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

func (*FakeEndpoints) Delete

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

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

func (*FakeEndpoints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEndpoints) Get

func (c *FakeEndpoints) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Endpoint, err error)

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

func (*FakeEndpoints) List

func (c *FakeEndpoints) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EndpointList, err error)

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

func (*FakeEndpoints) Patch

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

Patch applies the patch and returns the patched endpoint.

func (*FakeEndpoints) Update

func (c *FakeEndpoints) Update(ctx context.Context, endpoint *v1alpha1.Endpoint, opts v1.UpdateOptions) (result *v1alpha1.Endpoint, err error)

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

func (*FakeEndpoints) UpdateStatus

func (c *FakeEndpoints) UpdateStatus(ctx context.Context, endpoint *v1alpha1.Endpoint, opts v1.UpdateOptions) (*v1alpha1.Endpoint, error)

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

func (*FakeEndpoints) Watch

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

type FakeGlobalPolicies

type FakeGlobalPolicies struct {
	Fake *FakeSecurityV1alpha1
}

FakeGlobalPolicies implements GlobalPolicyInterface

func (*FakeGlobalPolicies) Create

func (c *FakeGlobalPolicies) Create(ctx context.Context, globalPolicy *v1alpha1.GlobalPolicy, opts v1.CreateOptions) (result *v1alpha1.GlobalPolicy, err error)

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

func (*FakeGlobalPolicies) Delete

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

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

func (*FakeGlobalPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGlobalPolicies) Get

func (c *FakeGlobalPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.GlobalPolicy, err error)

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

func (*FakeGlobalPolicies) List

func (c *FakeGlobalPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.GlobalPolicyList, err error)

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

func (*FakeGlobalPolicies) Patch

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

Patch applies the patch and returns the patched globalPolicy.

func (*FakeGlobalPolicies) Update

func (c *FakeGlobalPolicies) Update(ctx context.Context, globalPolicy *v1alpha1.GlobalPolicy, opts v1.UpdateOptions) (result *v1alpha1.GlobalPolicy, err error)

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

func (*FakeGlobalPolicies) Watch

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

type FakeSecurityPolicies

type FakeSecurityPolicies struct {
	Fake *FakeSecurityV1alpha1
	// contains filtered or unexported fields
}

FakeSecurityPolicies implements SecurityPolicyInterface

func (*FakeSecurityPolicies) Create

func (c *FakeSecurityPolicies) Create(ctx context.Context, securityPolicy *v1alpha1.SecurityPolicy, opts v1.CreateOptions) (result *v1alpha1.SecurityPolicy, err error)

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

func (*FakeSecurityPolicies) Delete

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

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

func (*FakeSecurityPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSecurityPolicies) Get

func (c *FakeSecurityPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SecurityPolicy, err error)

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

func (*FakeSecurityPolicies) List

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

func (*FakeSecurityPolicies) Patch

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

Patch applies the patch and returns the patched securityPolicy.

func (*FakeSecurityPolicies) Update

func (c *FakeSecurityPolicies) Update(ctx context.Context, securityPolicy *v1alpha1.SecurityPolicy, opts v1.UpdateOptions) (result *v1alpha1.SecurityPolicy, err error)

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

func (*FakeSecurityPolicies) Watch

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

type FakeSecurityV1alpha1

type FakeSecurityV1alpha1 struct {
	*testing.Fake
}

func (*FakeSecurityV1alpha1) Endpoints

func (c *FakeSecurityV1alpha1) Endpoints(namespace string) v1alpha1.EndpointInterface

func (*FakeSecurityV1alpha1) GlobalPolicies

func (*FakeSecurityV1alpha1) RESTClient

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

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

func (*FakeSecurityV1alpha1) SecurityPolicies

func (c *FakeSecurityV1alpha1) SecurityPolicies(namespace string) v1alpha1.SecurityPolicyInterface

Jump to

Keyboard shortcuts

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