Documentation ¶
Index ¶
- Constants
- Variables
- func ArtifactIDsToMap(ids []ArtifactID) map[ArtifactID]struct{}
- type Artifact
- type ArtifactChangeset
- type ArtifactDownload
- func NewDownloadsFromBuild(buildStatus *headchef_models.V1BuildStatusResponse) (download []ArtifactDownload, err error)
- func NewDownloadsFromBuildPlan(build bpModel.Build, artifacts map[strfmt.UUID]Artifact) ([]ArtifactDownload, error)
- func NewDownloadsFromCamelBuild(buildStatus *headchef_models.V1BuildStatusResponse) ([]ArtifactDownload, error)
- func NewDownloadsFromCamelBuildPlan(build bpModel.Build, artifacts map[strfmt.UUID]Artifact) ([]ArtifactDownload, error)
- type ArtifactID
- type ArtifactUpdate
- type FailedArtifact
- type Map
- type Named
- type NamedMap
Constants ¶
const InstallerTestsSubstr = "-tests."
InstallerTestsSubstr is used to exclude test artifacts, we don't care about them
Variables ¶
var CamelRuntimeBuilding error = errs.New("camel runtime is currently being built")
Functions ¶
func ArtifactIDsToMap ¶
func ArtifactIDsToMap(ids []ArtifactID) map[ArtifactID]struct{}
Types ¶
type Artifact ¶
type Artifact struct { ArtifactID ArtifactID Name string Namespace string Version *string RequestedByOrder bool URL string MimeType string GeneratedBy strfmt.UUID Dependencies []ArtifactID }
Artifact comprises useful information about an artifact that we extracted from a build plan
func (Artifact) NameWithVersion ¶
NameWithVersion returns a string <name>@<version> if artifact has a version specified, otherwise it returns just the name
type ArtifactChangeset ¶
type ArtifactChangeset struct { Added []Artifact Removed []Artifact Updated []ArtifactUpdate }
func NewArtifactChangeset ¶
func NewArtifactChangeset(old, new NamedMap, requestedOnly bool) ArtifactChangeset
NewArtifactChangeset parses two recipes and returns the artifact IDs of artifacts that have changed due to changes in the order requirements
type ArtifactDownload ¶
type ArtifactDownload struct { ArtifactID ArtifactID DownloadURI string UnsignedLogURI string Checksum string }
func NewDownloadsFromBuild ¶
func NewDownloadsFromBuild(buildStatus *headchef_models.V1BuildStatusResponse) (download []ArtifactDownload, err error)
NewDownloadsFromBuild extracts downloadable artifact information from the build status response
func NewDownloadsFromCamelBuild ¶
func NewDownloadsFromCamelBuild(buildStatus *headchef_models.V1BuildStatusResponse) ([]ArtifactDownload, error)
type ArtifactID ¶
ArtifactID represents an artifact ID
func ArtifactIDsFromArtifactSlice ¶
func ArtifactIDsFromArtifactSlice(from []Artifact) []ArtifactID
func ArtifactIDsFromBuildPlanMap ¶
func ArtifactIDsFromBuildPlanMap(from Map) []ArtifactID
type ArtifactUpdate ¶
type ArtifactUpdate struct { From Artifact To Artifact // IngredientChange tells us whether or not this change extends to the ingredient // This can easily be calculated based on From.version!=To.version, but that's not easy to always remember. // Storing it as a property helps surface the behavior and avoid the assumption that an artifact change equals an ingredient change. IngredientChange bool }
type FailedArtifact ¶
type FailedArtifact struct { ArtifactID ArtifactID UnsignedLogURI string ErrorMsg string }
FailedArtifact collects information we want to have on failed artifacts
func NewFailedArtifactsFromBuild ¶
func NewFailedArtifactsFromBuild(buildStatus *headchef_models.V1BuildStatusResponse) []FailedArtifact
NewFailedArtifactsFromBuild extracts artifact information about failed artifacts from the build status response
func NewFailedArtifactsFromBuildPlan ¶
func NewFailedArtifactsFromBuildPlan(build model.Build) []FailedArtifact
type Map ¶
type Map map[ArtifactID]Artifact
Map maps artifact ids to artifact information extracted from a build plan
type Named ¶
type Named map[ArtifactID]string
func ResolveArtifactNames ¶
func ResolveArtifactNames(resolver func(ArtifactID) string, artifacts []ArtifactID) Named