runtime

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NeedsBuildscriptResetError = errors.New("needs runtime reset")

NeedsBuildscriptResetError is an error returned when the runtime is improperly referenced in the project (eg. missing buildscript)

View Source
var NeedsCommitError = errors.New("runtime needs commit")

NeedsCommitError is an error returned when the local runtime's build script has changes that need staging. This is not a fatal error. A runtime can still be used, but a warning should be emitted.

Functions

func IsRuntimeDir

func IsRuntimeDir(dir string) bool

Types

type Configurable

type Configurable interface {
	GetString(key string) string
	GetBool(key string) bool
}

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

func New

New attempts to create a new runtime from local storage.

func (*Runtime) BuildPlan

func (r *Runtime) BuildPlan() (*bpModel.Build, error)

func (*Runtime) Disabled

func (r *Runtime) Disabled() bool

func (*Runtime) Env

func (r *Runtime) Env(inherit bool, useExecutors bool) (map[string]string, error)

Env returns a key-value map of the environment variables that need to be set for this runtime It's different from envDef in that it merges in the current active environment and points the PATH variable to the Executors directory if requested

func (*Runtime) ExecutableDirs

func (r *Runtime) ExecutableDirs() (envdef.ExecutablePaths, error)

func (*Runtime) ExecutablePaths

func (r *Runtime) ExecutablePaths() (envdef.ExecutablePaths, error)

func (*Runtime) HasCache

func (r *Runtime) HasCache() bool

HasCache tells us whether this runtime has any cached files. Note this does NOT tell you whether the cache is valid.

func (*Runtime) NeedsUpdate

func (r *Runtime) NeedsUpdate() bool

func (*Runtime) ResolvedArtifacts

func (r *Runtime) ResolvedArtifacts() ([]*artifact.Artifact, error)

func (*Runtime) Setup

func (r *Runtime) Setup(eventHandler events.Handler) *setup.Setup

func (*Runtime) SolveAndUpdate

func (r *Runtime) SolveAndUpdate(eventHandler events.Handler) error

SolveAndUpdate updates the runtime by downloading all necessary artifacts from the Platform and installing them locally.

func (*Runtime) Target

func (r *Runtime) Target() setup.Targeter

func (*Runtime) Update

func (r *Runtime) Update(setup *setup.Setup, buildResult *model.BuildResult, commit *bpModel.Commit) (rerr error)

Directories

Path Synopsis
Package envdef implements a parser for the runtime environment for alternative builds
Package envdef implements a parser for the runtime environment for alternative builds
execmeta
Package execmeta models the executor meta data that is communicated from the state tool to executors via file.
Package execmeta models the executor meta data that is communicated from the state tool to executors via file.

Jump to

Keyboard shortcuts

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