client

package
v2.0.0-alpha3+incompat... Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteCustomResourceDefinition

func DeleteCustomResourceDefinition(clientset apiextensionsclient.Interface) error

DeleteCustomResourceDefinition deletes the Workflow CRD

func NewRESTClient

func NewRESTClient(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error)

NewRESTClient returns a generic RESTClient that operates on kubernetes-like APIs

Types

type WorkflowClient

type WorkflowClient struct {
	// contains filtered or unexported fields
}

func NewWorkflowClient

func NewWorkflowClient(cl rest.Interface, scheme *runtime.Scheme, namespace string) *WorkflowClient

func (*WorkflowClient) CreateWorkflow

func (f *WorkflowClient) CreateWorkflow(obj *wfv1.Workflow) (*wfv1.Workflow, error)

func (*WorkflowClient) DeleteWorkflow

func (f *WorkflowClient) DeleteWorkflow(name string, options *metav1.DeleteOptions) error

func (*WorkflowClient) GetWorkflow

func (f *WorkflowClient) GetWorkflow(name string) (*wfv1.Workflow, error)

func (*WorkflowClient) ListWorkflows

func (f *WorkflowClient) ListWorkflows(opts metav1.ListOptions) (*wfv1.WorkflowList, error)

func (*WorkflowClient) PatchWorkflow

func (f *WorkflowClient) PatchWorkflow(name string, pt types.PatchType, data []byte, subresources ...string) (*wfv1.Workflow, error)

PatchWorkflow applies the patch and returns the patched workflow.

func (*WorkflowClient) UpdateWorkflow

func (f *WorkflowClient) UpdateWorkflow(obj *wfv1.Workflow) (*wfv1.Workflow, error)

Jump to

Keyboard shortcuts

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