provider

package
v0.7.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct{}

Git is the type for git provider.

func (*Git) Clone

func (g *Git) Clone(token, url, ref, destPath string) (string, error)

func (*Git) GetCommitID

func (g *Git) GetCommitID(repoPath string) (string, error)

GetCommitID implements VCS interface.

func (*Git) GetCommitLog

func (g *Git) GetCommitLog(repoPath string) api.CommitLog

GetTagAuthor implements VCS interface.

type Svn

type Svn struct{}

Svn is the type for svn provider.

func (*Svn) Clone

func (s *Svn) Clone(token, url, ref, destPath string) (string, error)

Clone implements SCMProvider interface.

func (*Svn) GetCommitID

func (s *Svn) GetCommitID(repoPath string) (string, error)

GetCommitID implements SCMProvider interface. returns latest commit id.

func (*Svn) GetCommitLog

func (s *Svn) GetCommitLog(repoPath string) api.CommitLog

GetCommitLog implements SCMProvider interface.

Jump to

Keyboard shortcuts

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