Documentation ¶
Index ¶
- Constants
- func NewSVN(scmCfg *v1alpha1.SCMSource) (scm.Provider, error)
- func ParseEvent(request *http.Request) *scm.EventData
- type PostCommit
- type SVN
- func (s *SVN) CheckToken() error
- func (s *SVN) CreateStatus(status c_v1alpha1.StatusPhase, targetURL, repoURL, commitSha string) error
- func (s *SVN) CreateWebhook(repo string, webhook *scm.Webhook) error
- func (s *SVN) DeleteWebhook(repo string, webhookURL string) error
- func (s *SVN) GetPullRequestSHA(repoURL string, number int) (string, error)
- func (s *SVN) GetToken() (string, error)
- func (s *SVN) ListBranches(repo string) ([]string, error)
- func (s *SVN) ListDockerfiles(repo string) ([]string, error)
- func (s *SVN) ListPullRequests(repo, state string) ([]scm.PullRequest, error)
- func (s *SVN) ListRepos() ([]scm.Repository, error)
- func (s *SVN) ListTags(repo string) ([]string, error)
Constants ¶
View Source
const ( // EventTypeHeader represents the header key for event type of SVN, e.g X-Subversion-Event=Post-Commit. EventTypeHeader = "X-Subversion-Event" // PostCommitEvent represents post commit type event PostCommitEvent = "Post-Commit" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostCommit ¶ added in v0.9.6
type PostCommit struct { // RepoUUID represents svn repository uuid of this trigger commit // Exec command: // `svn info --show-item repos-uuid --username {user} --password {password} --non-interactive // --trust-server-cert-failures unknown-ca,cn-mismatch,expired,not-yet-valid,other // --no-auth-cache {url}` // or // `svnlook uuid {repoPath}` // can get the repo uuid RepoUUID string `json:"repoUUID"` // RepoName represents the revision of this trigger commit Revision string `json:"revision"` }
PostCommit is PostCommit Event type body struct
type SVN ¶
type SVN struct {
// contains filtered or unexported fields
}
SVN represents the SCM provider of SVN.
func (*SVN) CreateStatus ¶ added in v0.9.6
func (s *SVN) CreateStatus(status c_v1alpha1.StatusPhase, targetURL, repoURL, commitSha string) error
CreateStatus ...
func (*SVN) CreateWebhook ¶
CreateWebhook ...
func (*SVN) DeleteWebhook ¶
DeleteWebhook ...
func (*SVN) GetPullRequestSHA ¶ added in v0.9.6
GetPullRequestSHA ...
func (*SVN) ListBranches ¶
ListBranches ...
func (*SVN) ListDockerfiles ¶
ListDockerfiles ...
func (*SVN) ListPullRequests ¶ added in v0.9.7
func (s *SVN) ListPullRequests(repo, state string) ([]scm.PullRequest, error)
ListPullRequests list pull requests of repo, repo format must be {owner}/{repo}.
Click to show internal directories.
Click to hide internal directories.