fake

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 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) NodeQOSEnsurancePolicies

func (c *FakeEnsuranceV1alpha1) NodeQOSEnsurancePolicies() v1alpha1.NodeQOSEnsurancePolicyInterface

func (*FakeEnsuranceV1alpha1) PodQOSEnsurancePolicies

func (c *FakeEnsuranceV1alpha1) PodQOSEnsurancePolicies(namespace string) v1alpha1.PodQOSEnsurancePolicyInterface

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.

func (*FakeEnsuranceV1alpha1) ServicePolicies

type FakeNodeQOSEnsurancePolicies

type FakeNodeQOSEnsurancePolicies struct {
	Fake *FakeEnsuranceV1alpha1
}

FakeNodeQOSEnsurancePolicies implements NodeQOSEnsurancePolicyInterface

func (*FakeNodeQOSEnsurancePolicies) Create

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

func (*FakeNodeQOSEnsurancePolicies) Delete

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

func (*FakeNodeQOSEnsurancePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeQOSEnsurancePolicies) Get

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

func (*FakeNodeQOSEnsurancePolicies) List

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

func (*FakeNodeQOSEnsurancePolicies) Patch

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

Patch applies the patch and returns the patched nodeQOSEnsurancePolicy.

func (*FakeNodeQOSEnsurancePolicies) Update

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

func (*FakeNodeQOSEnsurancePolicies) UpdateStatus

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

func (*FakeNodeQOSEnsurancePolicies) Watch

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

type FakePodQOSEnsurancePolicies

type FakePodQOSEnsurancePolicies struct {
	Fake *FakeEnsuranceV1alpha1
	// contains filtered or unexported fields
}

FakePodQOSEnsurancePolicies implements PodQOSEnsurancePolicyInterface

func (*FakePodQOSEnsurancePolicies) Create

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

func (*FakePodQOSEnsurancePolicies) Delete

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

func (*FakePodQOSEnsurancePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodQOSEnsurancePolicies) Get

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

func (*FakePodQOSEnsurancePolicies) List

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

func (*FakePodQOSEnsurancePolicies) Patch

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

Patch applies the patch and returns the patched podQOSEnsurancePolicy.

func (*FakePodQOSEnsurancePolicies) Update

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

func (*FakePodQOSEnsurancePolicies) UpdateStatus

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

func (*FakePodQOSEnsurancePolicies) Watch

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

type FakeServicePolicies

type FakeServicePolicies struct {
	Fake *FakeEnsuranceV1alpha1
}

FakeServicePolicies implements ServicePolicyInterface

func (*FakeServicePolicies) Create

func (c *FakeServicePolicies) Create(ctx context.Context, servicePolicy *v1alpha1.ServicePolicy, opts v1.CreateOptions) (result *v1alpha1.ServicePolicy, err error)

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

func (*FakeServicePolicies) Delete

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

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

func (*FakeServicePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServicePolicies) Get

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

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

func (*FakeServicePolicies) List

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

func (*FakeServicePolicies) Patch

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

Patch applies the patch and returns the patched servicePolicy.

func (*FakeServicePolicies) Update

func (c *FakeServicePolicies) Update(ctx context.Context, servicePolicy *v1alpha1.ServicePolicy, opts v1.UpdateOptions) (result *v1alpha1.ServicePolicy, err error)

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

func (*FakeServicePolicies) UpdateStatus

func (c *FakeServicePolicies) UpdateStatus(ctx context.Context, servicePolicy *v1alpha1.ServicePolicy, opts v1.UpdateOptions) (*v1alpha1.ServicePolicy, error)

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

func (*FakeServicePolicies) Watch

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

Jump to

Keyboard shortcuts

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