launch

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 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.

Types

type EnvVar

type EnvVar map[string]string

EnvVar is a map for environment variables

type Interact added in v1.0.12

type Interact struct {
}

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       EnvVar
	Meta            Meta
	UseSudo         bool
	UsePrivileged   bool
	InteractiveMode bool
	SocketPath      string
	FlagVerbose     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
JackTT - Gopher 🇻🇳