fake

package
v1.10.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 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 FakeApiextensionsV1

type FakeApiextensionsV1 struct {
	*testing.Fake
}

func (*FakeApiextensionsV1) CompositeResourceDefinitions

func (c *FakeApiextensionsV1) CompositeResourceDefinitions() v1.CompositeResourceDefinitionInterface

func (*FakeApiextensionsV1) Compositions

func (c *FakeApiextensionsV1) Compositions() v1.CompositionInterface

func (*FakeApiextensionsV1) RESTClient

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

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

type FakeCompositeResourceDefinitions

type FakeCompositeResourceDefinitions struct {
	Fake *FakeApiextensionsV1
}

FakeCompositeResourceDefinitions implements CompositeResourceDefinitionInterface

func (*FakeCompositeResourceDefinitions) Create

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

func (*FakeCompositeResourceDefinitions) Delete

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

func (*FakeCompositeResourceDefinitions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCompositeResourceDefinitions) Get

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

func (*FakeCompositeResourceDefinitions) List

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

func (*FakeCompositeResourceDefinitions) Patch

Patch applies the patch and returns the patched compositeResourceDefinition.

func (*FakeCompositeResourceDefinitions) Update

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

func (*FakeCompositeResourceDefinitions) UpdateStatus

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

func (*FakeCompositeResourceDefinitions) Watch

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

type FakeCompositions

type FakeCompositions struct {
	Fake *FakeApiextensionsV1
}

FakeCompositions implements CompositionInterface

func (*FakeCompositions) Create

func (c *FakeCompositions) Create(ctx context.Context, composition *apiextensionsv1.Composition, opts v1.CreateOptions) (result *apiextensionsv1.Composition, err error)

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

func (*FakeCompositions) Delete

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

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

func (*FakeCompositions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCompositions) Get

func (c *FakeCompositions) Get(ctx context.Context, name string, options v1.GetOptions) (result *apiextensionsv1.Composition, err error)

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

func (*FakeCompositions) List

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

func (*FakeCompositions) Patch

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

Patch applies the patch and returns the patched composition.

func (*FakeCompositions) Update

func (c *FakeCompositions) Update(ctx context.Context, composition *apiextensionsv1.Composition, opts v1.UpdateOptions) (result *apiextensionsv1.Composition, err error)

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

func (*FakeCompositions) Watch

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

Jump to

Keyboard shortcuts

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