fake

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 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 FakeNfdV1alpha1

type FakeNfdV1alpha1 struct {
	*testing.Fake
}

func (*FakeNfdV1alpha1) NodeFeatureRules

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

func (*FakeNfdV1alpha1) NodeFeatures added in v0.12.0

func (c *FakeNfdV1alpha1) NodeFeatures(namespace string) v1alpha1.NodeFeatureInterface

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.

type FakeNodeFeatures added in v0.12.0

type FakeNodeFeatures struct {
	Fake *FakeNfdV1alpha1
	// contains filtered or unexported fields
}

FakeNodeFeatures implements NodeFeatureInterface

func (*FakeNodeFeatures) Create added in v0.12.0

func (c *FakeNodeFeatures) Create(ctx context.Context, nodeFeature *v1alpha1.NodeFeature, opts v1.CreateOptions) (result *v1alpha1.NodeFeature, err error)

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

func (*FakeNodeFeatures) Delete added in v0.12.0

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

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

func (*FakeNodeFeatures) DeleteCollection added in v0.12.0

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeFeatures) Get added in v0.12.0

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

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

func (*FakeNodeFeatures) List added in v0.12.0

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

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

func (*FakeNodeFeatures) Patch added in v0.12.0

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

Patch applies the patch and returns the patched nodeFeature.

func (*FakeNodeFeatures) Update added in v0.12.0

func (c *FakeNodeFeatures) Update(ctx context.Context, nodeFeature *v1alpha1.NodeFeature, opts v1.UpdateOptions) (result *v1alpha1.NodeFeature, err error)

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

func (*FakeNodeFeatures) Watch added in v0.12.0

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

Jump to

Keyboard shortcuts

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