Documentation ¶
Index ¶
- Constants
- Variables
- func GetAppenv(yamlReader io.Reader, envarPrefix string) (config Config, access Access, err error)
- func OptionNames() []string
- func ValidateArchitecture(arch string) error
- func ValidateDist(os, arch string) error
- func ValidateFile(file string) error
- func ValidateOS(os string) error
- func ValidateOwner(owner string) error
- func ValidateRegexp(pattern string) error
- func ValidateRoot(root string) error
- type Access
- type Architecture
- type Bin
- type Cache
- type Config
- func (a *Config) Architecture() types.Config
- func (a *Config) Bin() types.Config
- func (a *Config) Cache() types.Config
- func (a *Config) GithubHost() types.Config
- func (a *Config) GithubUser() types.Config
- func (a *Config) Hooks() types.Config
- func (a *Config) Man() types.Config
- func (a *Config) OS() types.Config
- func (a *Config) Option(name string) (types.Config, error)
- func (c *Config) Save(yamlWriter io.Writer) error
- type Envar
- type GithubHost
- type GithubUser
- type Hooks
- type Man
- type OS
- type YAML
Constants ¶
View Source
const (
// DefaultHost is the default host of the GitHub
DefaultHost = "github.com"
)
View Source
const (
EnvarPrefix = "GORDON_"
)
Variables ¶
View Source
var EmptyYAMLReader io.Reader = nil
Functions ¶
func OptionNames ¶ added in v0.1.9
func OptionNames() []string
func ValidateArchitecture ¶
func ValidateDist ¶
func ValidateFile ¶
func ValidateOS ¶
func ValidateOwner ¶
func ValidateRegexp ¶
func ValidateRoot ¶
Types ¶
type Access ¶
type Access struct {
// contains filtered or unexported fields
}
func (*Access) Architecture ¶
func (*Access) GithubHost ¶
func (*Access) GithubUser ¶
type Architecture ¶
type Architecture struct{ types.StringValue }
func (*Architecture) Default ¶
func (*Architecture) Default() interface{}
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) Architecture ¶ added in v0.1.9
func (*Config) GithubHost ¶ added in v0.1.9
func (*Config) GithubUser ¶ added in v0.1.9
type Envar ¶
type Envar struct { GithubHost *GithubHost GithubUser *GithubUser Architecture *Architecture OS *OS Cache *Cache Bin *Bin Man *Man Hooks *Hooks }
type GithubHost ¶
type GithubHost struct {
types.StringValue
}
func (*GithubHost) Default ¶
func (*GithubHost) Default() interface{}
type GithubUser ¶
type GithubUser struct {
types.StringValue
}
type YAML ¶
type YAML struct { GithubHost *GithubHost `yaml:"githubHost,omitempty"` GithubUser *GithubUser `yaml:"githubUser,omitempty"` Architecture *Architecture `yaml:"architecture,omitempty"` OS *OS `yaml:"os,omitempty"` Cache *Cache `yaml:"cache,omitempty"` Bin *Bin `yaml:"bin,omitempty"` Man *Man `yaml:"man,omitempty"` Hooks *Hooks `yaml:"hooks,omitempty"` }
Click to show internal directories.
Click to hide internal directories.