Documentation
¶
Index ¶
- func New(config *v3.BitbucketCloudPipelineConfig) (model.Remote, error)
- type Author
- type Change
- type Hook
- type Link
- type Links
- type Object
- type PaginatedBranches
- type PaginatedHooks
- type PaginatedRepositories
- type Paging
- type PullRequest
- type PullRequestEndpoint
- type PullRequestEventPayload
- type PushEventPayload
- type Ref
- type Repository
- type Target
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hook ¶
type Hook struct {
UUID string `json:"uuid"`
Description string `json:"description"`
Links *Links `json:"links"`
URL string `json:"url"`
SkipCertVerification bool `json:"skip_cert_verification"`
Active bool `json:"active"`
Events []string `json:"events"`
}
type Links ¶
type Links struct {
HTML Link `json:"html"`
Avatar Link `json:"avatar"`
Clone []Link `json:"clone"`
}
type PaginatedBranches ¶
type PaginatedBranches struct {
Paging
Values []Ref `json:"values"`
}
type PaginatedHooks ¶
type PaginatedHooks struct {
Paging
Values []Hook `json:"values"`
}
type PaginatedRepositories ¶
type PaginatedRepositories struct {
Paging
Values []Repository `json:"values"`
}
type Paging ¶
type Paging struct {
Size int `json:"size"`
Page int `json:"page"`
PageLength int `json:"pagelen"`
Next string `json:"next"`
Previous string `json:"previous"`
}
type PullRequest ¶
type PullRequest struct {
ID int `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
State string `json:"state"`
Author User `json:"author"`
Source PullRequestEndpoint `json:"source"`
Destination PullRequestEndpoint `json:"destination"`
Links Links `json:"links"`
Created string `json:"created_on"`
Updated string `json:"updated_on"`
}
type PullRequestEndpoint ¶
type PullRequestEndpoint struct {
Branch struct {
Name string `json:"name"`
} `json:"branch"`
Commit struct {
Hash string `json:"hash"`
} `json:"commit"`
Repository Repository `json:"repository"`
}
type PullRequestEventPayload ¶
type PullRequestEventPayload struct {
Actor User `json:"actor"`
PullRequest PullRequest `json:"pullrequest"`
Repository Repository `json:"repository"`
}
type PushEventPayload ¶
type PushEventPayload struct {
Actor User `json:"actor"`
Repository Repository `json:"repository"`
Push struct {
Changes []Change `json:"changes"`
} `json:"push"`
}
type Ref ¶
type Ref struct {
Type string `json:"type"`
Name string `json:"name"`
Links *Links `json:"links"`
Target *Target `json:"target"`
}
type Repository ¶
type Repository struct {
Scm string `json:"scm"`
Website string `json:"website"`
HasWiki bool `json:"has_wiki"`
Name string `json:"name"`
Links *Links `json:"links"`
ForkPolicy string `json:"fork_policy"`
Language string `json:"language"`
MainBranch Object `json:"mainbranch"`
FullName string `json:"full_name"`
HasIssues bool `json:"has_issues"`
Owner *User `json:"owner"`
IsPrivate bool `json:"is_private"`
Description string `json:"description"`
}
Click to show internal directories.
Click to hide internal directories.