build

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAction

func NewAction(scope sdk.ScopeAccessor, params sdk.ActionParams) (sdk.ActionHandler, error)

NewAction creates a new build action instance

Types

type Action

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

Action represents Gilbert's plugin

func (*Action) Call

func (a *Action) Call(ctx sdk.JobContextAccessor, r sdk.JobRunner) (err error)

Call calls a plugin

func (*Action) Cancel

func (a *Action) Cancel(ctx sdk.JobContextAccessor) error

Cancel cancels build process

type CompileTarget

type CompileTarget struct {
	Os   string
	Arch string
}

CompileTarget struct contains information about compile target

type LinkerParams

type LinkerParams struct {
	StripDebugInfo bool
	LinkerFlags    []string
}

LinkerParams is set of params for linker (ln)

type Params

type Params struct {
	Source     string
	BuildMode  string
	OutputPath string
	Params     LinkerParams
	Target     CompileTarget
	Tags       string
	Variables  sdk.Vars
}

Params is params for the build plugin

Jump to

Keyboard shortcuts

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