build

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DockerDist = "seekwe/go-builder:"

Functions

func Basename

func Basename(pwd string) string

func CheckDocker

func CheckDocker() error

func CheckDockerImage

func CheckDockerImage(goVersion string) (bool, error, string)

func CommadString

func CommadString(os []OSData, isVendor, isCGO bool, packageName, outDir string) (commad []string)

func GeneratePackFileString

func GeneratePackFileString(assetBundle *ReferencedAssets, ignoreErrors bool) (string, error)

GeneratePackFileString creates the contents of a pack file

func GetBuildGitID added in v1.0.10

func GetBuildGitID() string

func GetBuildTime added in v1.0.10

func GetBuildTime() string

func GetGoVersion added in v1.0.10

func GetGoVersion() string

func ParserArch

func ParserArch(arch string, lists []string) []string

func ParserTarget

func ParserTarget(cross string) []string

func PullDockerImage

func PullDockerImage(image string) error

func TargetsCommad

func TargetsCommad(target string) map[string][]string

Types

type AssignStmt

type AssignStmt struct {
	LHS string
	RHS *CallStmt
}

AssignStmt holds data about an assignment

func ParseAssignment

func ParseAssignment(astmt *ast.AssignStmt) *AssignStmt

ParseAssignment parses an assignment statement

func (*AssignStmt) String

func (a *AssignStmt) String() string

type CallStmt

type CallStmt struct {
	Obj    string
	Method string
	Path   string
}

CallStmt holds data about a call statement

func ParseCallExpr

func ParseCallExpr(callstmt *ast.CallExpr) *CallStmt

func (*CallStmt) String

func (c *CallStmt) String() string

type Group

type Group struct {
	Name      string
	LocalPath string
	FullPath  string
}

Group holds information relating to a group

type OSData added in v1.0.10

type OSData struct {
	Goos   string
	Goarch string
	CXX    string
	CC     string
}

type ReferencedAsset

type ReferencedAsset struct {
	Name      string
	AssetPath string
	Group     *Group
}

ReferencedAsset holds the information for an asset referenced by the user

type ReferencedAssets

type ReferencedAssets struct {
	Caller      string
	PackageName string
	BaseDir     string
	Assets      []*ReferencedAsset
	Groups      []*Group
}

ReferencedAssets is a collection of assets referenced from a file

func GetReferencedAssets

func GetReferencedAssets(filenames []string) ([]*ReferencedAssets, error)

GetReferencedAssets gets a list of referenced assets from the AST

func (*ReferencedAssets) HasAsset

func (r *ReferencedAssets) HasAsset(name string) bool

HasAsset returns true if the given asset name has already been processed for this asset group

Jump to

Keyboard shortcuts

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