Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChainedJobTransformer ¶
type ChainedJobTransformer []JobTransformer
ChainedJobTransformer is a slice of Transformers that runs in sequence
type JobDefaults ¶ added in v1.1.0
type JobTransformer ¶ added in v1.1.1
JobTransformer is an interface that can be used to modify a job in place, such as setting default values or migrating.
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, requesterPubKey model.PublicKey) JobTransformer
RequesterInfo is a transformer that sets the requester ID and public key in the job meta.
Click to show internal directories.
Click to hide internal directories.