Documentation
¶
Index ¶
- Constants
- type BitbucketError
- type Error
- type ListGroupsOpts
- type ListPrivilegesOfAccountOpts
- type ListReposByOwnerOpts
- type ListReposOpts
- type ListResult
- type ListTeamMembersOpts
- type ListTeamsOpts
- type V1Impl
- type V2Impl
- func (impl *V2Impl) Do(req *http.Request) (map[string]interface{}, error)
- func (impl *V2Impl) DoCustom(req *http.Request, successV, failureV interface{}) (*http.Response, error)
- func (impl *V2Impl) DoList(req *http.Request) (*ListResult, error)
- func (impl *V2Impl) Next(next string) (*ListResult, error)
Constants ¶
View Source
const ( AdminLevel permissionLevel = "admin" WriteLevel permissionLevel = "write" ReadLevel permissionLevel = "read" )
View Source
const ( AdminRole role = "admin" ContributorRole role = "contributor" MemberRole role = "member" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitbucketError ¶
func (BitbucketError) Error ¶
func (err BitbucketError) Error() string
type ListGroupsOpts ¶
type ListGroupsOpts struct {
// filter by group (e.g., "foo/bar" where foo = user or team and bar = group slug)
Group string `url:"group,omitempty"`
}
type ListPrivilegesOfAccountOpts ¶
type ListPrivilegesOfAccountOpts struct {
// filter=read|write|admin
// If you filter for the read permission, you also get the higher levels of permission such as write and
// admin as they also include the ability to read.
Filter permissionLevel `url:"group,omitempty"`
// private=true query parameter to filter for private repositories
Private bool `url:"private,omitempty"`
}
type ListReposByOwnerOpts ¶
type ListReposByOwnerOpts struct {
// Filters the result based on the authenticated user's role on each repository.
// - member: returns repositories to which the user has explicit read access
// - contributor: returns repositories to which the user has explicit write access
// - admin: returns repositories to which the user has explicit administrator access
// - owner: returns all repositories owned by the current user
Role role `url:"role,omitempty"`
// The amount of entries to return per page, default to 10.
Pagelen int `url:"pagelen,omitempty"`
// query according to:https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering
Query string `url:"q,omitempty"`
// sorting according to:https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering
Sort string `url:"sort,omitempty"`
}
type ListReposOpts ¶
type ListReposOpts struct {
// Filter the results to include only repositories create on or after this ISO-8601 timestamp. Example: YYYY-MM-DDTHH:mm:ss.sssZ
After string `url:"after,omitempty"`
// The amount of entries to return per page, default to 10.
Pagelen int `url:"pagelen,omitempty"`
// query according to:https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering
Query string `url:"q,omitempty"`
// sorting according to:https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering
Sort string `url:"sort,omitempty"`
}
List repositories options
type ListResult ¶
type ListTeamMembersOpts ¶
type ListTeamMembersOpts struct {
// The amount of entries to return per page, default to 10.
Pagelen int `url:"pagelen,omitempty"`
}
List team members options
type ListTeamsOpts ¶
type ListTeamsOpts struct {
// Role filters the teams based on the authenticated user's role on each team.
// - member: returns a list of all the teams which the caller is a member of at least one team group or repository owned by the team
// - contributor: returns a list of teams which the caller has write access to at least one repository owned by the team
// - admin: returns a list teams which the caller has team administrator access
Role role `url:"role,omitempty"`
// The amount of entries to return per page, default to 10.
Pagelen int `url:"pagelen,omitempty"`
}
List teams options
type V1Impl ¶
type V1Impl struct {
Groups v1Groups
Privileges v1Privilege
GroupPrivileges v1GroupPrivilege
// contains filtered or unexported fields
}
func NewV1BasicAuth ¶
Click to show internal directories.
Click to hide internal directories.