fake

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 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 FakeClusterGroups

type FakeClusterGroups struct {
	Fake *FakeCoreV1alpha2
}

FakeClusterGroups implements ClusterGroupInterface

func (*FakeClusterGroups) Create

func (c *FakeClusterGroups) Create(ctx context.Context, clusterGroup *v1alpha2.ClusterGroup, opts v1.CreateOptions) (result *v1alpha2.ClusterGroup, err error)

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

func (*FakeClusterGroups) Delete

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

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

func (*FakeClusterGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterGroups) Get

func (c *FakeClusterGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ClusterGroup, err error)

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

func (*FakeClusterGroups) List

func (c *FakeClusterGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ClusterGroupList, err error)

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

func (*FakeClusterGroups) Patch

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

Patch applies the patch and returns the patched clusterGroup.

func (*FakeClusterGroups) Update

func (c *FakeClusterGroups) Update(ctx context.Context, clusterGroup *v1alpha2.ClusterGroup, opts v1.UpdateOptions) (result *v1alpha2.ClusterGroup, err error)

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

func (*FakeClusterGroups) UpdateStatus

func (c *FakeClusterGroups) UpdateStatus(ctx context.Context, clusterGroup *v1alpha2.ClusterGroup, opts v1.UpdateOptions) (*v1alpha2.ClusterGroup, error)

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

func (*FakeClusterGroups) Watch

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

type FakeCoreV1alpha2

type FakeCoreV1alpha2 struct {
	*testing.Fake
}

func (*FakeCoreV1alpha2) ClusterGroups

func (c *FakeCoreV1alpha2) ClusterGroups() v1alpha2.ClusterGroupInterface

func (*FakeCoreV1alpha2) ExternalEntities

func (c *FakeCoreV1alpha2) ExternalEntities(namespace string) v1alpha2.ExternalEntityInterface

func (*FakeCoreV1alpha2) RESTClient

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

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

type FakeExternalEntities

type FakeExternalEntities struct {
	Fake *FakeCoreV1alpha2
	// contains filtered or unexported fields
}

FakeExternalEntities implements ExternalEntityInterface

func (*FakeExternalEntities) Create

func (c *FakeExternalEntities) Create(ctx context.Context, externalEntity *v1alpha2.ExternalEntity, opts v1.CreateOptions) (result *v1alpha2.ExternalEntity, err error)

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

func (*FakeExternalEntities) Delete

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

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

func (*FakeExternalEntities) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExternalEntities) Get

func (c *FakeExternalEntities) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ExternalEntity, err error)

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

func (*FakeExternalEntities) List

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

func (*FakeExternalEntities) Patch

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

Patch applies the patch and returns the patched externalEntity.

func (*FakeExternalEntities) Update

func (c *FakeExternalEntities) Update(ctx context.Context, externalEntity *v1alpha2.ExternalEntity, opts v1.UpdateOptions) (result *v1alpha2.ExternalEntity, err error)

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

func (*FakeExternalEntities) Watch

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

Jump to

Keyboard shortcuts

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