Documentation
¶
Index ¶
- type Builder
- func (b *Builder) GetOutputExecutableName(exec ExecutableInfo, arch string) (string, error)
- func (b *Builder) GetOutputZipName(exec ExecutableInfo, arch string) (string, error)
- func (b *Builder) ListArchs(desired ...string) ([]string, error)
- func (b *Builder) RunBuild(exec ExecutableInfo, arch string) error
- func (b *Builder) RunCleanZip() error
- func (b *Builder) RunLicenseCheck() error
- func (b *Builder) RunTarget(name string) error
- func (b *Builder) RunZip(exec ExecutableInfo, arch string) error
- type BuilderConfig
- type CodeInfo
- type Console
- type ExecutableInfo
- type GitInfo
- type Target
- type TargetRunFunc
- type Targets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
Code CodeInfo
Git GitInfo
Executables []ExecutableInfo
Targets Targets
DefaultTarget string
Console *Console
GO string
GO_VERSION *semver.Version
GO_GOOS string
GO_GOARCH string
GIT string
}
func NewBuilder ¶
func NewBuilder(cfg *BuilderConfig) (*Builder, error)
func (*Builder) GetOutputExecutableName ¶
func (b *Builder) GetOutputExecutableName(exec ExecutableInfo, arch string) (string, error)
func (*Builder) GetOutputZipName ¶
func (b *Builder) GetOutputZipName(exec ExecutableInfo, arch string) (string, error)
func (*Builder) RunCleanZip ¶
func (*Builder) RunLicenseCheck ¶
type BuilderConfig ¶
type BuilderConfig struct {
BaseDir string
MainFileNames []string
// nil means all
Archs []string
GCO bool
PreserveSymbols bool
BuildArgs []string
LDFlagsVars map[string]string
License string
LicenseCheck struct {
Allowed []string
Denied []string
IgnoredDeps []string
}
}
func NewBuilderConfig ¶
func NewBuilderConfig() *BuilderConfig
type Console ¶
type Console struct {
Dir string
}
func CreateConsole ¶
func (*Console) RunAndReturnOutput ¶
type ExecutableInfo ¶
type Target ¶
func (*Target) AddDependency ¶
type TargetRunFunc ¶
type TargetRunFunc func() error
Click to show internal directories.
Click to hide internal directories.