Documentation ¶
Index ¶
Constants ¶
const ( // ProjectCommitResponse statuses Planning = "PLANNING" Planned = "PLANNED" Started = "STARTED" Completed = "COMPLETED" )
const PlatformTerminalPrefix = "platform:"
Variables ¶
var ( WalkViaSingleSource = WalkStrategy{ TagSource, true, } WalkViaMultiSource = WalkStrategy{ TagSource, false, } WalkViaDeps = WalkStrategy{ TagDependency, false, } )
Functions ¶
func IsStateToolMimeType ¶
Types ¶
type Artifact ¶
type Artifact struct { Type string `json:"__typename"` NodeID strfmt.UUID `json:"nodeId"` DisplayName string `json:"displayName"` MimeType string `json:"mimeType"` GeneratedBy strfmt.UUID `json:"generatedBy"` RuntimeDependencies []strfmt.UUID `json:"runtimeDependencies"` Status string `json:"status"` URL string `json:"url"` LogURL string `json:"logURL"` Errors []string `json:"errors"` Checksum string `json:"checksum"` }
Artifact represents a downloadable artifact. This artifact may or may not be installable by the State Tool.
type Build ¶
type Build struct { Type string `json:"__typename"` BuildPlanID strfmt.UUID `json:"buildPlanID"` Status string `json:"status"` Terminals []*NamedTarget `json:"terminals"` Artifacts []*Artifact `json:"artifacts"` Steps []*Step `json:"steps"` Sources []*Source `json:"sources"` BuildLogIDs []*BuildLogID `json:"buildLogIds"` ResolvedRequirements []*RawResolvedRequirement `json:"resolvedRequirements"` // contains filtered or unexported fields }
func (*Build) WalkViaRuntimeDeps ¶
func (*Build) WalkViaSteps ¶
func (b *Build) WalkViaSteps(nodeIDs []strfmt.UUID, strategy WalkStrategy, walk walkFunc) error
WalkViaSteps walks the graph and reports on nodes it encounters Note that the same node can be encountered multiple times if it is referenced in the graph multiple times. In this case the context around the node may be different, even if the node itself isn't.
type BuildLogID ¶
BuildLogID is the ID used to initiate a connection with the BuildLogStreamer.
type IngredientSource ¶
type IngredientSource struct { IngredientID strfmt.UUID `json:"ingredientId"` IngredientVersionID strfmt.UUID `json:"ingredientVersionId"` Revision int `json:"revision"` Name string `json:"name"` Namespace string `json:"namespace"` Version string `json:"version"` Licenses []string `json:"licenses"` }
type NamedTarget ¶
NamedTarget is a special target used for terminals.
type RawResolvedRequirement ¶
type RawResolvedRequirement struct { Requirement *types.Requirement `json:"requirement"` Source strfmt.UUID `json:"resolvedSource"` }
type Source ¶
type Source struct { NodeID strfmt.UUID `json:"nodeId"` IngredientSource }
Source represents the source of an artifact.
type Step ¶
type Step struct { StepID strfmt.UUID `json:"stepId"` Inputs []*NamedTarget `json:"inputs"` Outputs []string `json:"outputs"` }
Step represents a single step in the build plan. A step takes some input, processes it, and produces some output. This is usually a build step. The input represents a set of target IDs and the output are a set of artifact IDs.
type StepInputTag ¶
type StepInputTag string
const ( // Tag types TagSource StepInputTag = "src" TagDependency StepInputTag = "deps" )
type WalkStrategy ¶
type WalkStrategy struct {
// contains filtered or unexported fields
}