fake

package
Version: v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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 *FakeCrdV1alpha3
}

FakeClusterGroups implements ClusterGroupInterface

func (*FakeClusterGroups) Create

func (c *FakeClusterGroups) Create(ctx context.Context, clusterGroup *v1alpha3.ClusterGroup, opts v1.CreateOptions) (result *v1alpha3.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 *v1alpha3.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 *v1alpha3.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 *v1alpha3.ClusterGroup, err error)

Patch applies the patch and returns the patched clusterGroup.

func (*FakeClusterGroups) Update

func (c *FakeClusterGroups) Update(ctx context.Context, clusterGroup *v1alpha3.ClusterGroup, opts v1.UpdateOptions) (result *v1alpha3.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 *v1alpha3.ClusterGroup, opts v1.UpdateOptions) (*v1alpha3.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 FakeCrdV1alpha3

type FakeCrdV1alpha3 struct {
	*testing.Fake
}

func (*FakeCrdV1alpha3) ClusterGroups

func (c *FakeCrdV1alpha3) ClusterGroups() v1alpha3.ClusterGroupInterface

func (*FakeCrdV1alpha3) Groups added in v1.8.0

func (c *FakeCrdV1alpha3) Groups(namespace string) v1alpha3.GroupInterface

func (*FakeCrdV1alpha3) RESTClient

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

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

type FakeGroups added in v1.8.0

type FakeGroups struct {
	Fake *FakeCrdV1alpha3
	// contains filtered or unexported fields
}

FakeGroups implements GroupInterface

func (*FakeGroups) Create added in v1.8.0

func (c *FakeGroups) Create(ctx context.Context, group *v1alpha3.Group, opts v1.CreateOptions) (result *v1alpha3.Group, err error)

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

func (*FakeGroups) Delete added in v1.8.0

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

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

func (*FakeGroups) DeleteCollection added in v1.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeGroups) Get added in v1.8.0

func (c *FakeGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.Group, err error)

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

func (*FakeGroups) List added in v1.8.0

func (c *FakeGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha3.GroupList, err error)

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

func (*FakeGroups) Patch added in v1.8.0

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

Patch applies the patch and returns the patched group.

func (*FakeGroups) Update added in v1.8.0

func (c *FakeGroups) Update(ctx context.Context, group *v1alpha3.Group, opts v1.UpdateOptions) (result *v1alpha3.Group, err error)

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

func (*FakeGroups) UpdateStatus added in v1.8.0

func (c *FakeGroups) UpdateStatus(ctx context.Context, group *v1alpha3.Group, opts v1.UpdateOptions) (*v1alpha3.Group, error)

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

func (*FakeGroups) Watch added in v1.8.0

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

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

Jump to

Keyboard shortcuts

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