vcs

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2018 License: Artistic-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHubURL = "https://api.github.com/repos"
	Tarball   = "tarball"
	TarSuffix = ".tar.gz"
)

Variables

This section is empty.

Functions

func RepoType

func RepoType() (msg.RepoType, error)

Types

type Git

type Git struct {
}

func NewGit

func NewGit() *Git

func (*Git) CreateTag

func (g *Git) CreateTag(name string) error

func (*Git) Install

func (g *Git) Install(repository *msg.Package_Repository, version *msg.Package_Version, destination string) (*common.PackageWrapper, error)

func (*Git) LastCommitAuthorName

func (g *Git) LastCommitAuthorName() (string, error)

func (*Git) LastCommitEmail

func (g *Git) LastCommitEmail() (string, error)

func (*Git) LastCommitRevision

func (g *Git) LastCommitRevision() (string, error)

func (*Git) RepositoryFileList

func (g *Git) RepositoryFileList() ([]string, error)

func (*Git) RepositoryURL

func (g *Git) RepositoryURL() (string, error)

func (*Git) Test

func (g *Git) Test() error

func (*Git) ValidateCommit

func (g *Git) ValidateCommit(commit string) error

type GitHub

type GitHub struct {
}

func NewGitHub

func NewGitHub() *GitHub

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) CreateTag

func (m *Mercurial) CreateTag(name string) error

func (*Mercurial) Install

func (m *Mercurial) Install(repository *msg.Package_Repository, version *msg.Package_Version, destination string) (*common.PackageWrapper, error)

func (*Mercurial) LastCommitAuthorName

func (m *Mercurial) LastCommitAuthorName() (string, error)

func (*Mercurial) LastCommitEmail

func (m *Mercurial) LastCommitEmail() (string, error)

func (*Mercurial) LastCommitRevision

func (m *Mercurial) LastCommitRevision() (string, error)

func (*Mercurial) RepositoryFileList

func (m *Mercurial) RepositoryFileList() ([]string, error)

func (*Mercurial) RepositoryURL

func (m *Mercurial) RepositoryURL() (string, error)

func (*Mercurial) Test

func (m *Mercurial) Test() error

func (*Mercurial) ValidateCommit

func (m *Mercurial) ValidateCommit(commit string) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL