Documentation ¶
Overview ¶
Package vcs provides packages utilities to interact with version control systems.
See https://en.wikipedia.org/wiki/Version_control for more details about VCS.
Index ¶
Constants ¶
View Source
const ( // KindNameGit is the Kind name for Git repositories. KindNameGit = "git" // KindNameNone is the Kind name for repositories that are not managed by any VCS. KindNameNone = "none" // KindNameUnknown is the name for a unknown repository Kind. KindNameUnknown = "unknown" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kind ¶
type Kind uint32
Kind defines the kind of a vcs.Repository.
const ( // KindNone is the Kind for repositories that are not managed by any VCS. KindNone Kind = iota // KindGit is the Kind for Git repositories. // // See https://git-scm.com for more details. KindGit )
func (Kind) MarshalText ¶
MarshalText returns the textual representation of itself.
func (*Kind) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler to unmarshal a textual representation of itself.
type Repository ¶
type Repository interface { // Kind returns the repository Kind. Kind() Kind // DeriveVersion derives the repository version based on the Kind. DeriveVersion() error // Version returns the repository version. Version() interface{} }
Repository is a VCS repository.
Click to show internal directories.
Click to hide internal directories.