Documentation
¶
Overview ¶
Package build holds build package and artifact managment for robot.
Index ¶
Constants ¶
View Source
const ( UnknownType = Type_UnknownType BuildBot = Type_BuildBot User = Type_User Local = Type_Local )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArtifactHandler ¶
ArtifactHandler is a function used to consume a stream of Artifacts.
type PackageHandler ¶
PackageHandler is a function used to consume a stream of Packages.
type Store ¶
type Store interface {
// SearchArtifacts delivers matching build artifacts to the supplied handler.
SearchArtifacts(ctx context.Context, query *search.Query, handler ArtifactHandler) error
// SearchPackages delivers matching build packages to the supplied handler.
SearchPackages(ctx context.Context, query *search.Query, handler PackageHandler) error
// SearchTracks delivers matching build tracks to the supplied handler.
SearchTracks(ctx context.Context, query *search.Query, handler TrackHandler) error
// Add adds a new build artifact to the store.
Add(ctx context.Context, id string, info *Information) (string, bool, error)
// UpdateTrack updates track information.
UpdateTrack(ctx context.Context, track *Track) (*Track, error)
// UpdatePackage updates package information.
UpdatePackage(ctx context.Context, pkg *Package) (*Package, error)
}
Store is the abstract interface to the storage of build artifacts.
type TrackHandler ¶
TrackHandler is a function used to consume a stream of Tracks.
Click to show internal directories.
Click to hide internal directories.