Documentation ¶
Index ¶
- func IDGenerator(_ context.Context, job *models.Job) error
- type ChainedTransformer
- type GenericTransformer
- type JobFn
- type JobTransformer
- func DefaultPublisher(publisherConfig *models.SpecConfig) JobTransformer
- func DefaultsApplier(defaults types.JobDefaults) JobTransformer
- func NameOptional() JobTransformer
- func OrchestratorInstallationID(installationID string) JobTransformer
- func OrchestratorInstanceID(instanceID string) JobTransformer
- func RequesterInfo(requesterNodeID string) JobTransformer
- type ResultFn
- type ResultTransformer
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 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 types.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 OrchestratorInstallationID ¶ added in v1.5.0
func OrchestratorInstallationID(installationID string) JobTransformer
func OrchestratorInstanceID ¶ added in v1.5.0
func OrchestratorInstanceID(instanceID string) JobTransformer
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.