Documentation ¶
Index ¶
- Constants
- func IsNotFound(err error) bool
- func IsWorkflowStale(err error) bool
- func SetConfig(cfg *Config) error
- type Config
- type FlyteWorkflow
- func NewPassthroughWorkflowStore(_ context.Context, scope promutils.Scope, ...) FlyteWorkflow
- func NewResourceVersionCachingStore(_ context.Context, scope promutils.Scope, workflowStore FlyteWorkflow) FlyteWorkflow
- func NewWorkflowStore(ctx context.Context, cfg *Config, lister v1alpha1.FlyteWorkflowLister, ...) (FlyteWorkflow, error)
- type InmemoryWorkflowStore
- func (i *InmemoryWorkflowStore) Create(ctx context.Context, w *v1alpha1.FlyteWorkflow) error
- func (i *InmemoryWorkflowStore) Delete(ctx context.Context, namespace, name string) error
- func (i *InmemoryWorkflowStore) Get(ctx context.Context, namespace, name string) (*v1alpha1.FlyteWorkflow, error)
- func (i *InmemoryWorkflowStore) Update(ctx context.Context, w *v1alpha1.FlyteWorkflow, priorityClass PriorityClass) (newWF *v1alpha1.FlyteWorkflow, err error)
- func (i *InmemoryWorkflowStore) UpdateStatus(ctx context.Context, w *v1alpha1.FlyteWorkflow, priorityClass PriorityClass) (newWF *v1alpha1.FlyteWorkflow, err error)
- type Policy
- type PriorityClass
Constants ¶
View Source
const ( PolicyInMemory = "InMemory" PolicyPassThrough = "PassThrough" PolicyResourceVersionCache = "ResourceVersionCache" )
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
func IsWorkflowStale ¶
Types ¶
type Config ¶ added in v0.1.26
type Config struct {
Policy Policy `json:"policy" pflag:",Workflow Store Policy to initialize"`
}
type FlyteWorkflow ¶
type FlyteWorkflow interface { Get(ctx context.Context, namespace, name string) (*v1alpha1.FlyteWorkflow, error) UpdateStatus(ctx context.Context, workflow *v1alpha1.FlyteWorkflow, priorityClass PriorityClass) ( newWF *v1alpha1.FlyteWorkflow, err error) Update(ctx context.Context, workflow *v1alpha1.FlyteWorkflow, priorityClass PriorityClass) ( newWF *v1alpha1.FlyteWorkflow, err error) }
func NewPassthroughWorkflowStore ¶
func NewPassthroughWorkflowStore(_ context.Context, scope promutils.Scope, wfClient v1alpha12.FlyteworkflowV1alpha1Interface, flyteworkflowLister listers.FlyteWorkflowLister) FlyteWorkflow
func NewResourceVersionCachingStore ¶
func NewResourceVersionCachingStore(_ context.Context, scope promutils.Scope, workflowStore FlyteWorkflow) FlyteWorkflow
func NewWorkflowStore ¶ added in v0.1.26
func NewWorkflowStore(ctx context.Context, cfg *Config, lister v1alpha1.FlyteWorkflowLister, workflows flyteworkflowv1alpha1.FlyteworkflowV1alpha1Interface, scope promutils.Scope) (FlyteWorkflow, error)
type InmemoryWorkflowStore ¶
type InmemoryWorkflowStore struct {
// contains filtered or unexported fields
}
func NewInMemoryWorkflowStore ¶
func NewInMemoryWorkflowStore() *InmemoryWorkflowStore
func (*InmemoryWorkflowStore) Create ¶
func (i *InmemoryWorkflowStore) Create(ctx context.Context, w *v1alpha1.FlyteWorkflow) error
func (*InmemoryWorkflowStore) Delete ¶
func (i *InmemoryWorkflowStore) Delete(ctx context.Context, namespace, name string) error
func (*InmemoryWorkflowStore) Get ¶
func (i *InmemoryWorkflowStore) Get(ctx context.Context, namespace, name string) (*v1alpha1.FlyteWorkflow, error)
func (*InmemoryWorkflowStore) Update ¶
func (i *InmemoryWorkflowStore) Update(ctx context.Context, w *v1alpha1.FlyteWorkflow, priorityClass PriorityClass) ( newWF *v1alpha1.FlyteWorkflow, err error)
func (*InmemoryWorkflowStore) UpdateStatus ¶
func (i *InmemoryWorkflowStore) UpdateStatus(ctx context.Context, w *v1alpha1.FlyteWorkflow, priorityClass PriorityClass) ( newWF *v1alpha1.FlyteWorkflow, err error)
type PriorityClass ¶
type PriorityClass int
const ( PriorityClassCritical PriorityClass = iota PriorityClassRegular )
Click to show internal directories.
Click to hide internal directories.