fake

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 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 FakePipelines added in v0.10.0

type FakePipelines struct {
	Fake *FakeTektonV1alpha2
	// contains filtered or unexported fields
}

FakePipelines implements PipelineInterface

func (*FakePipelines) Create added in v0.10.0

func (c *FakePipelines) Create(pipeline *v1alpha2.Pipeline) (result *v1alpha2.Pipeline, err error)

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

func (*FakePipelines) Delete added in v0.10.0

func (c *FakePipelines) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakePipelines) DeleteCollection added in v0.10.0

func (c *FakePipelines) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePipelines) Get added in v0.10.0

func (c *FakePipelines) Get(name string, options v1.GetOptions) (result *v1alpha2.Pipeline, err error)

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

func (*FakePipelines) List added in v0.10.0

func (c *FakePipelines) List(opts v1.ListOptions) (result *v1alpha2.PipelineList, err error)

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

func (*FakePipelines) Patch added in v0.10.0

func (c *FakePipelines) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.Pipeline, err error)

Patch applies the patch and returns the patched pipeline.

func (*FakePipelines) Update added in v0.10.0

func (c *FakePipelines) Update(pipeline *v1alpha2.Pipeline) (result *v1alpha2.Pipeline, err error)

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

func (*FakePipelines) Watch added in v0.10.0

func (c *FakePipelines) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeTaskRuns added in v0.10.0

type FakeTaskRuns struct {
	Fake *FakeTektonV1alpha2
	// contains filtered or unexported fields
}

FakeTaskRuns implements TaskRunInterface

func (*FakeTaskRuns) Create added in v0.10.0

func (c *FakeTaskRuns) Create(taskRun *v1alpha2.TaskRun) (result *v1alpha2.TaskRun, err error)

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

func (*FakeTaskRuns) Delete added in v0.10.0

func (c *FakeTaskRuns) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeTaskRuns) DeleteCollection added in v0.10.0

func (c *FakeTaskRuns) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTaskRuns) Get added in v0.10.0

func (c *FakeTaskRuns) Get(name string, options v1.GetOptions) (result *v1alpha2.TaskRun, err error)

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

func (*FakeTaskRuns) List added in v0.10.0

func (c *FakeTaskRuns) List(opts v1.ListOptions) (result *v1alpha2.TaskRunList, err error)

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

func (*FakeTaskRuns) Patch added in v0.10.0

func (c *FakeTaskRuns) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.TaskRun, err error)

Patch applies the patch and returns the patched taskRun.

func (*FakeTaskRuns) Update added in v0.10.0

func (c *FakeTaskRuns) Update(taskRun *v1alpha2.TaskRun) (result *v1alpha2.TaskRun, err error)

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

func (*FakeTaskRuns) UpdateStatus added in v0.10.0

func (c *FakeTaskRuns) UpdateStatus(taskRun *v1alpha2.TaskRun) (*v1alpha2.TaskRun, error)

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

func (*FakeTaskRuns) Watch added in v0.10.0

func (c *FakeTaskRuns) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeTasks added in v0.10.0

type FakeTasks struct {
	Fake *FakeTektonV1alpha2
	// contains filtered or unexported fields
}

FakeTasks implements TaskInterface

func (*FakeTasks) Create added in v0.10.0

func (c *FakeTasks) Create(task *v1alpha2.Task) (result *v1alpha2.Task, err error)

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

func (*FakeTasks) Delete added in v0.10.0

func (c *FakeTasks) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeTasks) DeleteCollection added in v0.10.0

func (c *FakeTasks) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTasks) Get added in v0.10.0

func (c *FakeTasks) Get(name string, options v1.GetOptions) (result *v1alpha2.Task, err error)

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

func (*FakeTasks) List added in v0.10.0

func (c *FakeTasks) List(opts v1.ListOptions) (result *v1alpha2.TaskList, err error)

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

func (*FakeTasks) Patch added in v0.10.0

func (c *FakeTasks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.Task, err error)

Patch applies the patch and returns the patched task.

func (*FakeTasks) Update added in v0.10.0

func (c *FakeTasks) Update(task *v1alpha2.Task) (result *v1alpha2.Task, err error)

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

func (*FakeTasks) Watch added in v0.10.0

func (c *FakeTasks) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeTektonV1alpha2

type FakeTektonV1alpha2 struct {
	*testing.Fake
}

func (*FakeTektonV1alpha2) Pipelines added in v0.10.0

func (c *FakeTektonV1alpha2) Pipelines(namespace string) v1alpha2.PipelineInterface

func (*FakeTektonV1alpha2) RESTClient

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

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

func (*FakeTektonV1alpha2) TaskRuns added in v0.10.0

func (c *FakeTektonV1alpha2) TaskRuns(namespace string) v1alpha2.TaskRunInterface

func (*FakeTektonV1alpha2) Tasks added in v0.10.0

func (c *FakeTektonV1alpha2) Tasks(namespace string) v1alpha2.TaskInterface

Jump to

Keyboard shortcuts

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