fake

package
v0.0.0-...-e31b21c Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 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 FakeClusterNSs

type FakeClusterNSs struct {
	Fake *FakeNrpcontrollerV1alpha1
	// contains filtered or unexported fields
}

FakeClusterNSs implements ClusterNSInterface

func (*FakeClusterNSs) Create

func (c *FakeClusterNSs) Create(ctx context.Context, clusterNS *v1alpha1.ClusterNS, opts v1.CreateOptions) (result *v1alpha1.ClusterNS, err error)

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

func (*FakeClusterNSs) Delete

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

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

func (*FakeClusterNSs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterNSs) Get

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

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

func (*FakeClusterNSs) List

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

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

func (*FakeClusterNSs) Patch

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

Patch applies the patch and returns the patched clusterNS.

func (*FakeClusterNSs) Update

func (c *FakeClusterNSs) Update(ctx context.Context, clusterNS *v1alpha1.ClusterNS, opts v1.UpdateOptions) (result *v1alpha1.ClusterNS, err error)

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

func (*FakeClusterNSs) Watch

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

type FakeClusters

type FakeClusters struct {
	Fake *FakeNrpcontrollerV1alpha1
	// contains filtered or unexported fields
}

FakeClusters implements ClusterInterface

func (*FakeClusters) Create

func (c *FakeClusters) Create(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.CreateOptions) (result *v1alpha1.Cluster, err error)

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

func (*FakeClusters) Delete

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

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

func (*FakeClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusters) Get

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

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

func (*FakeClusters) List

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

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

func (*FakeClusters) Patch

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

Patch applies the patch and returns the patched cluster.

func (*FakeClusters) Update

func (c *FakeClusters) Update(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.UpdateOptions) (result *v1alpha1.Cluster, err error)

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

func (*FakeClusters) Watch

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

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

type FakeNrpcontrollerV1alpha1

type FakeNrpcontrollerV1alpha1 struct {
	*testing.Fake
}

func (*FakeNrpcontrollerV1alpha1) ClusterNSs

func (*FakeNrpcontrollerV1alpha1) Clusters

func (*FakeNrpcontrollerV1alpha1) RESTClient

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