fake

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 10

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 FakeRuns added in v0.15.0

type FakeRuns struct {
	Fake *FakeTektonV1alpha1
	// contains filtered or unexported fields
}

FakeRuns implements RunInterface

func (*FakeRuns) Create added in v0.15.0

func (c *FakeRuns) Create(ctx context.Context, run *v1alpha1.Run, opts v1.CreateOptions) (result *v1alpha1.Run, err error)

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

func (*FakeRuns) Delete added in v0.15.0

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

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

func (*FakeRuns) DeleteCollection added in v0.15.0

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

DeleteCollection deletes a collection of objects.

func (*FakeRuns) Get added in v0.15.0

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

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

func (*FakeRuns) List added in v0.15.0

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

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

func (*FakeRuns) Patch added in v0.15.0

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

Patch applies the patch and returns the patched run.

func (*FakeRuns) Update added in v0.15.0

func (c *FakeRuns) Update(ctx context.Context, run *v1alpha1.Run, opts v1.UpdateOptions) (result *v1alpha1.Run, err error)

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

func (*FakeRuns) UpdateStatus added in v0.15.0

func (c *FakeRuns) UpdateStatus(ctx context.Context, run *v1alpha1.Run, opts v1.UpdateOptions) (*v1alpha1.Run, error)

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

func (*FakeRuns) Watch added in v0.15.0

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

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

type FakeStepActions added in v0.53.0

type FakeStepActions struct {
	Fake *FakeTektonV1alpha1
	// contains filtered or unexported fields
}

FakeStepActions implements StepActionInterface

func (*FakeStepActions) Create added in v0.53.0

func (c *FakeStepActions) Create(ctx context.Context, stepAction *v1alpha1.StepAction, opts v1.CreateOptions) (result *v1alpha1.StepAction, err error)

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

func (*FakeStepActions) Delete added in v0.53.0

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

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

func (*FakeStepActions) DeleteCollection added in v0.53.0

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

DeleteCollection deletes a collection of objects.

func (*FakeStepActions) Get added in v0.53.0

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

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

func (*FakeStepActions) List added in v0.53.0

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

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

func (*FakeStepActions) Patch added in v0.53.0

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

Patch applies the patch and returns the patched stepAction.

func (*FakeStepActions) Update added in v0.53.0

func (c *FakeStepActions) Update(ctx context.Context, stepAction *v1alpha1.StepAction, opts v1.UpdateOptions) (result *v1alpha1.StepAction, err error)

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

func (*FakeStepActions) Watch added in v0.53.0

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

type FakeTektonV1alpha1

type FakeTektonV1alpha1 struct {
	*testing.Fake
}

func (*FakeTektonV1alpha1) RESTClient

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

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

func (*FakeTektonV1alpha1) Runs added in v0.15.0

func (c *FakeTektonV1alpha1) Runs(namespace string) v1alpha1.RunInterface

func (*FakeTektonV1alpha1) StepActions added in v0.53.0

func (c *FakeTektonV1alpha1) StepActions(namespace string) v1alpha1.StepActionInterface

func (*FakeTektonV1alpha1) VerificationPolicies added in v0.43.0

func (c *FakeTektonV1alpha1) VerificationPolicies(namespace string) v1alpha1.VerificationPolicyInterface

type FakeVerificationPolicies added in v0.43.0

type FakeVerificationPolicies struct {
	Fake *FakeTektonV1alpha1
	// contains filtered or unexported fields
}

FakeVerificationPolicies implements VerificationPolicyInterface

func (*FakeVerificationPolicies) Create added in v0.43.0

func (c *FakeVerificationPolicies) Create(ctx context.Context, verificationPolicy *v1alpha1.VerificationPolicy, opts v1.CreateOptions) (result *v1alpha1.VerificationPolicy, err error)

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

func (*FakeVerificationPolicies) Delete added in v0.43.0

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

func (*FakeVerificationPolicies) DeleteCollection added in v0.43.0

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

DeleteCollection deletes a collection of objects.

func (*FakeVerificationPolicies) Get added in v0.43.0

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

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

func (*FakeVerificationPolicies) List added in v0.43.0

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

func (*FakeVerificationPolicies) Patch added in v0.43.0

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

Patch applies the patch and returns the patched verificationPolicy.

func (*FakeVerificationPolicies) Update added in v0.43.0

func (c *FakeVerificationPolicies) Update(ctx context.Context, verificationPolicy *v1alpha1.VerificationPolicy, opts v1.UpdateOptions) (result *v1alpha1.VerificationPolicy, err error)

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

func (*FakeVerificationPolicies) Watch added in v0.43.0

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

Jump to

Keyboard shortcuts

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