fake

package
v0.0.0-...-41d4d58 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 9 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 FakeRulesV1alpha1

type FakeRulesV1alpha1 struct {
	*testing.Fake
}

func (*FakeRulesV1alpha1) RESTClient

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

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

func (*FakeRulesV1alpha1) Ruleses

func (c *FakeRulesV1alpha1) Ruleses(namespace string) v1alpha1.RulesInterface

type FakeRuleses

type FakeRuleses struct {
	Fake *FakeRulesV1alpha1
	// contains filtered or unexported fields
}

FakeRuleses implements RulesInterface

func (*FakeRuleses) Create

func (c *FakeRuleses) Create(ctx context.Context, rules *v1alpha1.Rules, opts v1.CreateOptions) (result *v1alpha1.Rules, err error)

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

func (*FakeRuleses) Delete

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

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

func (*FakeRuleses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRuleses) Get

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

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

func (*FakeRuleses) List

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

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

func (*FakeRuleses) Patch

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

Patch applies the patch and returns the patched rules.

func (*FakeRuleses) Update

func (c *FakeRuleses) Update(ctx context.Context, rules *v1alpha1.Rules, opts v1.UpdateOptions) (result *v1alpha1.Rules, err error)

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

func (*FakeRuleses) Watch

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

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

Jump to

Keyboard shortcuts

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