fake

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 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 FakeAvoidanceActions

type FakeAvoidanceActions struct {
	Fake *FakeEnsuranceV1alpha1
}

FakeAvoidanceActions implements AvoidanceActionInterface

func (*FakeAvoidanceActions) Create

func (c *FakeAvoidanceActions) Create(ctx context.Context, avoidanceAction *v1alpha1.AvoidanceAction, opts v1.CreateOptions) (result *v1alpha1.AvoidanceAction, err error)

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

func (*FakeAvoidanceActions) Delete

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

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

func (*FakeAvoidanceActions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAvoidanceActions) Get

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

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

func (*FakeAvoidanceActions) List

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

func (*FakeAvoidanceActions) Patch

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

Patch applies the patch and returns the patched avoidanceAction.

func (*FakeAvoidanceActions) Update

func (c *FakeAvoidanceActions) Update(ctx context.Context, avoidanceAction *v1alpha1.AvoidanceAction, opts v1.UpdateOptions) (result *v1alpha1.AvoidanceAction, err error)

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

func (*FakeAvoidanceActions) UpdateStatus

func (c *FakeAvoidanceActions) UpdateStatus(ctx context.Context, avoidanceAction *v1alpha1.AvoidanceAction, opts v1.UpdateOptions) (*v1alpha1.AvoidanceAction, error)

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

func (*FakeAvoidanceActions) Watch

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

type FakeEnsuranceV1alpha1

type FakeEnsuranceV1alpha1 struct {
	*testing.Fake
}

func (*FakeEnsuranceV1alpha1) AvoidanceActions

func (*FakeEnsuranceV1alpha1) NodeQOSs

func (*FakeEnsuranceV1alpha1) PodQOSs

func (*FakeEnsuranceV1alpha1) RESTClient

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

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

type FakeNodeQOSs

type FakeNodeQOSs struct {
	Fake *FakeEnsuranceV1alpha1
}

FakeNodeQOSs implements NodeQOSInterface

func (*FakeNodeQOSs) Create

func (c *FakeNodeQOSs) Create(ctx context.Context, nodeQOS *v1alpha1.NodeQOS, opts v1.CreateOptions) (result *v1alpha1.NodeQOS, err error)

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

func (*FakeNodeQOSs) Delete

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

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

func (*FakeNodeQOSs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeQOSs) Get

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

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

func (*FakeNodeQOSs) List

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

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

func (*FakeNodeQOSs) Patch

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

Patch applies the patch and returns the patched nodeQOS.

func (*FakeNodeQOSs) Update

func (c *FakeNodeQOSs) Update(ctx context.Context, nodeQOS *v1alpha1.NodeQOS, opts v1.UpdateOptions) (result *v1alpha1.NodeQOS, err error)

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

func (*FakeNodeQOSs) UpdateStatus

func (c *FakeNodeQOSs) UpdateStatus(ctx context.Context, nodeQOS *v1alpha1.NodeQOS, opts v1.UpdateOptions) (*v1alpha1.NodeQOS, error)

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

func (*FakeNodeQOSs) Watch

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

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

type FakePodQOSs

type FakePodQOSs struct {
	Fake *FakeEnsuranceV1alpha1
}

FakePodQOSs implements PodQOSInterface

func (*FakePodQOSs) Create

func (c *FakePodQOSs) Create(ctx context.Context, podQOS *v1alpha1.PodQOS, opts v1.CreateOptions) (result *v1alpha1.PodQOS, err error)

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

func (*FakePodQOSs) Delete

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

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

func (*FakePodQOSs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodQOSs) Get

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

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

func (*FakePodQOSs) List

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

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

func (*FakePodQOSs) Patch

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

Patch applies the patch and returns the patched podQOS.

func (*FakePodQOSs) Update

func (c *FakePodQOSs) Update(ctx context.Context, podQOS *v1alpha1.PodQOS, opts v1.UpdateOptions) (result *v1alpha1.PodQOS, err error)

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

func (*FakePodQOSs) UpdateStatus

func (c *FakePodQOSs) UpdateStatus(ctx context.Context, podQOS *v1alpha1.PodQOS, opts v1.UpdateOptions) (*v1alpha1.PodQOS, error)

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

func (*FakePodQOSs) Watch

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

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

Jump to

Keyboard shortcuts

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