publisher

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 2 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 {
	model.Providable

	// 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,
		job model.Job,
		hostID string,
		resultPath string,
	) (model.StorageSpec, 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 interface {
	model.Provider[model.Publisher, Publisher]
}

PublisherProvider returns a publisher for the given publisher type

Directories

Path Synopsis
Package combo provides different Publisher implementations that delegate the work to real implementations, such as calling another publisher if one fails.
Package combo provides different Publisher implementations that delegate the work to real implementations, such as calling another publisher if one fails.
api

Jump to

Keyboard shortcuts

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