fake

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 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 FakeCycloneV1alpha1

type FakeCycloneV1alpha1 struct {
	*testing.Fake
}

func (*FakeCycloneV1alpha1) ExecutionClusters added in v0.9.6

func (*FakeCycloneV1alpha1) Projects added in v0.9.3

func (c *FakeCycloneV1alpha1) Projects(namespace string) v1alpha1.ProjectInterface

func (*FakeCycloneV1alpha1) RESTClient

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

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

func (*FakeCycloneV1alpha1) Resources

func (c *FakeCycloneV1alpha1) Resources(namespace string) v1alpha1.ResourceInterface

func (*FakeCycloneV1alpha1) Stages

func (c *FakeCycloneV1alpha1) Stages(namespace string) v1alpha1.StageInterface

func (*FakeCycloneV1alpha1) WorkflowRuns

func (c *FakeCycloneV1alpha1) WorkflowRuns(namespace string) v1alpha1.WorkflowRunInterface

func (*FakeCycloneV1alpha1) WorkflowTriggers

func (c *FakeCycloneV1alpha1) WorkflowTriggers(namespace string) v1alpha1.WorkflowTriggerInterface

func (*FakeCycloneV1alpha1) Workflows

func (c *FakeCycloneV1alpha1) Workflows(namespace string) v1alpha1.WorkflowInterface

type FakeExecutionClusters added in v0.9.6

type FakeExecutionClusters struct {
	Fake *FakeCycloneV1alpha1
}

FakeExecutionClusters implements ExecutionClusterInterface

func (*FakeExecutionClusters) Create added in v0.9.6

func (c *FakeExecutionClusters) Create(ctx context.Context, executionCluster *v1alpha1.ExecutionCluster, opts v1.CreateOptions) (result *v1alpha1.ExecutionCluster, err error)

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

func (*FakeExecutionClusters) Delete added in v0.9.6

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

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

func (*FakeExecutionClusters) DeleteCollection added in v0.9.6

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

DeleteCollection deletes a collection of objects.

func (*FakeExecutionClusters) Get added in v0.9.6

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

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

func (*FakeExecutionClusters) List added in v0.9.6

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

func (*FakeExecutionClusters) Patch added in v0.9.6

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

Patch applies the patch and returns the patched executionCluster.

func (*FakeExecutionClusters) Update added in v0.9.6

func (c *FakeExecutionClusters) Update(ctx context.Context, executionCluster *v1alpha1.ExecutionCluster, opts v1.UpdateOptions) (result *v1alpha1.ExecutionCluster, err error)

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

func (*FakeExecutionClusters) Watch added in v0.9.6

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

type FakeProjects added in v0.9.3

type FakeProjects struct {
	Fake *FakeCycloneV1alpha1
	// contains filtered or unexported fields
}

FakeProjects implements ProjectInterface

func (*FakeProjects) Create added in v0.9.3

func (c *FakeProjects) Create(ctx context.Context, project *v1alpha1.Project, opts v1.CreateOptions) (result *v1alpha1.Project, err error)

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

func (*FakeProjects) Delete added in v0.9.3

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

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

func (*FakeProjects) DeleteCollection added in v0.9.3

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

DeleteCollection deletes a collection of objects.

func (*FakeProjects) Get added in v0.9.3

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

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

func (*FakeProjects) List added in v0.9.3

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

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

func (*FakeProjects) Patch added in v0.9.3

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

Patch applies the patch and returns the patched project.

func (*FakeProjects) Update added in v0.9.3

func (c *FakeProjects) Update(ctx context.Context, project *v1alpha1.Project, opts v1.UpdateOptions) (result *v1alpha1.Project, err error)

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

func (*FakeProjects) Watch added in v0.9.3

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

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

type FakeResources

type FakeResources struct {
	Fake *FakeCycloneV1alpha1
	// contains filtered or unexported fields
}

FakeResources implements ResourceInterface

func (*FakeResources) Create

func (c *FakeResources) Create(ctx context.Context, resource *v1alpha1.Resource, opts v1.CreateOptions) (result *v1alpha1.Resource, err error)

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

func (*FakeResources) Delete

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

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

func (*FakeResources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResources) Get

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

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

func (*FakeResources) List

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

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

func (*FakeResources) Patch

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

Patch applies the patch and returns the patched resource.

func (*FakeResources) Update

func (c *FakeResources) Update(ctx context.Context, resource *v1alpha1.Resource, opts v1.UpdateOptions) (result *v1alpha1.Resource, err error)

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

func (*FakeResources) Watch

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

type FakeStages

type FakeStages struct {
	Fake *FakeCycloneV1alpha1
	// contains filtered or unexported fields
}

FakeStages implements StageInterface

func (*FakeStages) Create

func (c *FakeStages) Create(ctx context.Context, stage *v1alpha1.Stage, opts v1.CreateOptions) (result *v1alpha1.Stage, err error)

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

func (*FakeStages) Delete

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

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

func (*FakeStages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStages) Get

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

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

func (*FakeStages) List

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

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

func (*FakeStages) Patch

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

Patch applies the patch and returns the patched stage.

func (*FakeStages) Update

func (c *FakeStages) Update(ctx context.Context, stage *v1alpha1.Stage, opts v1.UpdateOptions) (result *v1alpha1.Stage, err error)

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

func (*FakeStages) Watch

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

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

type FakeWorkflowRuns

type FakeWorkflowRuns struct {
	Fake *FakeCycloneV1alpha1
	// contains filtered or unexported fields
}

FakeWorkflowRuns implements WorkflowRunInterface

func (*FakeWorkflowRuns) Create

func (c *FakeWorkflowRuns) Create(ctx context.Context, workflowRun *v1alpha1.WorkflowRun, opts v1.CreateOptions) (result *v1alpha1.WorkflowRun, err error)

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

func (*FakeWorkflowRuns) Delete

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

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

func (*FakeWorkflowRuns) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkflowRuns) Get

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

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

func (*FakeWorkflowRuns) List

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

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

func (*FakeWorkflowRuns) Patch

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

Patch applies the patch and returns the patched workflowRun.

func (*FakeWorkflowRuns) Update

func (c *FakeWorkflowRuns) Update(ctx context.Context, workflowRun *v1alpha1.WorkflowRun, opts v1.UpdateOptions) (result *v1alpha1.WorkflowRun, err error)

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

func (*FakeWorkflowRuns) UpdateStatus

func (c *FakeWorkflowRuns) UpdateStatus(ctx context.Context, workflowRun *v1alpha1.WorkflowRun, opts v1.UpdateOptions) (*v1alpha1.WorkflowRun, error)

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

func (*FakeWorkflowRuns) Watch

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

type FakeWorkflowTriggers

type FakeWorkflowTriggers struct {
	Fake *FakeCycloneV1alpha1
	// contains filtered or unexported fields
}

FakeWorkflowTriggers implements WorkflowTriggerInterface

func (*FakeWorkflowTriggers) Create

func (c *FakeWorkflowTriggers) Create(ctx context.Context, workflowTrigger *v1alpha1.WorkflowTrigger, opts v1.CreateOptions) (result *v1alpha1.WorkflowTrigger, err error)

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

func (*FakeWorkflowTriggers) Delete

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

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

func (*FakeWorkflowTriggers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkflowTriggers) Get

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

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

func (*FakeWorkflowTriggers) List

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

func (*FakeWorkflowTriggers) Patch

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

Patch applies the patch and returns the patched workflowTrigger.

func (*FakeWorkflowTriggers) Update

func (c *FakeWorkflowTriggers) Update(ctx context.Context, workflowTrigger *v1alpha1.WorkflowTrigger, opts v1.UpdateOptions) (result *v1alpha1.WorkflowTrigger, err error)

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

func (*FakeWorkflowTriggers) UpdateStatus

func (c *FakeWorkflowTriggers) UpdateStatus(ctx context.Context, workflowTrigger *v1alpha1.WorkflowTrigger, opts v1.UpdateOptions) (*v1alpha1.WorkflowTrigger, error)

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

func (*FakeWorkflowTriggers) Watch

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

type FakeWorkflows

type FakeWorkflows struct {
	Fake *FakeCycloneV1alpha1
	// contains filtered or unexported fields
}

FakeWorkflows implements WorkflowInterface

func (*FakeWorkflows) Create

func (c *FakeWorkflows) Create(ctx context.Context, workflow *v1alpha1.Workflow, opts v1.CreateOptions) (result *v1alpha1.Workflow, err error)

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

func (*FakeWorkflows) Delete

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

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

func (*FakeWorkflows) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkflows) Get

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

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

func (*FakeWorkflows) List

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

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

func (*FakeWorkflows) Patch

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

Patch applies the patch and returns the patched workflow.

func (*FakeWorkflows) Update

func (c *FakeWorkflows) Update(ctx context.Context, workflow *v1alpha1.Workflow, opts v1.UpdateOptions) (result *v1alpha1.Workflow, err error)

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

func (*FakeWorkflows) Watch

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

Jump to

Keyboard shortcuts

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