fake

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

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 FakePipelineRuns

type FakePipelineRuns struct {
	Fake *FakeStewardV1alpha1
	// contains filtered or unexported fields
}

FakePipelineRuns implements PipelineRunInterface

func (*FakePipelineRuns) Apply added in v0.39.1

Apply takes the given apply declarative configuration, applies it and returns the applied pipelineRun.

func (*FakePipelineRuns) ApplyStatus added in v0.39.1

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

func (*FakePipelineRuns) Create

func (c *FakePipelineRuns) Create(ctx context.Context, pipelineRun *v1alpha1.PipelineRun, opts v1.CreateOptions) (result *v1alpha1.PipelineRun, err error)

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

func (*FakePipelineRuns) Delete

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

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

func (*FakePipelineRuns) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePipelineRuns) Get

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

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

func (*FakePipelineRuns) List

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

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

func (*FakePipelineRuns) Patch

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

Patch applies the patch and returns the patched pipelineRun.

func (*FakePipelineRuns) Update

func (c *FakePipelineRuns) Update(ctx context.Context, pipelineRun *v1alpha1.PipelineRun, opts v1.UpdateOptions) (result *v1alpha1.PipelineRun, err error)

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

func (*FakePipelineRuns) UpdateStatus

func (c *FakePipelineRuns) UpdateStatus(ctx context.Context, pipelineRun *v1alpha1.PipelineRun, opts v1.UpdateOptions) (*v1alpha1.PipelineRun, error)

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

func (*FakePipelineRuns) Watch

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

type FakeStewardV1alpha1

type FakeStewardV1alpha1 struct {
	*testing.Fake
}

func (*FakeStewardV1alpha1) PipelineRuns

func (c *FakeStewardV1alpha1) PipelineRuns(namespace string) v1alpha1.PipelineRunInterface

func (*FakeStewardV1alpha1) RESTClient

func (c *FakeStewardV1alpha1) 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