fake

package
v0.12.0-devel Latest Latest
Warning

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

Go to latest
Published: Mar 29, 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 FakeNfdV1alpha1

type FakeNfdV1alpha1 struct {
	*testing.Fake
}

func (*FakeNfdV1alpha1) NodeFeatureRules

func (c *FakeNfdV1alpha1) NodeFeatureRules() v1alpha1.NodeFeatureRuleInterface

func (*FakeNfdV1alpha1) RESTClient

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

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

type FakeNodeFeatureRules

type FakeNodeFeatureRules struct {
	Fake *FakeNfdV1alpha1
}

FakeNodeFeatureRules implements NodeFeatureRuleInterface

func (*FakeNodeFeatureRules) Create

func (c *FakeNodeFeatureRules) Create(ctx context.Context, nodeFeatureRule *v1alpha1.NodeFeatureRule, opts v1.CreateOptions) (result *v1alpha1.NodeFeatureRule, err error)

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

func (*FakeNodeFeatureRules) Delete

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

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

func (*FakeNodeFeatureRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeFeatureRules) Get

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

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

func (*FakeNodeFeatureRules) List

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

func (*FakeNodeFeatureRules) Patch

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

Patch applies the patch and returns the patched nodeFeatureRule.

func (*FakeNodeFeatureRules) Update

func (c *FakeNodeFeatureRules) Update(ctx context.Context, nodeFeatureRule *v1alpha1.NodeFeatureRule, opts v1.UpdateOptions) (result *v1alpha1.NodeFeatureRule, err error)

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

func (*FakeNodeFeatureRules) Watch

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

Jump to

Keyboard shortcuts

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