fake

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

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

Go to latest
Published: Jul 26, 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 FakeAciV1

type FakeAciV1 struct {
	*testing.Fake
}

func (*FakeAciV1) QosPolicies

func (c *FakeAciV1) QosPolicies() v1.QosPolicyInterface

func (*FakeAciV1) RESTClient

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

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

type FakeQosPolicies

type FakeQosPolicies struct {
	Fake *FakeAciV1
}

FakeQosPolicies implements QosPolicyInterface

func (*FakeQosPolicies) Create

func (c *FakeQosPolicies) Create(ctx context.Context, qosPolicy *aciqosv1.QosPolicy, opts v1.CreateOptions) (result *aciqosv1.QosPolicy, err error)

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

func (*FakeQosPolicies) Delete

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

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

func (*FakeQosPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeQosPolicies) Get

func (c *FakeQosPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *aciqosv1.QosPolicy, err error)

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

func (*FakeQosPolicies) List

func (c *FakeQosPolicies) List(ctx context.Context, opts v1.ListOptions) (result *aciqosv1.QosPolicyList, err error)

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

func (*FakeQosPolicies) Patch

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

Patch applies the patch and returns the patched qosPolicy.

func (*FakeQosPolicies) Update

func (c *FakeQosPolicies) Update(ctx context.Context, qosPolicy *aciqosv1.QosPolicy, opts v1.UpdateOptions) (result *aciqosv1.QosPolicy, err error)

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

func (*FakeQosPolicies) UpdateStatus

func (c *FakeQosPolicies) UpdateStatus(ctx context.Context, qosPolicy *aciqosv1.QosPolicy, opts v1.UpdateOptions) (*aciqosv1.QosPolicy, error)

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

func (*FakeQosPolicies) Watch

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

Jump to

Keyboard shortcuts

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