Documentation ¶
Index ¶
- Constants
- func RepoType() (msg.RepoType, error)
- type Git
- func (g *Git) CreateTag(name string) error
- func (g *Git) Install(repository *msg.Package_Repository, version *msg.Package_Version, ...) (*common.PackageWrapper, error)
- func (g *Git) LastCommitAuthorName() (string, error)
- func (g *Git) LastCommitEmail() (string, error)
- func (g *Git) LastCommitRevision() (string, error)
- func (g *Git) RepositoryFileList() ([]string, error)
- func (g *Git) RepositoryURL() (string, error)
- func (g *Git) Test() error
- func (g *Git) ValidateCommit(commit string) error
- type GitHub
- type Installer
- type Mercurial
- func (m *Mercurial) CreateTag(name string) error
- func (m *Mercurial) Install(repository *msg.Package_Repository, version *msg.Package_Version, ...) (*common.PackageWrapper, error)
- func (m *Mercurial) LastCommitAuthorName() (string, error)
- func (m *Mercurial) LastCommitEmail() (string, error)
- func (m *Mercurial) LastCommitRevision() (string, error)
- func (m *Mercurial) RepositoryFileList() ([]string, error)
- func (m *Mercurial) RepositoryURL() (string, error)
- func (m *Mercurial) Test() error
- func (m *Mercurial) ValidateCommit(commit string) error
- type Publisher
Constants ¶
View Source
const ( GitHubURL = "https://api.github.com/repos" Tarball = "tarball" TarSuffix = ".tar.gz" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Git ¶
type Git struct { }
func (*Git) Install ¶
func (g *Git) Install(repository *msg.Package_Repository, version *msg.Package_Version, destination string) (*common.PackageWrapper, error)
func (*Git) LastCommitAuthorName ¶
func (*Git) LastCommitEmail ¶
func (*Git) LastCommitRevision ¶
func (*Git) RepositoryFileList ¶
func (*Git) RepositoryURL ¶
func (*Git) ValidateCommit ¶
type GitHub ¶
type GitHub struct { }
func (*GitHub) Install ¶
func (g *GitHub) Install(repository *msg.Package_Repository, version *msg.Package_Version, destination string) (*common.PackageWrapper, error)
type Installer ¶
type Installer interface {
Install(repository *msg.Package_Repository, version *msg.Package_Version, destination string) (*common.PackageWrapper, error)
}
Installer - generic interface to functionality needed to install packages
func CreateInstaller ¶
func CreateInstaller(repository *msg.Package_Repository) (Installer, error)
type Mercurial ¶
type Mercurial struct { }
func NewMercurial ¶
func NewMercurial() *Mercurial
func (*Mercurial) Install ¶
func (m *Mercurial) Install(repository *msg.Package_Repository, version *msg.Package_Version, destination string) (*common.PackageWrapper, error)
func (*Mercurial) LastCommitAuthorName ¶
func (*Mercurial) LastCommitEmail ¶
func (*Mercurial) LastCommitRevision ¶
func (*Mercurial) RepositoryFileList ¶
func (*Mercurial) RepositoryURL ¶
func (*Mercurial) ValidateCommit ¶
type Publisher ¶
type Publisher interface { Test() error CreateTag(name string) error ValidateCommit(commit string) error RepositoryURL() (string, error) LastCommitRevision() (string, error) LastCommitAuthorName() (string, error) LastCommitEmail() (string, error) RepositoryFileList() ([]string, error) }
Publisher - generic interface to VCS functionality need to publish packages
func CreatePublisher ¶
func CreatePublisher(repository *msg.Package_Repository) (Publisher, error)
Click to show internal directories.
Click to hide internal directories.