fake

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 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 FakeClusterThrottles

type FakeClusterThrottles struct {
	Fake *FakeScheduleV1alpha1
}

FakeClusterThrottles implements ClusterThrottleInterface

func (*FakeClusterThrottles) Create

func (c *FakeClusterThrottles) Create(ctx context.Context, clusterThrottle *v1alpha1.ClusterThrottle, opts v1.CreateOptions) (result *v1alpha1.ClusterThrottle, err error)

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

func (*FakeClusterThrottles) Delete

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

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

func (*FakeClusterThrottles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterThrottles) Get

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

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

func (*FakeClusterThrottles) List

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

func (*FakeClusterThrottles) Patch

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

Patch applies the patch and returns the patched clusterThrottle.

func (*FakeClusterThrottles) Update

func (c *FakeClusterThrottles) Update(ctx context.Context, clusterThrottle *v1alpha1.ClusterThrottle, opts v1.UpdateOptions) (result *v1alpha1.ClusterThrottle, err error)

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

func (*FakeClusterThrottles) UpdateStatus

func (c *FakeClusterThrottles) UpdateStatus(ctx context.Context, clusterThrottle *v1alpha1.ClusterThrottle, opts v1.UpdateOptions) (*v1alpha1.ClusterThrottle, error)

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

func (*FakeClusterThrottles) Watch

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

type FakeScheduleV1alpha1

type FakeScheduleV1alpha1 struct {
	*testing.Fake
}

func (*FakeScheduleV1alpha1) ClusterThrottles

func (*FakeScheduleV1alpha1) RESTClient

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

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

func (*FakeScheduleV1alpha1) Throttles

func (c *FakeScheduleV1alpha1) Throttles(namespace string) v1alpha1.ThrottleInterface

type FakeThrottles

type FakeThrottles struct {
	Fake *FakeScheduleV1alpha1
	// contains filtered or unexported fields
}

FakeThrottles implements ThrottleInterface

func (*FakeThrottles) Create

func (c *FakeThrottles) Create(ctx context.Context, throttle *v1alpha1.Throttle, opts v1.CreateOptions) (result *v1alpha1.Throttle, err error)

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

func (*FakeThrottles) Delete

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

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

func (*FakeThrottles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeThrottles) Get

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

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

func (*FakeThrottles) List

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

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

func (*FakeThrottles) Patch

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

Patch applies the patch and returns the patched throttle.

func (*FakeThrottles) Update

func (c *FakeThrottles) Update(ctx context.Context, throttle *v1alpha1.Throttle, opts v1.UpdateOptions) (result *v1alpha1.Throttle, err error)

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

func (*FakeThrottles) UpdateStatus

func (c *FakeThrottles) UpdateStatus(ctx context.Context, throttle *v1alpha1.Throttle, opts v1.UpdateOptions) (*v1alpha1.Throttle, error)

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

func (*FakeThrottles) Watch

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

Jump to

Keyboard shortcuts

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