Documentation
¶
Index ¶
- func New(config *v3.BitbucketServerPipelineConfig) (model.Remote, error)
- type AccessToken
- type Branch
- type Change
- type Commit
- type Hook
- type HookConfiguration
- type LastModified
- type Link
- type Links
- type PaginatedAccessToken
- type PaginatedBranches
- type PaginatedHooks
- type PaginatedRepositories
- type Project
- type PullRequest
- type PullRequestEventPayload
- type PushEventPayload
- type Ref
- type Repository
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessToken ¶
type AccessToken struct {
ID string `json:"id"`
Name string `json:"name"`
Permissions []string `json:"permissions"`
User User `json:"user"`
Token string `json:"token"`
}
type Branch ¶
type Branch struct {
ID string `json:"id"`
DisplayID string `json:"displayId"`
Type string `json:"type"`
LatestCommit string `json:"latestCommit"`
LatestChangeset string `json:"latestChangeset"`
IsDefault bool `json:"isDefault"`
}
type Change ¶
type Change struct {
Ref struct {
ID string `json:"id"`
DisplayID string `json:"displayId"`
Type string `json:"type"`
} `json:"ref"`
RefID string `json:"refId"`
FromHash string `json:"fromHash"`
ToHash string `json:"toHash"`
Type string `json:"type"`
}
type Commit ¶
type Commit struct {
ID string `json:"id"`
DisplayID string `json:"displayId"`
Author User `json:"author"`
Committer User `json:"committer"`
Message string `json:"message"`
}
type Hook ¶
type Hook struct {
ID int `json:"id"`
Name string `json:"name"`
Events []string `json:"events"`
Configuration HookConfiguration `json:"configuration"`
URL string `json:"url"`
Active bool `json:"active"`
}
type HookConfiguration ¶
type HookConfiguration struct {
Secret string `json:"secret"`
}
type LastModified ¶
type LastModified struct {
Files map[string]Commit `json:"files"`
LatestCommit Commit `json:"latestCommit"`
}
type Links ¶
type Links struct {
Self []Link `json:"self"`
HTML Link `json:"html"`
Avatar Link `json:"avatar"`
Clone []Link `json:"clone"`
}
type PaginatedAccessToken ¶
type PaginatedAccessToken struct {
Values []AccessToken `json:"values"`
// contains filtered or unexported fields
}
type PaginatedBranches ¶
type PaginatedBranches struct {
Values []Branch `json:"values"`
// contains filtered or unexported fields
}
type PaginatedHooks ¶
type PaginatedHooks struct {
Values []Hook `json:"values"`
// contains filtered or unexported fields
}
type PaginatedRepositories ¶
type PaginatedRepositories struct {
Values []Repository `json:"values"`
// contains filtered or unexported fields
}
type Project ¶
type Project struct {
Key string `json:"key"`
ID int `json:"id"`
Name string `json:"name"`
Public bool `json:"public"`
Type string `json:"type"`
Links Links `json:"links"`
}
type PullRequest ¶
type PullRequest struct {
ID int `json:"id"`
Version int `json:"version"`
Title string `json:"title"`
Description string `json:"description"`
State string `json:"state"`
Open bool `json:"open"`
Closed bool `json:"closed"`
FromRef Ref `json:"fromRef"`
ToRef Ref `json:"toRef"`
Locked bool `json:"locked"`
Author struct {
User User `json:"user"`
Role string `json:"role"`
Approved bool `json:"approved"`
Status string `json:"status"`
} `json:"author"`
Links Links `json:"links"`
}
type PullRequestEventPayload ¶
type PullRequestEventPayload struct {
EventKey string `json:"eventKey"`
Date string `json:"date"`
Actor User `json:"actor"`
PullRequest PullRequest `json:"pullRequest"`
}
type PushEventPayload ¶
type PushEventPayload struct {
EventKey string `json:"eventKey"`
Date string `json:"date"`
Actor User `json:"actor"`
Repository Repository `json:"repository"`
Changes []Change `json:"changes"`
}
type Ref ¶
type Ref struct {
ID string `json:"id"`
DisplayID string `json:"displayId"`
LatestCommit string `json:"latestCommit"`
Repository Repository `json:"repository"`
}
type Repository ¶
type Repository struct {
Slug string `json:"slug"`
ID int `json:"id"`
Name string `json:"name"`
ScmID string `json:"scmId"`
State string `json:"state"`
StatusMessage string `json:"statusMessage"`
Forkable bool `json:"forkable"`
Project Project `json:"project"`
Public bool `json:"public"`
Links Links `json:"links"`
}
Click to show internal directories.
Click to hide internal directories.