buildconfig

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchConfig added in v1.16.0

type ArchConfig struct {
	Tags    []string `yaml:"build_tags"`
	LDFlags []string `yaml:"ldflags"`
}

ArchConfig contains BuildTags and LDFlags for the specific architecture

type BuildConfig

type BuildConfig struct {
	ReadmeFile  string                       `yaml:"readme_file,omitempty"`
	Artifacts   map[string]string            `yaml:"artifacts,omitempty"`
	Triggers    []string                     `yaml:"triggers,omitempty"`
	VersionFile string                       `yaml:"version_file,omitempty"`
	Notify      notifier.NotifyConfiguration `yaml:"notify,omitempty"`
	BuildMatrix map[string]ArchConfig        `yaml:"build_matrix,omitempty"`
	NoGoFmt     string                       `yaml:"no_go_fmt,omitempty"`
	AllowCGO    string                       `yaml:"allow_cgo,omitempty"`
}

BuildConfig represents a .gobuilder.yml file

func LoadFromFile

func LoadFromFile(filepath string) (*BuildConfig, error)

LoadFromFile retrieves the BuildConfig and transforms it into the latest config version if required

Jump to

Keyboard shortcuts

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