fake

package
v3.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 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 FakeGlobalConfigurations

type FakeGlobalConfigurations struct {
	Fake *FakeK8sV1alpha1
	// contains filtered or unexported fields
}

FakeGlobalConfigurations implements GlobalConfigurationInterface

func (*FakeGlobalConfigurations) Create

func (c *FakeGlobalConfigurations) Create(ctx context.Context, globalConfiguration *v1alpha1.GlobalConfiguration, opts v1.CreateOptions) (result *v1alpha1.GlobalConfiguration, err error)

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

func (*FakeGlobalConfigurations) Delete

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

func (*FakeGlobalConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGlobalConfigurations) Get

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

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

func (*FakeGlobalConfigurations) List

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

func (*FakeGlobalConfigurations) Patch

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

Patch applies the patch and returns the patched globalConfiguration.

func (*FakeGlobalConfigurations) Update

func (c *FakeGlobalConfigurations) Update(ctx context.Context, globalConfiguration *v1alpha1.GlobalConfiguration, opts v1.UpdateOptions) (result *v1alpha1.GlobalConfiguration, err error)

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

func (*FakeGlobalConfigurations) Watch

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

type FakeK8sV1alpha1

type FakeK8sV1alpha1 struct {
	*testing.Fake
}

func (*FakeK8sV1alpha1) GlobalConfigurations

func (c *FakeK8sV1alpha1) GlobalConfigurations(namespace string) v1alpha1.GlobalConfigurationInterface

func (*FakeK8sV1alpha1) Policies

func (c *FakeK8sV1alpha1) Policies(namespace string) v1alpha1.PolicyInterface

func (*FakeK8sV1alpha1) RESTClient

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

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

func (*FakeK8sV1alpha1) TransportServers

func (c *FakeK8sV1alpha1) TransportServers(namespace string) v1alpha1.TransportServerInterface

type FakePolicies

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

FakePolicies implements PolicyInterface

func (*FakePolicies) Create

func (c *FakePolicies) Create(ctx context.Context, policy *v1alpha1.Policy, opts v1.CreateOptions) (result *v1alpha1.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

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

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

DeleteCollection deletes a collection of objects.

func (*FakePolicies) Get

func (c *FakePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.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

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

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

func (*FakePolicies) Patch

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

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update

func (c *FakePolicies) Update(ctx context.Context, policy *v1alpha1.Policy, opts v1.UpdateOptions) (result *v1alpha1.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) Watch

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

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

type FakeTransportServers

type FakeTransportServers struct {
	Fake *FakeK8sV1alpha1
	// contains filtered or unexported fields
}

FakeTransportServers implements TransportServerInterface

func (*FakeTransportServers) Create

func (c *FakeTransportServers) Create(ctx context.Context, transportServer *v1alpha1.TransportServer, opts v1.CreateOptions) (result *v1alpha1.TransportServer, err error)

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

func (*FakeTransportServers) Delete

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

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

func (*FakeTransportServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTransportServers) Get

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

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

func (*FakeTransportServers) List

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

func (*FakeTransportServers) Patch

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

Patch applies the patch and returns the patched transportServer.

func (*FakeTransportServers) Update

func (c *FakeTransportServers) Update(ctx context.Context, transportServer *v1alpha1.TransportServer, opts v1.UpdateOptions) (result *v1alpha1.TransportServer, err error)

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

func (*FakeTransportServers) UpdateStatus

func (c *FakeTransportServers) UpdateStatus(ctx context.Context, transportServer *v1alpha1.TransportServer, opts v1.UpdateOptions) (*v1alpha1.TransportServer, error)

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

func (*FakeTransportServers) Watch

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

Jump to

Keyboard shortcuts

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