fake

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 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 FakeSriovNetworkNodePolicies

type FakeSriovNetworkNodePolicies struct {
	Fake *FakeSriovnetworkV1
	// contains filtered or unexported fields
}

FakeSriovNetworkNodePolicies implements SriovNetworkNodePolicyInterface

func (*FakeSriovNetworkNodePolicies) Create

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

func (*FakeSriovNetworkNodePolicies) Delete

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

func (*FakeSriovNetworkNodePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSriovNetworkNodePolicies) Get

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

func (*FakeSriovNetworkNodePolicies) List

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

func (*FakeSriovNetworkNodePolicies) Patch

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

Patch applies the patch and returns the patched sriovNetworkNodePolicy.

func (*FakeSriovNetworkNodePolicies) Update

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

func (*FakeSriovNetworkNodePolicies) UpdateStatus

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

func (*FakeSriovNetworkNodePolicies) Watch

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

type FakeSriovNetworkNodeStates

type FakeSriovNetworkNodeStates struct {
	Fake *FakeSriovnetworkV1
	// contains filtered or unexported fields
}

FakeSriovNetworkNodeStates implements SriovNetworkNodeStateInterface

func (*FakeSriovNetworkNodeStates) Create

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

func (*FakeSriovNetworkNodeStates) Delete

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

func (*FakeSriovNetworkNodeStates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSriovNetworkNodeStates) Get

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

func (*FakeSriovNetworkNodeStates) List

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

func (*FakeSriovNetworkNodeStates) Patch

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

Patch applies the patch and returns the patched sriovNetworkNodeState.

func (*FakeSriovNetworkNodeStates) Update

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

func (*FakeSriovNetworkNodeStates) UpdateStatus

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

func (*FakeSriovNetworkNodeStates) Watch

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

type FakeSriovNetworks

type FakeSriovNetworks struct {
	Fake *FakeSriovnetworkV1
	// contains filtered or unexported fields
}

FakeSriovNetworks implements SriovNetworkInterface

func (*FakeSriovNetworks) Create

func (c *FakeSriovNetworks) Create(ctx context.Context, sriovNetwork *sriovnetworkv1.SriovNetwork, opts v1.CreateOptions) (result *sriovnetworkv1.SriovNetwork, err error)

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

func (*FakeSriovNetworks) Delete

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

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

func (*FakeSriovNetworks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSriovNetworks) Get

func (c *FakeSriovNetworks) Get(ctx context.Context, name string, options v1.GetOptions) (result *sriovnetworkv1.SriovNetwork, err error)

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

func (*FakeSriovNetworks) List

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

func (*FakeSriovNetworks) Patch

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

Patch applies the patch and returns the patched sriovNetwork.

func (*FakeSriovNetworks) Update

func (c *FakeSriovNetworks) Update(ctx context.Context, sriovNetwork *sriovnetworkv1.SriovNetwork, opts v1.UpdateOptions) (result *sriovnetworkv1.SriovNetwork, err error)

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

func (*FakeSriovNetworks) UpdateStatus

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

func (*FakeSriovNetworks) Watch

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

type FakeSriovOperatorConfigs

type FakeSriovOperatorConfigs struct {
	Fake *FakeSriovnetworkV1
	// contains filtered or unexported fields
}

FakeSriovOperatorConfigs implements SriovOperatorConfigInterface

func (*FakeSriovOperatorConfigs) Create

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

func (*FakeSriovOperatorConfigs) Delete

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

func (*FakeSriovOperatorConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSriovOperatorConfigs) Get

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

func (*FakeSriovOperatorConfigs) List

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

func (*FakeSriovOperatorConfigs) Patch

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

Patch applies the patch and returns the patched sriovOperatorConfig.

func (*FakeSriovOperatorConfigs) Update

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

func (*FakeSriovOperatorConfigs) UpdateStatus

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

func (*FakeSriovOperatorConfigs) Watch

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

type FakeSriovnetworkV1

type FakeSriovnetworkV1 struct {
	*testing.Fake
}

func (*FakeSriovnetworkV1) RESTClient

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

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

func (*FakeSriovnetworkV1) SriovNetworkNodePolicies

func (c *FakeSriovnetworkV1) SriovNetworkNodePolicies(namespace string) v1.SriovNetworkNodePolicyInterface

func (*FakeSriovnetworkV1) SriovNetworkNodeStates

func (c *FakeSriovnetworkV1) SriovNetworkNodeStates(namespace string) v1.SriovNetworkNodeStateInterface

func (*FakeSriovnetworkV1) SriovNetworks

func (c *FakeSriovnetworkV1) SriovNetworks(namespace string) v1.SriovNetworkInterface

func (*FakeSriovnetworkV1) SriovOperatorConfigs

func (c *FakeSriovnetworkV1) SriovOperatorConfigs(namespace string) v1.SriovOperatorConfigInterface

Jump to

Keyboard shortcuts

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