Documentation ¶
Index ¶
- func Register(fn func(c []byte) (Driver, error), names ...string)
- type BzrDriver
- type Driver
- type GitDriver
- type MercurialDriver
- func (g *MercurialDriver) AutoGeneratedFiles(dir string) []string
- func (g *MercurialDriver) Clone(dir, url string) (string, error)
- func (g *MercurialDriver) HeadRev(dir string) (string, error)
- func (g *MercurialDriver) Pull(dir string) (string, error)
- func (g *MercurialDriver) SpecialFiles() []string
- type SVNDriver
- type WorkDir
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BzrDriver ¶
type BzrDriver struct{}
func (*BzrDriver) AutoGeneratedFiles ¶ added in v0.6.0
func (*BzrDriver) SpecialFiles ¶
type Driver ¶
type Driver interface { // Clone a new working directory. Clone(dir, url string) (string, error) // Pull new changes from the server and update the working directory. Pull(dir string) (string, error) // Return the revision at the head of the vcs directory. HeadRev(dir string) (string, error) // Return a list of special filenames that should not be indexed. SpecialFiles() []string // Return a list of filenames that are marked as auto-generated. AutoGeneratedFiles(dir string) []string }
A "plugin" for each vcs that supports the very limited set of vcs operations that hound needs.
type GitDriver ¶
type GitDriver struct { DetectRef bool `json:"detect-ref"` Ref string `json:"ref"` // contains filtered or unexported fields }
func (*GitDriver) AutoGeneratedFiles ¶ added in v0.6.0
func (*GitDriver) SpecialFiles ¶
type MercurialDriver ¶
type MercurialDriver struct{}
func (*MercurialDriver) AutoGeneratedFiles ¶ added in v0.6.0
func (g *MercurialDriver) AutoGeneratedFiles(dir string) []string
func (*MercurialDriver) SpecialFiles ¶
func (g *MercurialDriver) SpecialFiles() []string
type SVNDriver ¶
func (*SVNDriver) AutoGeneratedFiles ¶ added in v0.6.0
func (*SVNDriver) SpecialFiles ¶
Click to show internal directories.
Click to hide internal directories.