runtime_runbit

package
v0.0.0-...-8193d1f Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: BSD-3-Clause Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBuildScriptNeedsCommit = errors.New("buildscript is dirty, need to run state commit")

Functions

func RationalizeSolveError

func RationalizeSolveError(proj *project.Project, auth *auth.Auth, rerr *error)

func Update

func Update(
	prime primeable,
	trigger trigger.Trigger,
	setOpts ...SetOpt,
) (_ *runtime.Runtime, rerr error)

Types

type Opts

type Opts struct {
	PrintHeaders bool
	TargetDir    string

	// Note CommitID and Commit are mutually exclusive. If Commit is provided then CommitID is disregarded.
	// Also, Archive and Commit are mutually exclusive, as both contain a BuildPlan.
	CommitID strfmt.UUID
	Commit   *bpModel.Commit
	Archive  *checkout.Archive

	ValidateBuildscript bool
	IgnoreAsync         bool
}

type RuntimeInUseError

type RuntimeInUseError struct {
	Processes []*graph.ProcessInfo
}

func (RuntimeInUseError) Error

func (err RuntimeInUseError) Error() string

type SetOpt

type SetOpt func(*Opts)

func WithArchive

func WithArchive(archive *checkout.Archive) SetOpt

func WithCommit

func WithCommit(commit *bpModel.Commit) SetOpt

func WithCommitID

func WithCommitID(commitID strfmt.UUID) SetOpt

func WithIgnoreAsync

func WithIgnoreAsync() SetOpt

func WithTargetDir

func WithTargetDir(targetDir string) SetOpt

func WithoutBuildscriptValidation

func WithoutBuildscriptValidation() SetOpt

WithoutBuildscriptValidation skips validating whether the local buildscript has changed. This is useful when trying to source a runtime that doesn't yet reflect the state of the project files (ie. as.yaml and buildscript).

func WithoutHeaders

func WithoutHeaders() SetOpt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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