raw

package
v0.0.0-...-41e44c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProjectCommitResponse statuses
	Planning  = "PLANNING"
	Planned   = "PLANNED"
	Started   = "STARTED"
	Completed = "COMPLETED"
)
View Source
const PlatformTerminalPrefix = "platform:"

Variables

View Source
var (
	WalkViaSingleSource = WalkStrategy{
		TagSource,
		true,
	}
	WalkViaMultiSource = WalkStrategy{
		TagSource,
		false,
	}
	WalkViaDeps = WalkStrategy{
		TagDependency,
		false,
	}
)

Functions

func IsStateToolMimeType

func IsStateToolMimeType(mimetype string) bool

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) LookupMap

func (b *Build) LookupMap() map[strfmt.UUID]interface{}

func (*Build) WalkViaRuntimeDeps

func (b *Build) WalkViaRuntimeDeps(nodeIDs []strfmt.UUID, walk walkFunc) error

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

type BuildLogID struct {
	ID         string      `json:"id"`
	PlatformID strfmt.UUID `json:"platformID"`
}

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

type NamedTarget struct {
	Tag     string        `json:"tag"`
	NodeIDs []strfmt.UUID `json:"nodeIds"`
}

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL