builder

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package builder implements the build actions for the supperted OS and arch

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Android added in v1.5.0

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

Android is the build for the android OS

func NewAndroid added in v1.5.0

func NewAndroid(arch string, output string) *Android

NewAndroid returns a builder for the android OS

func (*Android) Build added in v1.5.0

func (b *Android) Build(vol *volume.Volume, opts BuildOptions) error

Build builds the package

func (*Android) BuildEnv added in v1.5.0

func (b *Android) BuildEnv() []string

BuildEnv returns the env variables required to build the package

func (*Android) BuildLdFlags added in v1.5.0

func (b *Android) BuildLdFlags() []string

BuildLdFlags returns the default ldflags used to build the package

func (*Android) BuildTags added in v1.5.0

func (b *Android) BuildTags() []string

BuildTags returns the default tags used to build the package

func (*Android) Output added in v1.5.0

func (b *Android) Output() string

Output returns the named output

func (*Android) Package added in v1.5.0

func (b *Android) Package(vol *volume.Volume, opts PackageOptions) error

Package generate a package for distribution

func (*Android) PreBuild added in v1.5.0

func (b *Android) PreBuild(vol *volume.Volume, opts PreBuildOptions) error

PreBuild performs all tasks needed to perform a build

func (*Android) TargetID added in v1.5.0

func (b *Android) TargetID() string

TargetID returns the target ID for the builder

type BuildOptions

type BuildOptions struct {
	Package    string   // Package is the package to build named by the import path as per 'go build'
	LdFlags    []string // LdFlags are the ldflags to pass to the compiler
	Tags       []string // Tags are the tags to pass to the compiler
	StripDebug bool     // StripDebug if true, strips binary output
	Verbose    bool     // Verbose if true, enable verbose mode
}

BuildOptions holds the options to build the package

type Builder

type Builder interface {
	PreBuild(vol *volume.Volume, opts PreBuildOptions) error
	Build(vol *volume.Volume, opts BuildOptions) error
	BuildEnv() []string
	BuildLdFlags() []string
	BuildTags() []string
	Package(vol *volume.Volume, opts PackageOptions) error
	Output() string
	TargetID() string
}

Builder represents a builder

type Darwin

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

Darwin is the build for the Darwin OS

func NewDarwin

func NewDarwin(arch string, output string) *Darwin

NewDarwin returns a builder for the Darwin OS

func (*Darwin) Build

func (b *Darwin) Build(vol *volume.Volume, opts BuildOptions) error

Build builds the package

func (*Darwin) BuildEnv

func (b *Darwin) BuildEnv() []string

BuildEnv returns the env variables required to build the package

func (*Darwin) BuildLdFlags

func (b *Darwin) BuildLdFlags() []string

BuildLdFlags returns the default ldflags used to build the package

func (*Darwin) BuildTags

func (b *Darwin) BuildTags() []string

BuildTags returns the default tags used to build the package

func (*Darwin) Output

func (b *Darwin) Output() string

Output returns the named output

func (*Darwin) Package

func (b *Darwin) Package(vol *volume.Volume, opts PackageOptions) error

Package generate a package for distribution

func (*Darwin) PreBuild

func (b *Darwin) PreBuild(vol *volume.Volume, opts PreBuildOptions) error

PreBuild performs all tasks needed to perform a build

func (*Darwin) TargetID

func (b *Darwin) TargetID() string

TargetID returns the target ID for the builder

type IOS added in v1.5.0

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

IOS is the build for the iOS OS

func NewIOS added in v1.5.0

func NewIOS(arch string, output string) *IOS

NewIOS returns a builder for the iOS OS

func (*IOS) Build added in v1.5.0

func (b *IOS) Build(vol *volume.Volume, opts BuildOptions) error

Build builds the package

func (*IOS) BuildEnv added in v1.5.0

func (b *IOS) BuildEnv() []string

BuildEnv returns the env variables required to build the package

func (*IOS) BuildLdFlags added in v1.5.0

func (b *IOS) BuildLdFlags() []string

BuildLdFlags returns the default ldflags used to build the package

func (*IOS) BuildTags added in v1.5.0

func (b *IOS) BuildTags() []string

BuildTags returns the default tags used to build the package

func (*IOS) Output added in v1.5.0

func (b *IOS) Output() string

Output returns the named output

func (*IOS) Package added in v1.5.0

func (b *IOS) Package(vol *volume.Volume, opts PackageOptions) error

Package generate a package for distribution

func (*IOS) PreBuild added in v1.5.0

func (b *IOS) PreBuild(vol *volume.Volume, opts PreBuildOptions) error

PreBuild performs all tasks needed to perform a build

func (*IOS) TargetID added in v1.5.0

func (b *IOS) TargetID() string

TargetID returns the target ID for the builder

type Linux

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

Linux is the build for the linux OS

func NewLinux

func NewLinux(arch string, output string) *Linux

NewLinux returns a builder for the linux OS

func (*Linux) Build

func (b *Linux) Build(vol *volume.Volume, opts BuildOptions) error

Build builds the package

func (*Linux) BuildEnv

func (b *Linux) BuildEnv() []string

BuildEnv returns the env variables required to build the package

func (*Linux) BuildLdFlags

func (b *Linux) BuildLdFlags() []string

BuildLdFlags returns the default ldflags used to build the package

func (*Linux) BuildTags

func (b *Linux) BuildTags() []string

BuildTags returns the default tags used to build the package

func (*Linux) Output

func (b *Linux) Output() string

Output returns the named output

func (*Linux) Package

func (b *Linux) Package(vol *volume.Volume, opts PackageOptions) error

Package generate a package for distribution

func (*Linux) PreBuild

func (b *Linux) PreBuild(vol *volume.Volume, opts PreBuildOptions) error

PreBuild performs all tasks needed to perform a build

func (*Linux) TargetID

func (b *Linux) TargetID() string

TargetID returns the target ID for the builder

type PackageOptions

type PackageOptions struct {
	Icon    string // Icon is the optional icon in png format to use for distribution
	AppID   string // Icon is the appID to use for distribution
	Verbose bool   // Verbose if true, enable verbose mode
}

PackageOptions holds the options to generate a package for distribution

type PreBuildOptions

type PreBuildOptions struct {
	Verbose bool   // Verbose if true, enable verbose mode
	Icon    string // Icon is the optional icon in png format to use for distribution
	AppID   string // Icon is the appID to use for distribution
}

PreBuildOptions holds the options for the pre build step

type Windows

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

Windows is the build for the Windows OS

func NewWindows

func NewWindows(arch string, output string) *Windows

NewWindows returns a builder for the Windows OS

func (*Windows) Build

func (b *Windows) Build(vol *volume.Volume, opts BuildOptions) error

Build builds the package

func (*Windows) BuildEnv

func (b *Windows) BuildEnv() []string

BuildEnv returns the env variables required to build the package

func (*Windows) BuildLdFlags

func (b *Windows) BuildLdFlags() []string

BuildLdFlags returns the default ldflags used to build the package

func (*Windows) BuildTags

func (b *Windows) BuildTags() []string

BuildTags returns the default tags used to build the package

func (*Windows) Output

func (b *Windows) Output() string

Output returns the named output

func (*Windows) Package

func (b *Windows) Package(vol *volume.Volume, opts PackageOptions) error

Package generate a package for distribution

func (*Windows) PreBuild

func (b *Windows) PreBuild(vol *volume.Volume, opts PreBuildOptions) error

PreBuild performs all tasks needed to perform a build

func (*Windows) TargetID

func (b *Windows) TargetID() string

TargetID returns the target ID for the builder

Jump to

Keyboard shortcuts

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