fake

package
v0.40.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 9 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 FakeRolloutOrchestrators

type FakeRolloutOrchestrators struct {
	Fake *FakeServingV1
	// contains filtered or unexported fields
}

FakeRolloutOrchestrators implements RolloutOrchestratorInterface

func (*FakeRolloutOrchestrators) Create

func (c *FakeRolloutOrchestrators) Create(ctx context.Context, rolloutOrchestrator *v1.RolloutOrchestrator, opts metav1.CreateOptions) (result *v1.RolloutOrchestrator, err error)

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

func (*FakeRolloutOrchestrators) Delete

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

func (*FakeRolloutOrchestrators) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRolloutOrchestrators) Get

func (c *FakeRolloutOrchestrators) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RolloutOrchestrator, err error)

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

func (*FakeRolloutOrchestrators) List

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

func (*FakeRolloutOrchestrators) Patch

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

Patch applies the patch and returns the patched rolloutOrchestrator.

func (*FakeRolloutOrchestrators) Update

func (c *FakeRolloutOrchestrators) Update(ctx context.Context, rolloutOrchestrator *v1.RolloutOrchestrator, opts metav1.UpdateOptions) (result *v1.RolloutOrchestrator, err error)

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

func (*FakeRolloutOrchestrators) UpdateStatus

func (c *FakeRolloutOrchestrators) UpdateStatus(ctx context.Context, rolloutOrchestrator *v1.RolloutOrchestrator, opts metav1.UpdateOptions) (*v1.RolloutOrchestrator, error)

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

func (*FakeRolloutOrchestrators) Watch

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

type FakeServingV1

type FakeServingV1 struct {
	*testing.Fake
}

func (*FakeServingV1) RESTClient

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

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

func (*FakeServingV1) RolloutOrchestrators

func (c *FakeServingV1) RolloutOrchestrators(namespace string) v1.RolloutOrchestratorInterface

func (*FakeServingV1) StagePodAutoscalers

func (c *FakeServingV1) StagePodAutoscalers(namespace string) v1.StagePodAutoscalerInterface

type FakeStagePodAutoscalers

type FakeStagePodAutoscalers struct {
	Fake *FakeServingV1
	// contains filtered or unexported fields
}

FakeStagePodAutoscalers implements StagePodAutoscalerInterface

func (*FakeStagePodAutoscalers) Create

func (c *FakeStagePodAutoscalers) Create(ctx context.Context, stagePodAutoscaler *v1.StagePodAutoscaler, opts metav1.CreateOptions) (result *v1.StagePodAutoscaler, err error)

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

func (*FakeStagePodAutoscalers) Delete

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

func (*FakeStagePodAutoscalers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStagePodAutoscalers) Get

func (c *FakeStagePodAutoscalers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.StagePodAutoscaler, err error)

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

func (*FakeStagePodAutoscalers) List

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

func (*FakeStagePodAutoscalers) Patch

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

Patch applies the patch and returns the patched stagePodAutoscaler.

func (*FakeStagePodAutoscalers) Update

func (c *FakeStagePodAutoscalers) Update(ctx context.Context, stagePodAutoscaler *v1.StagePodAutoscaler, opts metav1.UpdateOptions) (result *v1.StagePodAutoscaler, err error)

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

func (*FakeStagePodAutoscalers) UpdateStatus

func (c *FakeStagePodAutoscalers) UpdateStatus(ctx context.Context, stagePodAutoscaler *v1.StagePodAutoscaler, opts metav1.UpdateOptions) (*v1.StagePodAutoscaler, error)

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

func (*FakeStagePodAutoscalers) Watch

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

Jump to

Keyboard shortcuts

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