launch

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: BSD-3-Clause Imports: 16 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

This section is empty.

Types

type EnvVar

type EnvVar map[string]string

EnvVar is a map for environment variables

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
	Config        config.Config
	JobName       string
	JWT           string
	ArtifactsPath string
	Memory        string
	SrcPath       string
	OptionEnv     EnvVar
	Meta          Meta
	UseSudo       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 🇻🇳