26 lines
404 B
Go
26 lines
404 B
Go
package notify
|
|
|
|
import "context"
|
|
|
|
type Event struct {
|
|
PipelineID string
|
|
DestinationID string
|
|
BundleID string
|
|
BundlePath string
|
|
Action string
|
|
Outputs []Output
|
|
}
|
|
|
|
type Output struct {
|
|
Path string
|
|
Kind string
|
|
SourcePath string
|
|
Transform string
|
|
SHA256 string
|
|
Size int64
|
|
}
|
|
|
|
type Notifier interface {
|
|
Notify(ctx context.Context, event Event) error
|
|
}
|