Documentation ¶
Index ¶
- func NewSVN(scmCfg *api.SCMConfig) (scm.SCMProvider, error)
- type SVN
- func (s *SVN) CheckToken() bool
- func (g *SVN) CreateStatus(recordStatus api.Status, targetURL, repoURL, statusesURL string) error
- func (s *SVN) CreateWebHook(repoURL string, webHook *scm.WebHook) error
- func (s *SVN) DeleteWebHook(repoURL string, webHookUrl string) error
- func (s *SVN) GetMergeRequestTargetBranch(repoURL string, number int) (string, error)
- func (s *SVN) GetPullRequestSHA(repoURL string, number int) (string, error)
- func (s *SVN) GetTemplateType(repo string) (string, error)
- func (s *SVN) GetToken() (string, error)
- func (s *SVN) ListBranches(repo string) ([]string, error)
- func (s *SVN) ListRepos() ([]api.Repository, error)
- func (s *SVN) ListTags(repo string) ([]string, error)
- func (s *SVN) NewTagFromLatest(tagName, description, commitID, url string) error
- func (s *SVN) RetrieveRepoInfo(url string) (*api.RepoInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SVN ¶
type SVN struct {
// contains filtered or unexported fields
}
SVN represents the SCM provider of SVN.
func (*SVN) CheckToken ¶
func (*SVN) CreateStatus ¶
CreateStatus generate a new status for repository.
func (*SVN) GetMergeRequestTargetBranch ¶
func (*SVN) GetPullRequestSHA ¶
func (*SVN) NewTagFromLatest ¶
func (*SVN) RetrieveRepoInfo ¶
RetrieveRepoInfo retrive svn repository uuid/root-url by command:
'svn info --show-item repos-uuid(or repos-root-url) --username {user} --password {password} --non-interactive --trust-server-cert-failures unknown-ca,cn-mismatch,expired,not-yet-valid,other --no-auth-cache {remote-svn-address}'
Click to show internal directories.
Click to hide internal directories.