svn

package
v0.8.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSVN

func NewSVN(scmCfg *api.SCMConfig) (scm.SCMProvider, error)

Types

type SVN

type SVN struct {
	// contains filtered or unexported fields
}

SVN represents the SCM provider of SVN.

func (*SVN) CheckToken

func (s *SVN) CheckToken() bool

func (*SVN) CreateStatus

func (g *SVN) CreateStatus(recordStatus api.Status, targetURL, repoURL, statusesURL string) error

CreateStatus generate a new status for repository.

func (*SVN) CreateWebHook

func (s *SVN) CreateWebHook(repoURL string, webHook *scm.WebHook) error

func (*SVN) DeleteWebHook

func (s *SVN) DeleteWebHook(repoURL string, webHookUrl string) error

func (*SVN) GetMergeRequestTargetBranch

func (s *SVN) GetMergeRequestTargetBranch(repoURL string, number int) (string, error)

func (*SVN) GetPullRequestSHA

func (s *SVN) GetPullRequestSHA(repoURL string, number int) (string, error)

func (*SVN) GetTemplateType

func (s *SVN) GetTemplateType(repo string) (string, error)

func (*SVN) GetToken

func (s *SVN) GetToken() (string, error)

func (*SVN) ListBranches

func (s *SVN) ListBranches(repo string) ([]string, error)

func (*SVN) ListDockerfiles

func (s *SVN) ListDockerfiles(repo string) ([]string, error)

func (*SVN) ListRepos

func (s *SVN) ListRepos() ([]api.Repository, error)

func (*SVN) ListTags

func (s *SVN) ListTags(repo string) ([]string, error)

func (*SVN) NewTagFromLatest

func (s *SVN) NewTagFromLatest(tagName, description, commitID, url string) error

func (*SVN) RetrieveRepoInfo

func (s *SVN) RetrieveRepoInfo(url string) (*api.RepoInfo, error)

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}'

Jump to

Keyboard shortcuts

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