Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidTransport occurs when a URL transport type is invalid ErrInvalidTransport = fmt.Errorf("invalid transport") // ErrInvalidAuth occurs when the auth type is invalid ErrInvalidAuth = fmt.Errorf("invalid auth") )
Functions ¶
Types ¶
type Config ¶
type Config struct { Global GlobalConfig `yaml:"global"` Git map[string]GitConfig `yaml:"git"` }
Config contains user's configuration values from ~/earthly/config.yml
func ParseConfigFile ¶
ParseConfigFile parse config data
type GitConfig ¶
type GitConfig struct { // these are used for global config GitURLInsteadOf string `yaml:"url_instead_of"` // these are used for git vendors (e.g. github, gitlab) Pattern string `yaml:"pattern"` Substitute string `yaml:"substitute"` Suffix string `yaml:"suffix"` // .git Auth string `yaml:"auth"` // http, https, ssh User string `yaml:"user"` Password string `yaml:"password"` KeyScan string `yaml:"serverkey"` }
GitConfig contains git-specific config values
type GlobalConfig ¶
type GlobalConfig struct { RunPath string `yaml:"run_path"` DisableAnalytics bool `yaml:"disable_analytics"` BuildkitCacheSizeMb int `yaml:"cache_size_mb"` BuildkitImage string `yaml:"buildkit_image"` DebuggerPort int `yaml:"debugger_port"` BuildkitRestartTimeoutS int `yaml:"buildkit_restart_timeout_s"` BuildkitAdditionalArgs []string `yaml:"buildkit_additional_args"` // Obsolete. CachePath string `yaml:"cache_path"` }
GlobalConfig contains global config values
Click to show internal directories.
Click to hide internal directories.