fake

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

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 FakeClusterRBACSyncConfigs

type FakeClusterRBACSyncConfigs struct {
	Fake *FakeRBACSyncV1alpha
}

FakeClusterRBACSyncConfigs implements ClusterRBACSyncConfigInterface

func (*FakeClusterRBACSyncConfigs) Create

func (c *FakeClusterRBACSyncConfigs) Create(ctx context.Context, clusterRBACSyncConfig *v1alpha.ClusterRBACSyncConfig, opts v1.CreateOptions) (result *v1alpha.ClusterRBACSyncConfig, err error)

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

func (*FakeClusterRBACSyncConfigs) Delete

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

func (*FakeClusterRBACSyncConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterRBACSyncConfigs) Get

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

func (*FakeClusterRBACSyncConfigs) List

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

func (*FakeClusterRBACSyncConfigs) Patch

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

Patch applies the patch and returns the patched clusterRBACSyncConfig.

func (*FakeClusterRBACSyncConfigs) Update

func (c *FakeClusterRBACSyncConfigs) Update(ctx context.Context, clusterRBACSyncConfig *v1alpha.ClusterRBACSyncConfig, opts v1.UpdateOptions) (result *v1alpha.ClusterRBACSyncConfig, err error)

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

func (*FakeClusterRBACSyncConfigs) UpdateStatus

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

func (*FakeClusterRBACSyncConfigs) Watch

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

type FakeRBACSyncConfigs

type FakeRBACSyncConfigs struct {
	Fake *FakeRBACSyncV1alpha
	// contains filtered or unexported fields
}

FakeRBACSyncConfigs implements RBACSyncConfigInterface

func (*FakeRBACSyncConfigs) Create

func (c *FakeRBACSyncConfigs) Create(ctx context.Context, rBACSyncConfig *v1alpha.RBACSyncConfig, opts v1.CreateOptions) (result *v1alpha.RBACSyncConfig, err error)

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

func (*FakeRBACSyncConfigs) Delete

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

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

func (*FakeRBACSyncConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRBACSyncConfigs) Get

func (c *FakeRBACSyncConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha.RBACSyncConfig, err error)

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

func (*FakeRBACSyncConfigs) List

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

func (*FakeRBACSyncConfigs) Patch

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

Patch applies the patch and returns the patched rBACSyncConfig.

func (*FakeRBACSyncConfigs) Update

func (c *FakeRBACSyncConfigs) Update(ctx context.Context, rBACSyncConfig *v1alpha.RBACSyncConfig, opts v1.UpdateOptions) (result *v1alpha.RBACSyncConfig, err error)

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

func (*FakeRBACSyncConfigs) UpdateStatus

func (c *FakeRBACSyncConfigs) UpdateStatus(ctx context.Context, rBACSyncConfig *v1alpha.RBACSyncConfig, opts v1.UpdateOptions) (*v1alpha.RBACSyncConfig, error)

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

func (*FakeRBACSyncConfigs) Watch

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

type FakeRBACSyncV1alpha

type FakeRBACSyncV1alpha struct {
	*testing.Fake
}

func (*FakeRBACSyncV1alpha) ClusterRBACSyncConfigs

func (c *FakeRBACSyncV1alpha) ClusterRBACSyncConfigs() v1alpha.ClusterRBACSyncConfigInterface

func (*FakeRBACSyncV1alpha) RBACSyncConfigs

func (c *FakeRBACSyncV1alpha) RBACSyncConfigs(namespace string) v1alpha.RBACSyncConfigInterface

func (*FakeRBACSyncV1alpha) RESTClient

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