fake

package
v0.0.0-...-4fc8c9b Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 10 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 FakeRuns

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

FakeRuns implements RunInterface

func (*FakeRuns) Create

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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeRuns) Get

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

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

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

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

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

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

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

FakeStepActions implements StepActionInterface

func (*FakeStepActions) Create

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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeStepActions) Get

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

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

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

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

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

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

func (*FakeTektonV1alpha1) StepActions

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

func (*FakeTektonV1alpha1) VerificationPolicies

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

type FakeVerificationPolicies

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

FakeVerificationPolicies implements VerificationPolicyInterface

func (*FakeVerificationPolicies) Create

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

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

func (*FakeVerificationPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVerificationPolicies) Get

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

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

func (*FakeVerificationPolicies) Patch

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

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

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