publisher

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher interface {
	provider.Providable

	// Validate the job's publisher configuration
	ValidateJob(ctx context.Context, j models.Job) error

	// compute node
	//
	// once the results have been verified we publish them
	// this will result in a "publish" event that will keep track
	// of the details of the storage spec where the results live
	// the returned storage spec might be nill as jobs
	// can have multiple publishers and some publisher
	// implementations don't concern themselves with storage
	// (e.g. notify slack)
	PublishResult(
		ctx context.Context,
		execution *models.Execution,
		resultPath string,
	) (models.SpecConfig, error)
}

Publisher is the interface for publishing results of a job The job spec will choose which publisher(s) it wants to use (there can be multiple publishers configured)

type PublisherProvider

type PublisherProvider = provider.Provider[Publisher]

PublisherProvider returns a publisher for the given publisher type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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