Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakePipelineRuns
- func (c *FakePipelineRuns) Create(ctx context.Context, pipelineRun *pipelinev1.PipelineRun, ...) (result *pipelinev1.PipelineRun, err error)
- func (c *FakePipelineRuns) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePipelineRuns) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePipelineRuns) Get(ctx context.Context, name string, options v1.GetOptions) (result *pipelinev1.PipelineRun, err error)
- func (c *FakePipelineRuns) List(ctx context.Context, opts v1.ListOptions) (result *pipelinev1.PipelineRunList, err error)
- func (c *FakePipelineRuns) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *pipelinev1.PipelineRun, err error)
- func (c *FakePipelineRuns) Update(ctx context.Context, pipelineRun *pipelinev1.PipelineRun, ...) (result *pipelinev1.PipelineRun, err error)
- func (c *FakePipelineRuns) UpdateStatus(ctx context.Context, pipelineRun *pipelinev1.PipelineRun, ...) (*pipelinev1.PipelineRun, error)
- func (c *FakePipelineRuns) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePipelines
- func (c *FakePipelines) Create(ctx context.Context, pipeline *pipelinev1.Pipeline, opts v1.CreateOptions) (result *pipelinev1.Pipeline, err error)
- func (c *FakePipelines) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePipelines) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePipelines) Get(ctx context.Context, name string, options v1.GetOptions) (result *pipelinev1.Pipeline, err error)
- func (c *FakePipelines) List(ctx context.Context, opts v1.ListOptions) (result *pipelinev1.PipelineList, err error)
- func (c *FakePipelines) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *pipelinev1.Pipeline, err error)
- func (c *FakePipelines) Update(ctx context.Context, pipeline *pipelinev1.Pipeline, opts v1.UpdateOptions) (result *pipelinev1.Pipeline, err error)
- func (c *FakePipelines) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeTaskRuns
- func (c *FakeTaskRuns) Create(ctx context.Context, taskRun *pipelinev1.TaskRun, opts v1.CreateOptions) (result *pipelinev1.TaskRun, err error)
- func (c *FakeTaskRuns) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeTaskRuns) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeTaskRuns) Get(ctx context.Context, name string, options v1.GetOptions) (result *pipelinev1.TaskRun, err error)
- func (c *FakeTaskRuns) List(ctx context.Context, opts v1.ListOptions) (result *pipelinev1.TaskRunList, err error)
- func (c *FakeTaskRuns) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *pipelinev1.TaskRun, err error)
- func (c *FakeTaskRuns) Update(ctx context.Context, taskRun *pipelinev1.TaskRun, opts v1.UpdateOptions) (result *pipelinev1.TaskRun, err error)
- func (c *FakeTaskRuns) UpdateStatus(ctx context.Context, taskRun *pipelinev1.TaskRun, opts v1.UpdateOptions) (*pipelinev1.TaskRun, error)
- func (c *FakeTaskRuns) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeTasks
- func (c *FakeTasks) Create(ctx context.Context, task *pipelinev1.Task, opts v1.CreateOptions) (result *pipelinev1.Task, err error)
- func (c *FakeTasks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeTasks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeTasks) Get(ctx context.Context, name string, options v1.GetOptions) (result *pipelinev1.Task, err error)
- func (c *FakeTasks) List(ctx context.Context, opts v1.ListOptions) (result *pipelinev1.TaskList, err error)
- func (c *FakeTasks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *pipelinev1.Task, err error)
- func (c *FakeTasks) Update(ctx context.Context, task *pipelinev1.Task, opts v1.UpdateOptions) (result *pipelinev1.Task, err error)
- func (c *FakeTasks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeTektonV1
- func (c *FakeTektonV1) PipelineRuns(namespace string) v1.PipelineRunInterface
- func (c *FakeTektonV1) Pipelines(namespace string) v1.PipelineInterface
- func (c *FakeTektonV1) RESTClient() rest.Interface
- func (c *FakeTektonV1) TaskRuns(namespace string) v1.TaskRunInterface
- func (c *FakeTektonV1) Tasks(namespace string) v1.TaskInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePipelineRuns ¶ added in v0.40.0
type FakePipelineRuns struct { Fake *FakeTektonV1 // contains filtered or unexported fields }
FakePipelineRuns implements PipelineRunInterface
func (*FakePipelineRuns) Create ¶ added in v0.40.0
func (c *FakePipelineRuns) Create(ctx context.Context, pipelineRun *pipelinev1.PipelineRun, opts v1.CreateOptions) (result *pipelinev1.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 ¶ added in v0.40.0
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 ¶ added in v0.40.0
func (c *FakePipelineRuns) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePipelineRuns) Get ¶ added in v0.40.0
func (c *FakePipelineRuns) Get(ctx context.Context, name string, options v1.GetOptions) (result *pipelinev1.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 ¶ added in v0.40.0
func (c *FakePipelineRuns) List(ctx context.Context, opts v1.ListOptions) (result *pipelinev1.PipelineRunList, err error)
List takes label and field selectors, and returns the list of PipelineRuns that match those selectors.
func (*FakePipelineRuns) Patch ¶ added in v0.40.0
func (c *FakePipelineRuns) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *pipelinev1.PipelineRun, err error)
Patch applies the patch and returns the patched pipelineRun.
func (*FakePipelineRuns) Update ¶ added in v0.40.0
func (c *FakePipelineRuns) Update(ctx context.Context, pipelineRun *pipelinev1.PipelineRun, opts v1.UpdateOptions) (result *pipelinev1.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 ¶ added in v0.40.0
func (c *FakePipelineRuns) UpdateStatus(ctx context.Context, pipelineRun *pipelinev1.PipelineRun, opts v1.UpdateOptions) (*pipelinev1.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 ¶ added in v0.40.0
func (c *FakePipelineRuns) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested pipelineRuns.
type FakePipelines ¶ added in v0.39.0
type FakePipelines struct { Fake *FakeTektonV1 // contains filtered or unexported fields }
FakePipelines implements PipelineInterface
func (*FakePipelines) Create ¶ added in v0.39.0
func (c *FakePipelines) Create(ctx context.Context, pipeline *pipelinev1.Pipeline, opts v1.CreateOptions) (result *pipelinev1.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.39.0
func (c *FakePipelines) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the pipeline and deletes it. Returns an error if one occurs.
func (*FakePipelines) DeleteCollection ¶ added in v0.39.0
func (c *FakePipelines) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePipelines) Get ¶ added in v0.39.0
func (c *FakePipelines) Get(ctx context.Context, name string, options v1.GetOptions) (result *pipelinev1.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.39.0
func (c *FakePipelines) List(ctx context.Context, opts v1.ListOptions) (result *pipelinev1.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.39.0
func (c *FakePipelines) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *pipelinev1.Pipeline, err error)
Patch applies the patch and returns the patched pipeline.
func (*FakePipelines) Update ¶ added in v0.39.0
func (c *FakePipelines) Update(ctx context.Context, pipeline *pipelinev1.Pipeline, opts v1.UpdateOptions) (result *pipelinev1.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.39.0
func (c *FakePipelines) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested pipelines.
type FakeTaskRuns ¶ added in v0.40.0
type FakeTaskRuns struct { Fake *FakeTektonV1 // contains filtered or unexported fields }
FakeTaskRuns implements TaskRunInterface
func (*FakeTaskRuns) Create ¶ added in v0.40.0
func (c *FakeTaskRuns) Create(ctx context.Context, taskRun *pipelinev1.TaskRun, opts v1.CreateOptions) (result *pipelinev1.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.40.0
func (c *FakeTaskRuns) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the taskRun and deletes it. Returns an error if one occurs.
func (*FakeTaskRuns) DeleteCollection ¶ added in v0.40.0
func (c *FakeTaskRuns) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTaskRuns) Get ¶ added in v0.40.0
func (c *FakeTaskRuns) Get(ctx context.Context, name string, options v1.GetOptions) (result *pipelinev1.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.40.0
func (c *FakeTaskRuns) List(ctx context.Context, opts v1.ListOptions) (result *pipelinev1.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.40.0
func (c *FakeTaskRuns) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *pipelinev1.TaskRun, err error)
Patch applies the patch and returns the patched taskRun.
func (*FakeTaskRuns) Update ¶ added in v0.40.0
func (c *FakeTaskRuns) Update(ctx context.Context, taskRun *pipelinev1.TaskRun, opts v1.UpdateOptions) (result *pipelinev1.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.40.0
func (c *FakeTaskRuns) UpdateStatus(ctx context.Context, taskRun *pipelinev1.TaskRun, opts v1.UpdateOptions) (*pipelinev1.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.40.0
func (c *FakeTaskRuns) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested taskRuns.
type FakeTasks ¶
type FakeTasks struct { Fake *FakeTektonV1 // contains filtered or unexported fields }
FakeTasks implements TaskInterface
func (*FakeTasks) Create ¶
func (c *FakeTasks) Create(ctx context.Context, task *pipelinev1.Task, opts v1.CreateOptions) (result *pipelinev1.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 ¶
Delete takes name of the task and deletes it. Returns an error if one occurs.
func (*FakeTasks) DeleteCollection ¶
func (c *FakeTasks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTasks) Get ¶
func (c *FakeTasks) Get(ctx context.Context, name string, options v1.GetOptions) (result *pipelinev1.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 ¶
func (c *FakeTasks) List(ctx context.Context, opts v1.ListOptions) (result *pipelinev1.TaskList, err error)
List takes label and field selectors, and returns the list of Tasks that match those selectors.
func (*FakeTasks) Patch ¶
func (c *FakeTasks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *pipelinev1.Task, err error)
Patch applies the patch and returns the patched task.
func (*FakeTasks) Update ¶
func (c *FakeTasks) Update(ctx context.Context, task *pipelinev1.Task, opts v1.UpdateOptions) (result *pipelinev1.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.
type FakeTektonV1 ¶
func (*FakeTektonV1) PipelineRuns ¶ added in v0.40.0
func (c *FakeTektonV1) PipelineRuns(namespace string) v1.PipelineRunInterface
func (*FakeTektonV1) Pipelines ¶ added in v0.39.0
func (c *FakeTektonV1) Pipelines(namespace string) v1.PipelineInterface
func (*FakeTektonV1) RESTClient ¶
func (c *FakeTektonV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeTektonV1) TaskRuns ¶ added in v0.40.0
func (c *FakeTektonV1) TaskRuns(namespace string) v1.TaskRunInterface
func (*FakeTektonV1) Tasks ¶
func (c *FakeTektonV1) Tasks(namespace string) v1.TaskInterface