Documentation ¶
Index ¶
- func AddAllFlags(flags *pflag.FlagSet, i ...Interface)
- func Bind(v *viper.Viper, configKey string, flag *pflag.Flag) error
- func BindAllFlags(flags *pflag.FlagSet, v *viper.Viper, i ...Interface) error
- func BindOrExit(v *viper.Viper, configKey string, flag *pflag.Flag)
- func FormatPositionalArgsHelp(args map[string]string) string
- func Summarize(itf interface{}, currentPath []string) string
- type Build
- type CacheArchive
- type CacheRestore
- type DBLocation
- type Format
- type Interface
- type Package
- type Provider
- type Pull
- type Results
- type Selection
- type Store
- type Vunnel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAllFlags ¶
Types ¶
type Build ¶
type Build struct { DBLocation `yaml:",inline" mapstructure:",squash"` // note: json will anonymously embed the struct if there is no tag (like yaml inline) // bound options SkipValidation bool `yaml:"skip-validation" json:"skip-validation" mapstructure:"skip-validation"` SchemaVersion int `yaml:"schema-version" json:"schema-version" mapstructure:"schema-version"` }
func DefaultBuild ¶
func DefaultBuild() Build
type CacheArchive ¶
type CacheArchive struct { // bound options Path string `yaml:"archive" json:"archive" mapstructure:"archive"` }
func DefaultCacheArchive ¶
func DefaultCacheArchive() CacheArchive
func (*CacheArchive) AddFlags ¶
func (o *CacheArchive) AddFlags(flags *pflag.FlagSet)
type CacheRestore ¶
type CacheRestore struct { // bound options DeleteExisting bool `yaml:"delete-existing" json:"delete-existing" mapstructure:"delete-existing"` }
func DefaultCacheRestore ¶
func DefaultCacheRestore() CacheRestore
func (*CacheRestore) AddFlags ¶
func (o *CacheRestore) AddFlags(flags *pflag.FlagSet)
type DBLocation ¶
type DBLocation struct { // bound options Directory string `yaml:"dir" json:"dir" mapstructure:"dir"` }
func DefaultDBLocation ¶
func DefaultDBLocation() DBLocation
func (*DBLocation) AddFlags ¶
func (o *DBLocation) AddFlags(flags *pflag.FlagSet)
type Format ¶
type Package ¶
type Package struct { // bound options PublishBaseURL string `yaml:"publish-base-url" json:"publish-base-url" mapstructure:"publish-base-url"` OverrideArchiveExtension string `yaml:"override-archive-extension" json:"override-archive-extension" mapstructure:"override-archive-extension"` }
func DefaultPackage ¶
func DefaultPackage() Package
type Provider ¶
type Provider struct { // bound options Selection `yaml:",inline" mapstructure:",squash"` // unbound options Store `yaml:",inline" mapstructure:",squash"` Vunnel Vunnel `yaml:"vunnel" json:"vunnel" mapstructure:"vunnel"` Configs []provider.Config `yaml:"configs" json:"configs" mapstructure:"configs"` }
func DefaultProvider ¶
func DefaultProvider() Provider
type Pull ¶
type Pull struct { // bound options Parallelism int `yaml:"parallelism" json:"parallelism" mapstructure:"parallelism"` }
func DefaultPull ¶
func DefaultPull() Pull
type Results ¶
type Results struct {
ResultsOnly bool `yaml:"results-only" json:"results-only" mapstructure:"results-only"`
}
func DefaultResults ¶
func DefaultResults() Results
type Selection ¶
type Selection struct { // bound options IncludeFilter []string `yaml:"include-filter" json:"include-filter" mapstructure:"include-filter"` }
func DefaultSelection ¶
func DefaultSelection() Selection
type Store ¶
type Store struct { // unbound options Root string `yaml:"root" json:"root" mapstructure:"root"` }
func DefaultStore ¶
func DefaultStore() Store
type Vunnel ¶
type Vunnel struct { // unbound options Config string `yaml:"config" json:"config" mapstructure:"config"` Executor string `yaml:"executor" json:"executor" mapstructure:"executor"` DockerTag string `yaml:"docker-tag" json:"docker-tag" mapstructure:"docker-tag"` DockerImage string `yaml:"docker-image" json:"docker-image" mapstructure:"docker-image"` GenerateConfigs bool `yaml:"generate-configs" json:"generate-configs" mapstructure:"generate-configs"` ExcludeProviders []string `yaml:"exclude-providers" json:"exclude-providers" mapstructure:"exclude-providers"` Env map[string]string `yaml:"env" json:"env" mapstructure:"-"` // note: we don't want users to specify run env vars by app config env vars }
func DefaultVunnel ¶
func DefaultVunnel() Vunnel
Click to show internal directories.
Click to hide internal directories.