fake

package
Version: v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 10 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) 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.

func (*FakeStewardV1alpha1) Tenants

func (c *FakeStewardV1alpha1) Tenants(namespace string) v1alpha1.TenantInterface

type FakeTenants

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

FakeTenants implements TenantInterface

func (*FakeTenants) Create

func (c *FakeTenants) Create(ctx context.Context, tenant *v1alpha1.Tenant, opts v1.CreateOptions) (result *v1alpha1.Tenant, err error)

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

func (*FakeTenants) Delete

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

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

func (*FakeTenants) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTenants) Get

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

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

func (*FakeTenants) List

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

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

func (*FakeTenants) Patch

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

Patch applies the patch and returns the patched tenant.

func (*FakeTenants) Update

func (c *FakeTenants) Update(ctx context.Context, tenant *v1alpha1.Tenant, opts v1.UpdateOptions) (result *v1alpha1.Tenant, err error)

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

func (*FakeTenants) UpdateStatus

func (c *FakeTenants) UpdateStatus(ctx context.Context, tenant *v1alpha1.Tenant, opts v1.UpdateOptions) (*v1alpha1.Tenant, error)

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

func (*FakeTenants) Watch

func (c *FakeTenants) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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