fake

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 12 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 FakeSuggestionV1beta1

type FakeSuggestionV1beta1 struct {
	*testing.Fake
}

func (*FakeSuggestionV1beta1) RESTClient

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

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

func (*FakeSuggestionV1beta1) Suggestions

func (c *FakeSuggestionV1beta1) Suggestions(namespace string) v1beta1.SuggestionInterface

type FakeSuggestions

type FakeSuggestions struct {
	Fake *FakeSuggestionV1beta1
	// contains filtered or unexported fields
}

FakeSuggestions implements SuggestionInterface

func (*FakeSuggestions) Apply added in v0.16.0

Apply takes the given apply declarative configuration, applies it and returns the applied suggestion.

func (*FakeSuggestions) ApplyStatus added in v0.16.0

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

func (*FakeSuggestions) Create

func (c *FakeSuggestions) Create(ctx context.Context, suggestion *v1beta1.Suggestion, opts v1.CreateOptions) (result *v1beta1.Suggestion, err error)

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

func (*FakeSuggestions) Delete

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

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

func (*FakeSuggestions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSuggestions) Get

func (c *FakeSuggestions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Suggestion, err error)

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

func (*FakeSuggestions) List

func (c *FakeSuggestions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SuggestionList, err error)

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

func (*FakeSuggestions) Patch

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

Patch applies the patch and returns the patched suggestion.

func (*FakeSuggestions) Update

func (c *FakeSuggestions) Update(ctx context.Context, suggestion *v1beta1.Suggestion, opts v1.UpdateOptions) (result *v1beta1.Suggestion, err error)

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

func (*FakeSuggestions) UpdateStatus

func (c *FakeSuggestions) UpdateStatus(ctx context.Context, suggestion *v1beta1.Suggestion, opts v1.UpdateOptions) (*v1beta1.Suggestion, error)

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

func (*FakeSuggestions) Watch

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

Jump to

Keyboard shortcuts

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