fake

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT 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 FakeClusterConfigs

type FakeClusterConfigs struct {
	Fake *FakeOpscliV1alpha1
}

FakeClusterConfigs implements ClusterConfigInterface

func (*FakeClusterConfigs) Create

func (c *FakeClusterConfigs) Create(ctx context.Context, clusterConfig *v1alpha1.ClusterConfig, opts v1.CreateOptions) (result *v1alpha1.ClusterConfig, err error)

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

func (*FakeClusterConfigs) Delete

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

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

func (*FakeClusterConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterConfigs) Get

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

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

func (*FakeClusterConfigs) List

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

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

func (*FakeClusterConfigs) Patch

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

Patch applies the patch and returns the patched clusterConfig.

func (*FakeClusterConfigs) Update

func (c *FakeClusterConfigs) Update(ctx context.Context, clusterConfig *v1alpha1.ClusterConfig, opts v1.UpdateOptions) (result *v1alpha1.ClusterConfig, err error)

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

func (*FakeClusterConfigs) Watch

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

type FakeOpscliV1alpha1

type FakeOpscliV1alpha1 struct {
	*testing.Fake
}

func (*FakeOpscliV1alpha1) ClusterConfigs

func (*FakeOpscliV1alpha1) RESTClient

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