state

package
v1.10.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobFlowActionFn

type JobFlowActionFn func(jobflow *v1alpha1.JobFlow, fn UpdateJobFlowStatusFn) error
var (
	// SyncJobFlow will sync queue status.
	SyncJobFlow JobFlowActionFn
)

type State

type State interface {
	// Execute executes the actions based on current state.
	Execute(action v1alpha1.Action) error
}

func NewState

func NewState(jobFlow *v1alpha1.JobFlow) State

NewState gets the state from queue status.

type UpdateJobFlowStatusFn

type UpdateJobFlowStatusFn func(status *v1alpha1.JobFlowStatus, allJobList int)

UpdateJobFlowStatusFn updates the jobFlow status.

Jump to

Keyboard shortcuts

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