fake

package
v1.12.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 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 FakeK8sV1

type FakeK8sV1 struct {
	*testing.Fake
}

func (*FakeK8sV1) Policies added in v1.10.0

func (c *FakeK8sV1) Policies(namespace string) v1.PolicyInterface

func (*FakeK8sV1) RESTClient

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

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

func (*FakeK8sV1) VirtualServerRoutes

func (c *FakeK8sV1) VirtualServerRoutes(namespace string) v1.VirtualServerRouteInterface

func (*FakeK8sV1) VirtualServers

func (c *FakeK8sV1) VirtualServers(namespace string) v1.VirtualServerInterface

type FakePolicies added in v1.10.0

type FakePolicies struct {
	Fake *FakeK8sV1
	// contains filtered or unexported fields
}

FakePolicies implements PolicyInterface

func (*FakePolicies) Create added in v1.10.0

func (c *FakePolicies) Create(ctx context.Context, policy *configurationv1.Policy, opts v1.CreateOptions) (result *configurationv1.Policy, err error)

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

func (*FakePolicies) Delete added in v1.10.0

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

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

func (*FakePolicies) DeleteCollection added in v1.10.0

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

DeleteCollection deletes a collection of objects.

func (*FakePolicies) Get added in v1.10.0

func (c *FakePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *configurationv1.Policy, err error)

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

func (*FakePolicies) List added in v1.10.0

func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *configurationv1.PolicyList, err error)

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

func (*FakePolicies) Patch added in v1.10.0

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

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update added in v1.10.0

func (c *FakePolicies) Update(ctx context.Context, policy *configurationv1.Policy, opts v1.UpdateOptions) (result *configurationv1.Policy, err error)

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

func (*FakePolicies) UpdateStatus added in v1.11.0

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

func (*FakePolicies) Watch added in v1.10.0

func (c *FakePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeVirtualServerRoutes

type FakeVirtualServerRoutes struct {
	Fake *FakeK8sV1
	// contains filtered or unexported fields
}

FakeVirtualServerRoutes implements VirtualServerRouteInterface

func (*FakeVirtualServerRoutes) Create

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

func (*FakeVirtualServerRoutes) Delete

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

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

func (*FakeVirtualServerRoutes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualServerRoutes) Get

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

func (*FakeVirtualServerRoutes) List

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

func (*FakeVirtualServerRoutes) Patch

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

Patch applies the patch and returns the patched virtualServerRoute.

func (*FakeVirtualServerRoutes) Update

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

func (*FakeVirtualServerRoutes) UpdateStatus added in v1.8.0

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

func (*FakeVirtualServerRoutes) Watch

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

type FakeVirtualServers

type FakeVirtualServers struct {
	Fake *FakeK8sV1
	// contains filtered or unexported fields
}

FakeVirtualServers implements VirtualServerInterface

func (*FakeVirtualServers) Create

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

func (*FakeVirtualServers) Delete

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

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

func (*FakeVirtualServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualServers) Get

func (c *FakeVirtualServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *configurationv1.VirtualServer, err error)

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

func (*FakeVirtualServers) List

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

func (*FakeVirtualServers) Patch

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

Patch applies the patch and returns the patched virtualServer.

func (*FakeVirtualServers) Update

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

func (*FakeVirtualServers) UpdateStatus added in v1.8.0

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

func (*FakeVirtualServers) Watch

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

Jump to

Keyboard shortcuts

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