fake

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 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 FakePlans

type FakePlans struct {
	Fake *FakeUpgradeV1
	// contains filtered or unexported fields
}

FakePlans implements PlanInterface

func (*FakePlans) Create

func (c *FakePlans) Create(ctx context.Context, plan *v1.Plan, opts metav1.CreateOptions) (result *v1.Plan, err error)

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

func (*FakePlans) Delete

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

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

func (*FakePlans) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePlans) Get

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

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

func (*FakePlans) List

func (c *FakePlans) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PlanList, err error)

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

func (*FakePlans) Patch

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

Patch applies the patch and returns the patched plan.

func (*FakePlans) Update

func (c *FakePlans) Update(ctx context.Context, plan *v1.Plan, opts metav1.UpdateOptions) (result *v1.Plan, err error)

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

func (*FakePlans) UpdateStatus

func (c *FakePlans) UpdateStatus(ctx context.Context, plan *v1.Plan, opts metav1.UpdateOptions) (*v1.Plan, error)

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

func (*FakePlans) Watch

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

type FakeUpgradeV1

type FakeUpgradeV1 struct {
	*testing.Fake
}

func (*FakeUpgradeV1) Plans

func (c *FakeUpgradeV1) Plans(namespace string) v1.PlanInterface

func (*FakeUpgradeV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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