fake

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: AGPL-3.0 Imports: 9 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 FakeInstanceSets added in v0.9.0

type FakeInstanceSets struct {
	Fake *FakeWorkloadsV1alpha1
	// contains filtered or unexported fields
}

FakeInstanceSets implements InstanceSetInterface

func (*FakeInstanceSets) Create added in v0.9.0

func (c *FakeInstanceSets) Create(ctx context.Context, instanceSet *v1alpha1.InstanceSet, opts v1.CreateOptions) (result *v1alpha1.InstanceSet, err error)

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

func (*FakeInstanceSets) Delete added in v0.9.0

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

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

func (*FakeInstanceSets) DeleteCollection added in v0.9.0

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

DeleteCollection deletes a collection of objects.

func (*FakeInstanceSets) Get added in v0.9.0

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

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

func (*FakeInstanceSets) List added in v0.9.0

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

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

func (*FakeInstanceSets) Patch added in v0.9.0

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

Patch applies the patch and returns the patched instanceSet.

func (*FakeInstanceSets) Update added in v0.9.0

func (c *FakeInstanceSets) Update(ctx context.Context, instanceSet *v1alpha1.InstanceSet, opts v1.UpdateOptions) (result *v1alpha1.InstanceSet, err error)

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

func (*FakeInstanceSets) UpdateStatus added in v0.9.0

func (c *FakeInstanceSets) UpdateStatus(ctx context.Context, instanceSet *v1alpha1.InstanceSet, opts v1.UpdateOptions) (*v1alpha1.InstanceSet, error)

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

func (*FakeInstanceSets) Watch added in v0.9.0

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

type FakeWorkloadsV1alpha1

type FakeWorkloadsV1alpha1 struct {
	*testing.Fake
}

func (*FakeWorkloadsV1alpha1) InstanceSets added in v0.9.0

func (c *FakeWorkloadsV1alpha1) InstanceSets(namespace string) v1alpha1.InstanceSetInterface

func (*FakeWorkloadsV1alpha1) RESTClient

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