Documentation ¶
Index ¶
- type PostTransformer
- type Transformer
- func DockerImageDigest() Transformer
- func NewEngineMigrator() Transformer
- func NewPublisherMigrator() Transformer
- func NewRequesterInfo(requesterNodeID string, requesterPubKey model.PublicKey) Transformer
- func NewTimeoutApplier(minTimeout, defaultTimeout time.Duration) Transformer
- func RepoExistsOnIPFS(provider storage.StorageProvider) Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostTransformer ¶ added in v1.0.4
PostTransformer is a function that can be used to modify a job after it has been migrated to a new version.
func NewInlineStoragePinner ¶
func NewInlineStoragePinner(provider storage.StorageProvider) PostTransformer
NewInlineStoragePinner returns a job transformer that limits the inline space taken up by inline data. It will scan a job for StorageSpec objects that store their data inline and move any that are too large into IPFS storage. It also limits the total size taken up by inline specs and if this value is exceeded it will move the largest specs into IPFS.
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 ¶
Transformer is a function that can be used to modify a job before it is migrated to a new version.
func DockerImageDigest ¶ added in v1.0.1
func DockerImageDigest() Transformer
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() Transformer
Maintains backward compatibility for jobs that were defined with Publisher and PublisherSpec
func NewRequesterInfo ¶
func NewRequesterInfo(requesterNodeID string, requesterPubKey model.PublicKey) 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
func RepoExistsOnIPFS ¶ added in v0.3.26
func RepoExistsOnIPFS(provider storage.StorageProvider) Transformer