Documentation ¶
Index ¶
- type Options
- type StartMessage
- type Watcher
- func (w *Watcher) AddArtifactSource(specURL string) error
- func (w *Watcher) AttestRun(r *run.Run) (att *attestation.Attestation, err error)
- func (w *Watcher) CollectArtifacts(r *run.Run) error
- func (w *Watcher) GetRun(specURL string) (*run.Run, error)
- func (w *Watcher) LoadAttestation(path string) error
- func (w *Watcher) LoadSnapshots(path string) error
- func (w *Watcher) PublishToTopic(topicString string, message interface{}) (err error)
- func (w *Watcher) SaveSnapshots(path string) error
- func (w *Watcher) Snap() error
- func (w *Watcher) Watch(r *run.Run) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
WaitForBuild bool // When true, the watcher will keep observing the run until it's done
}
type StartMessage ¶
type Watcher ¶
type Watcher struct { DraftAttestation *attestation.Attestation Builder builder.Builder ArtifactStores []store.Store Snapshots []map[string]*snapshot.Snapshot Options Options }
func (*Watcher) AddArtifactSource ¶
AddArtifactSource adds a new source to look for artifacts
func (*Watcher) AttestRun ¶
func (w *Watcher) AttestRun(r *run.Run) (att *attestation.Attestation, err error)
AttestRun generates an attestation from a run tejolote can watch
func (*Watcher) CollectArtifacts ¶
CollectArtifacts queries the storage drivers attached to the run and collects any artifacts found after the build is done
func (*Watcher) LoadAttestation ¶
LoadAttestation loads a partial attestation to complete when a run finished running
func (*Watcher) LoadSnapshots ¶
LoadSnapshots loads saved snapshot state from a file to continue
func (*Watcher) PublishToTopic ¶
PublishToTopic sends the data of a partial attestation to a Pub/Sub topic.
func (*Watcher) SaveSnapshots ¶
SaveSnapshots stores the current state of the storage locations to a file which can be reused when continuing an attestation
Click to show internal directories.
Click to hide internal directories.