Documentation
¶
Index ¶
- type CommitInfo
- type FtpRepo
- func (FtpRepo) BranchList(projectID int64) ([]string, error)
- func (ftpRepo FtpRepo) BranchLog(projectID int64, branch string, rows int) ([]CommitInfo, error)
- func (FtpRepo) CanRollback() bool
- func (FtpRepo) CommitLog(projectID int64, rows int) ([]CommitInfo, error)
- func (ftpRepo FtpRepo) Create(projectID int64) error
- func (ftpRepo FtpRepo) Follow(project model.Project, _ string) error
- func (ftpRepo FtpRepo) Ping(url string) error
- func (FtpRepo) RemoteBranchList(url string) ([]string, error)
- func (ftpRepo FtpRepo) TagLog(projectID int64, rows int) ([]CommitInfo, error)
- type GitRepo
- func (GitRepo) BranchList(projectID int64) ([]string, error)
- func (GitRepo) BranchLog(projectID int64, branch string, rows int) ([]CommitInfo, error)
- func (GitRepo) CanRollback() bool
- func (GitRepo) CommitLog(projectID int64, rows int) ([]CommitInfo, error)
- func (GitRepo) Create(projectID int64) error
- func (gitRepo GitRepo) Follow(project model.Project, target string) error
- func (GitRepo) Ping(url string) error
- func (GitRepo) RemoteBranchList(url string) ([]string, error)
- func (GitRepo) TagLog(projectID int64, rows int) ([]CommitInfo, error)
- type Repo
- type SftpRepo
- func (SftpRepo) BranchList(projectID int64) ([]string, error)
- func (sftpRepo SftpRepo) BranchLog(projectID int64, branch string, rows int) ([]CommitInfo, error)
- func (SftpRepo) CanRollback() bool
- func (SftpRepo) CommitLog(projectID int64, rows int) ([]CommitInfo, error)
- func (sftpRepo SftpRepo) Create(projectID int64) error
- func (sftpRepo SftpRepo) Follow(project model.Project, _ string) error
- func (sftpRepo SftpRepo) Ping(url string) error
- func (SftpRepo) RemoteBranchList(url string) ([]string, error)
- func (sftpRepo SftpRepo) TagLog(projectID int64, rows int) ([]CommitInfo, error)
- type SvnRepo
- func (SvnRepo) BranchList(projectID int64) ([]string, error)
- func (SvnRepo) BranchLog(projectID int64, branch string, rows int) ([]CommitInfo, error)
- func (SvnRepo) CanRollback() bool
- func (SvnRepo) CommitLog(projectID int64, rows int) ([]CommitInfo, error)
- func (SvnRepo) Create(projectID int64) error
- func (svnRepo SvnRepo) Follow(project model.Project, target string) error
- func (SvnRepo) Ping(url string) error
- func (SvnRepo) RemoteBranchList(url string) ([]string, error)
- func (SvnRepo) TagLog(projectID int64, rows int) ([]CommitInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitInfo ¶
type FtpRepo ¶ added in v1.4.7
type FtpRepo struct{}
func (FtpRepo) BranchList ¶ added in v1.4.7
func (FtpRepo) CanRollback ¶ added in v1.8.0
func (FtpRepo) CommitLog ¶ added in v1.4.7
func (FtpRepo) CommitLog(projectID int64, rows int) ([]CommitInfo, error)
func (FtpRepo) RemoteBranchList ¶ added in v1.4.7
type GitRepo ¶
type GitRepo struct{}
func (GitRepo) CanRollback ¶ added in v1.8.0
type Repo ¶
type Repo interface { Ping(url string) error // Create one repository Create(projectID int64) error // Follow the repository code and update to latest Follow(project model.Project, target string) error // RemoteBranchList list remote branches in the url RemoteBranchList(url string) ([]string, error) // BranchList list the local repository's branches BranchList(projectID int64) ([]string, error) // CommitLog list the local commit log CommitLog(projectID int64, rows int) ([]CommitInfo, error) // BranchLog list the local commit log from specific branch BranchLog(projectID int64, branch string, rows int) ([]CommitInfo, error) // TagLog list the local commit log from all tag TagLog(projectID int64, rows int) ([]CommitInfo, error) // CanRollback detect repo can rollback or not CanRollback() bool }
type SftpRepo ¶ added in v1.4.7
type SftpRepo struct{}
func (SftpRepo) BranchList ¶ added in v1.4.7
func (SftpRepo) CanRollback ¶ added in v1.8.0
func (SftpRepo) CommitLog ¶ added in v1.4.7
func (SftpRepo) CommitLog(projectID int64, rows int) ([]CommitInfo, error)
func (SftpRepo) RemoteBranchList ¶ added in v1.4.7
Click to show internal directories.
Click to hide internal directories.