fake

package
Version: v1.52.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more 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 FakeManagedSeedSets added in v1.19.0

type FakeManagedSeedSets struct {
	Fake *FakeSeedmanagementV1alpha1
	// contains filtered or unexported fields
}

FakeManagedSeedSets implements ManagedSeedSetInterface

func (*FakeManagedSeedSets) Create added in v1.19.0

func (c *FakeManagedSeedSets) Create(ctx context.Context, managedSeedSet *v1alpha1.ManagedSeedSet, opts v1.CreateOptions) (result *v1alpha1.ManagedSeedSet, err error)

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

func (*FakeManagedSeedSets) Delete added in v1.19.0

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

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

func (*FakeManagedSeedSets) DeleteCollection added in v1.19.0

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

DeleteCollection deletes a collection of objects.

func (*FakeManagedSeedSets) Get added in v1.19.0

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

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

func (*FakeManagedSeedSets) List added in v1.19.0

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

func (*FakeManagedSeedSets) Patch added in v1.19.0

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

Patch applies the patch and returns the patched managedSeedSet.

func (*FakeManagedSeedSets) Update added in v1.19.0

func (c *FakeManagedSeedSets) Update(ctx context.Context, managedSeedSet *v1alpha1.ManagedSeedSet, opts v1.UpdateOptions) (result *v1alpha1.ManagedSeedSet, err error)

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

func (*FakeManagedSeedSets) UpdateStatus added in v1.19.0

func (c *FakeManagedSeedSets) UpdateStatus(ctx context.Context, managedSeedSet *v1alpha1.ManagedSeedSet, opts v1.UpdateOptions) (*v1alpha1.ManagedSeedSet, error)

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

func (*FakeManagedSeedSets) Watch added in v1.19.0

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

type FakeManagedSeeds

type FakeManagedSeeds struct {
	Fake *FakeSeedmanagementV1alpha1
	// contains filtered or unexported fields
}

FakeManagedSeeds implements ManagedSeedInterface

func (*FakeManagedSeeds) Create

func (c *FakeManagedSeeds) Create(ctx context.Context, managedSeed *v1alpha1.ManagedSeed, opts v1.CreateOptions) (result *v1alpha1.ManagedSeed, err error)

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

func (*FakeManagedSeeds) Delete

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

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

func (*FakeManagedSeeds) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeManagedSeeds) Get

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

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

func (*FakeManagedSeeds) List

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

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

func (*FakeManagedSeeds) Patch

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

Patch applies the patch and returns the patched managedSeed.

func (*FakeManagedSeeds) Update

func (c *FakeManagedSeeds) Update(ctx context.Context, managedSeed *v1alpha1.ManagedSeed, opts v1.UpdateOptions) (result *v1alpha1.ManagedSeed, err error)

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

func (*FakeManagedSeeds) UpdateStatus

func (c *FakeManagedSeeds) UpdateStatus(ctx context.Context, managedSeed *v1alpha1.ManagedSeed, opts v1.UpdateOptions) (*v1alpha1.ManagedSeed, error)

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

func (*FakeManagedSeeds) Watch

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

type FakeSeedmanagementV1alpha1

type FakeSeedmanagementV1alpha1 struct {
	*testing.Fake
}

func (*FakeSeedmanagementV1alpha1) ManagedSeedSets added in v1.19.0

func (c *FakeSeedmanagementV1alpha1) ManagedSeedSets(namespace string) v1alpha1.ManagedSeedSetInterface

func (*FakeSeedmanagementV1alpha1) ManagedSeeds

func (*FakeSeedmanagementV1alpha1) RESTClient

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