Versions in this module Expand all Collapse all v0 v0.3.1 Oct 21, 2014 v0.3.0 Oct 14, 2014 Changes in this version + const RootName + var Detectors []Detector + var Getters map[string]Getter + func Detect(src string, pwd string) (string, error) + func Get(dst, src string) error + func GetCopy(dst, src string) error + type BitBucketDetector struct + func (d *BitBucketDetector) Detect(src, _ string) (string, bool, error) + type Detector interface + Detect func(string, string) (string, bool, error) + type FileDetector struct + func (d *FileDetector) Detect(src, pwd string) (string, bool, error) + type FileGetter struct + func (g *FileGetter) Get(dst string, u *url.URL) error + type FolderStorage struct + StorageDir string + func (s *FolderStorage) Dir(source string) (d string, e bool, err error) + func (s *FolderStorage) Get(source string, update bool) error + type GetMode byte + const GetModeGet + const GetModeNone + const GetModeUpdate + type Getter interface + Get func(string, *url.URL) error + type GitGetter struct + func (g *GitGetter) Get(dst string, u *url.URL) error + type GitHubDetector struct + func (d *GitHubDetector) Detect(src, _ string) (string, bool, error) + type HgGetter struct + func (g *HgGetter) Get(dst string, u *url.URL) error + type HttpGetter struct + func (g *HttpGetter) Get(dst string, u *url.URL) error + type Module struct + Name string + Source string + type Storage interface + Dir func(string) (string, bool, error) + Get func(string, bool) error + type Tree struct + func NewTree(name string, c *config.Config) *Tree + func NewTreeModule(name, dir string) (*Tree, error) + func (t *Tree) Child(path []string) *Tree + func (t *Tree) Children() map[string]*Tree + func (t *Tree) Config() *config.Config + func (t *Tree) GobDecode(bs []byte) error + func (t *Tree) GobEncode() ([]byte, error) + func (t *Tree) Load(s Storage, mode GetMode) error + func (t *Tree) Loaded() bool + func (t *Tree) Modules() []*Module + func (t *Tree) Name() string + func (t *Tree) String() string + func (t *Tree) Validate() error + type TreeError struct + Err error + Name []string + func (e *TreeError) Error() string