jobtransform

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostTransformer added in v1.0.4

type PostTransformer func(context.Context, *models.Job) (modified bool, err error)

PostTransformer is a function that can be used to modify a job after it has been migrated to a new version.

func NewWasmStorageSpecConverter added in v1.0.4

func NewWasmStorageSpecConverter() PostTransformer

NewWasmStorageSpecConverter returns a job transformer that converts the entry and import modules of wasm engine spec from the legacy storage spec to input source definitions.

type Transformer

type Transformer func(context.Context, *model.Job) (modified bool, err error)

Transformer is a function that can be used to modify a job before it is migrated to a new version.

func NewEngineMigrator added in v1.0.4

func NewEngineMigrator() Transformer

NewEngineMigrator maintains backward compatibility for jobs that were defined with Engine/Wasm/Docker and EngineSpec.

func NewPublisherMigrator added in v0.3.26

func NewPublisherMigrator(defaultPublisher string) Transformer

Maintains backward compatibility for jobs that were defined with Publisher and PublisherSpec

func NewRequesterInfo

func NewRequesterInfo(requesterNodeID string) Transformer

func NewTimeoutApplier

func NewTimeoutApplier(minTimeout, defaultTimeout time.Duration) Transformer

Sets a default timeout value if one is not passed or below an acceptable value

Jump to

Keyboard shortcuts

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