launch

package
v1.0.54 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ArtifactsDir is default artifact directory name
	ArtifactsDir = "sd-artifacts"
	// LogFile is default logfile name for build log
	LogFile = "builds.log"
)

Variables

This section is empty.

Functions

func DefaultSocketPath added in v1.0.14

func DefaultSocketPath() string

DefaultSocketPath is a socket path on the localhost to bring in the build container.

func GetEnv added in v1.0.39

func GetEnv(en []map[string]string, key string) string

GetEnv returns the newest value corresponding to the key

Types

type DinD added in v1.0.50

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

DinD has the information needed to start the dind-rootless container

type Interact added in v1.0.12

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

Interact takes interactive processing

func (*Interact) Run added in v1.0.12

func (d *Interact) Run(c *exec.Cmd, commands [][]string) error

Run runs interactive process

type Interacter added in v1.0.12

type Interacter interface {
	Run(c *exec.Cmd, commands [][]string) error
}

Interacter wraps up the interactive process

type Launcher

type Launcher interface {
	Run() error
	Kill(os.Signal)
	Clean()
}

Launcher able to run local build

func New

func New(option Option) Launcher

New creates new Launcher interface.

type Meta

type Meta map[string]interface{}

Meta is a map for metadata

type Option

type Option struct {
	Job             screwdriver.Job
	Entry           config.Entry
	JobName         string
	JWT             string
	ArtifactsPath   string
	Memory          string
	SrcPath         string
	OptionEnv       screwdriver.EnvVars
	Meta            Meta
	UseSudo         bool
	UsePrivileged   bool
	InteractiveMode bool
	SocketPath      string
	FlagVerbose     bool
	LocalVolumes    []string
	BuildUser       string
	NoImagePull     bool
}

Option is option for launch New

Jump to

Keyboard shortcuts

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