client

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

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeClient

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

KubeClient is a client to call the core Kubernetes APIs.

func NewKubeClient

func NewKubeClient(kubeClientSet kubernetes.Interface, recorder record.EventRecorder) *KubeClient

NewKubeClient creates a new client to call the core Kubernetes APIs.

func (*KubeClient) RecordSyncFailure

func (k *KubeClient) RecordSyncFailure(swf *swfapi.ScheduledWorkflow, message string)

RecordSyncFailure records the failure of a sync.

func (*KubeClient) RecordSyncSuccess

func (k *KubeClient) RecordSyncSuccess(swf *swfapi.ScheduledWorkflow, message string)

RecordSyncSuccess records the success of a sync.

type ScheduledWorkflowClient

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

ScheduledWorkflowClient is a client to call the ScheduledWorkflow API.

func NewScheduledWorkflowClient

func NewScheduledWorkflowClient(clientSet swfclientset.Interface,
	informer v1beta1.ScheduledWorkflowInformer) *ScheduledWorkflowClient

NewScheduledWorkflowClient creates an instance of the client.

func (*ScheduledWorkflowClient) AddEventHandler

func (p *ScheduledWorkflowClient) AddEventHandler(funcs *cache.ResourceEventHandlerFuncs)

AddEventHandler adds an event handler.

func (*ScheduledWorkflowClient) Get

func (p *ScheduledWorkflowClient) Get(namespace string, name string) (*util.ScheduledWorkflow, error)

Get returns a ScheduledWorkflow, given a namespace and a name.

func (*ScheduledWorkflowClient) HasSynced

func (p *ScheduledWorkflowClient) HasSynced() func() bool

HasSynced returns true if the shared informer's store has synced.

func (*ScheduledWorkflowClient) Update

func (p *ScheduledWorkflowClient) Update(namespace string,
	schedule *util.ScheduledWorkflow) error

Update Updates a ScheduledWorkflow in the Kubernetes API server.

type WorkflowClient

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

WorkflowClient is a client to call the Workflow API.

func NewWorkflowClient

func NewWorkflowClient(clientSet workflowclientset.Interface,
	informer v1alpha1.WorkflowInformer) *WorkflowClient

NewWorkflowClient creates an instance of the WorkflowClient.

func (*WorkflowClient) AddEventHandler

func (p *WorkflowClient) AddEventHandler(funcs *cache.ResourceEventHandlerFuncs)

AddEventHandler adds an event handler.

func (*WorkflowClient) Create

func (p *WorkflowClient) Create(namespace string, workflow *commonutil.Workflow) (
	*commonutil.Workflow, error)

Create creates a workflow given a namespace and its specification.

func (*WorkflowClient) Get

func (p *WorkflowClient) Get(namespace string, name string) (
	wf *commonutil.Workflow, isNotFoundError bool, err error)

Get returns a Workflow, given a namespace and name.

func (*WorkflowClient) HasSynced

func (p *WorkflowClient) HasSynced() func() bool

HasSynced returns true if the shared informer's store has synced.

func (*WorkflowClient) List

func (p *WorkflowClient) List(swfName string, completed bool, minIndex int64) (
	status []swfapi.WorkflowStatus, err error)

List returns a list of workflows given the name of their ScheduledWorkflow, whether they are completed, and their minimum index (to avoid returning the whole list).

Jump to

Keyboard shortcuts

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