Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChainedTransformer ¶ added in v1.1.4
type ChainedTransformer[T any] []GenericTransformer[T]
ChainedTransformer is a slice of Transformers that runs in sequence
type GenericTransformer ¶ added in v1.1.4
GenericTransformer is an interface that can be used to modify an object in place.
type JobDefaults ¶ added in v1.1.0
type JobTransformer ¶ added in v1.1.1
type JobTransformer interface { GenericTransformer[*models.Job] }
JobTransformer is an interface that can be used to modify a job in place, such as setting default values or migrating.
func DefaultPublisher ¶ added in v1.2.2
func DefaultPublisher(publisherConfig *models.SpecConfig) JobTransformer
func DefaultsApplier ¶ added in v1.1.0
func DefaultsApplier(defaults JobDefaults) JobTransformer
DefaultsApplier is a transformer that applies default values to the job.
func NameOptional ¶ added in v1.1.1
func NameOptional() JobTransformer
NameOptional is a transformer that sets the job name to the job ID if it is empty.
func RequesterInfo ¶ added in v1.1.0
func RequesterInfo(requesterNodeID string) JobTransformer
RequesterInfo is a transformer that sets the requester ID in the job meta.
type ResultFn ¶ added in v1.1.4
type ResultFn func(context.Context, *models.SpecConfig) error
ResultFn is a function that implements ResultTransformer transform interface.
type ResultTransformer ¶ added in v1.1.4
type ResultTransformer interface { GenericTransformer[*models.SpecConfig] }
ResultTransformer is an interface that can be used to modify a result in place.