Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDirtyWorkCopy = errors.New("dirty work copy")
ErrDirtyWorkCopy indicate work copy is dirty.
View Source
var ErrRecognizeRepo = errors.New("cannot recognize repository type")
ErrRecognizeRepo indicate failed to recognize repository type of given folder.
Functions ¶
This section is empty.
Types ¶
type ErrNotRepo ¶
ErrNotRepo indicate given path is not repository of certain VCS.
func (*ErrNotRepo) Error ¶
func (e *ErrNotRepo) Error() string
type GitRepo ¶
type GitRepo struct { ModPath string // contains filtered or unexported fields }
GitRepo represent code repo in git.
func NewGitRepo ¶
NewGitRepo create new instance of GitRepo with given module path.
func (*GitRepo) CommitTime ¶
CommitTime get the commit time of current workcopy.
func (*GitRepo) PseudoVersion ¶
PseudoVersion generate pseudo version.
type Repo ¶
type Repo interface { // PseudoVersion generate pseudo version. PseudoVersion() (pseudoVersion string, err error) // CommitTime get the commit time of current workcopy. CommitTime() (commitTime time.Time, err error) // Zip create module zip file. Zip(w io.Writer, modulePath, moduleVersion string) (err error) }
Repo defines interface of operations in VCS repository.
Click to show internal directories.
Click to hide internal directories.