Documentation ¶
Index ¶
Constants ¶
View Source
const ( CacheOrderLatency = "latency" CacheOrderNone = "none" )
Variables ¶
This section is empty.
Functions ¶
func ParseAndApply ¶
func ProfilesFromEnv ¶
func ProfilesFromEnv() []string
Types ¶
type BaseConfig ¶
type Config ¶
type Config struct { BaseConfig `yaml:",inline"` Caches map[string]Cache CacheOrder string `yaml:"cache_order"` CacheHistory int `yaml:"cache_history"` ProgressInterval time.Duration `yaml:"progress_interval"` Cloud struct { URL string `yaml:"url"` Project string `yaml:"project"` } `yaml:"cloud"` Engine struct { GC bool `yaml:"gc"` CacheRW bool `yaml:"cache_rw"` CacheHints bool `yaml:"cache_hints"` GitCacheHints bool `yaml:"git_cache_hints"` InstallTools bool `yaml:"install_tools"` KeepSandbox bool `yaml:"keep_sandbox"` ParallelCaching bool `yaml:"parallel_caching"` SmartGen bool `yaml:"smart_gen"` } `yaml:"engine"` Platforms map[string]Platform `yaml:"platforms"` BuildFiles struct { Patterns []string `yaml:"patterns"` Ignore []string `yaml:"ignore"` Roots map[string]Root `yaml:"roots"` Glob struct { Exclude []string `yaml:"exclude"` } `yaml:"glob"` } `yaml:"build_files"` Watch struct { Ignore []string `yaml:"ignore"` } `yaml:"watch"` Fmt struct { IndentSize int `yaml:"indent_size,omitempty"` } `yaml:"fmt"` Params map[string]string `yaml:"params"` Extras `yaml:",inline"` Sources []FileConfig `yaml:"-"` Profiles []string `yaml:"-"` }
func (Config) OrderedPlatforms ¶
type FileCache ¶
type FileConfig ¶
type FileConfig struct { BaseConfig `yaml:",inline"` Caches map[string]FileCache `yaml:"caches,omitempty"` CacheOrder string `yaml:"cache_order"` CacheHistory int `yaml:"cache_history"` ProgressInterval *int `yaml:"progress_interval"` Cloud struct { URL string `yaml:"url"` Project string `yaml:"project"` } `yaml:"cloud"` Engine struct { GC *bool `yaml:"gc"` CacheRW *bool `yaml:"cache_rw"` CacheHints *bool `yaml:"cache_hints"` GitCacheHints *bool `yaml:"git_cache_hints"` InstallTools *bool `yaml:"install_tools"` KeepSandbox *bool `yaml:"keep_sandbox"` ParallelCaching *bool `yaml:"parallel_caching"` SmartGen *bool `yaml:"smart_gen"` } `yaml:"engine"` Platforms map[string]FilePlatform `yaml:"platforms"` BuildFiles struct { Patterns []string `yaml:"patterns,omitempty"` Ignore []string `yaml:"ignore,omitempty"` Roots map[string]FileRoot `yaml:"roots,omitempty"` Glob struct { Exclude []string `yaml:"exclude"` } `yaml:"glob"` } `yaml:"build_files"` Watch struct { Ignore []string `yaml:"ignore,omitempty"` } `yaml:"watch"` Fmt struct { IndentSize int `yaml:"indent_size,omitempty"` } `yaml:"fmt"` Params map[string]string `yaml:"params"` Extras `yaml:",inline"` }
func Parse ¶
func Parse(name string) (FileConfig, error)
func (FileConfig) ApplyTo ¶
func (fc FileConfig) ApplyTo(c Config) Config
type FilePlatform ¶
type FilePlatform struct { Provider string `yaml:"provider"` Priority *int `yaml:"priority"` Options map[string]interface{} `yaml:"options,omitempty"` }
func (FilePlatform) ApplyTo ¶
func (fc FilePlatform) ApplyTo(c Platform) Platform
Click to show internal directories.
Click to hide internal directories.