Documentation ¶
Index ¶
Constants ¶
View Source
const Vendordir string = "doget_modules"
Vendordir depicts the basename of the directory where downloaded traits are stored
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { Source string Repositories map[string]map[string]string `yaml:"repositories"` }
Configuration holds the map of all repository informations parsed from all config files
func Default ¶
func Default() *Configuration
Default configuration supports github.com and bitbucket.org
func FromFile ¶
func FromFile(filename string) (result *Configuration, err error)
FromFile Reads configuration from a given file
func (*Configuration) Merge ¶
func (c *Configuration) Merge(sources ...string) (*Configuration, error)
Merge Reads configuration from given sources
func (*Configuration) MustMerge ¶
func (c *Configuration) MustMerge(sources ...string) (*Configuration, error)
MustMerge Reads configuration from given sources and yields an error if none exist
Click to show internal directories.
Click to hide internal directories.