Documentation ¶
Index ¶
- type BitbucketCrawler
- type Commit
- type CommitsResponse
- type CommitsResponse_sub1
- type CommitsResponse_sub10
- type CommitsResponse_sub2
- type CommitsResponse_sub4
- type CommitsResponse_sub5
- type CommitsResponse_sub6
- type CommitsResponse_sub7
- type CommitsResponse_sub8
- type CommitsResponse_sub9
- type LinkData
- type RepositoriesResponse
- type Repository
- type RepositoryApiLinks
- type RepositoryBranch
- type RepositoryCloneLink
- type RepositoryProject
- type User
- type UserApiLinks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitbucketCrawler ¶
type BitbucketCrawler struct {
// contains filtered or unexported fields
}
func NewCrawler ¶
func NewCrawler(baseAPI, username, password string) *BitbucketCrawler
func (*BitbucketCrawler) GetRepoContributors ¶
func (c *BitbucketCrawler) GetRepoContributors(user, repo string) (users []entities.User, err error)
func (*BitbucketCrawler) GetUserRepositories ¶
func (c *BitbucketCrawler) GetUserRepositories(user string) (repos []entities.Repository, err error)
type Commit ¶
type Commit struct { Author CommitsResponse_sub4 `json:"author"` Date string `json:"date"` Hash string `json:"hash"` Links CommitsResponse_sub5 `json:"links"` Message string `json:"message"` Parents []CommitsResponse_sub7 `json:"parents"` Rendered CommitsResponse_sub9 `json:"rendered"` Repository CommitsResponse_sub10 `json:"repository"` Summary CommitsResponse_sub8 `json:"summary"` Type string `json:"type"` }
type CommitsResponse ¶
type CommitsResponse_sub1 ¶
type CommitsResponse_sub1 struct {
Href string `json:"href"`
}
type CommitsResponse_sub10 ¶
type CommitsResponse_sub10 struct { FullName string `json:"full_name"` Links CommitsResponse_sub2 `json:"links"` Name string `json:"name"` Type string `json:"type"` UUID string `json:"uuid"` }
type CommitsResponse_sub2 ¶
type CommitsResponse_sub2 struct { Avatar CommitsResponse_sub1 `json:"avatar"` HTML CommitsResponse_sub1 `json:"html"` Self CommitsResponse_sub1 `json:"self"` }
type CommitsResponse_sub4 ¶
type CommitsResponse_sub5 ¶
type CommitsResponse_sub5 struct { Approve CommitsResponse_sub1 `json:"approve"` Comments CommitsResponse_sub1 `json:"comments"` Diff CommitsResponse_sub1 `json:"diff"` HTML CommitsResponse_sub1 `json:"html"` Patch CommitsResponse_sub1 `json:"patch"` Self CommitsResponse_sub1 `json:"self"` Statuses CommitsResponse_sub1 `json:"statuses"` }
type CommitsResponse_sub6 ¶
type CommitsResponse_sub6 struct { HTML CommitsResponse_sub1 `json:"html"` Self CommitsResponse_sub1 `json:"self"` }
type CommitsResponse_sub7 ¶
type CommitsResponse_sub7 struct { Hash string `json:"hash"` Links CommitsResponse_sub6 `json:"links"` Type string `json:"type"` }
type CommitsResponse_sub8 ¶
type CommitsResponse_sub9 ¶
type CommitsResponse_sub9 struct {
Message CommitsResponse_sub8 `json:"message"`
}
type RepositoriesResponse ¶
type RepositoriesResponse struct { Next string `json:"next"` Page int64 `json:"page"` Pagelen int64 `json:"pagelen"` Size int64 `json:"size"` Values []Repository `json:"values"` }
type Repository ¶
type Repository struct { CreatedOn string `json:"created_on"` Description string `json:"description"` ForkPolicy string `json:"fork_policy"` FullName string `json:"full_name"` HasIssues bool `json:"has_issues"` HasWiki bool `json:"has_wiki"` IsPrivate bool `json:"is_private"` Language string `json:"language"` Links RepositoryApiLinks `json:"links"` Mainbranch RepositoryBranch `json:"mainbranch"` Name string `json:"name"` Owner User `json:"owner"` Project RepositoryProject `json:"project"` Scm string `json:"scm"` Size int64 `json:"size"` Slug string `json:"slug"` Type string `json:"type"` UpdatedOn string `json:"updated_on"` UUID string `json:"uuid"` Website string `json:"website"` }
type RepositoryApiLinks ¶
type RepositoryApiLinks struct { Avatar LinkData `json:"avatar"` Branches LinkData `json:"branches"` Clone []RepositoryCloneLink `json:"clone"` Commits LinkData `json:"commits"` Downloads LinkData `json:"downloads"` Forks LinkData `json:"forks"` Hooks LinkData `json:"hooks"` HTML LinkData `json:"html"` Issues LinkData `json:"issues"` Pullrequests LinkData `json:"pullrequests"` Self LinkData `json:"self"` Source LinkData `json:"source"` Tags LinkData `json:"tags"` Watchers LinkData `json:"watchers"` }
type RepositoryBranch ¶
type RepositoryCloneLink ¶
type RepositoryProject ¶
type RepositoryProject struct { Key string `json:"key"` Links UserApiLinks `json:"links"` Name string `json:"name"` Type string `json:"type"` UUID string `json:"uuid"` }
type UserApiLinks ¶
Click to show internal directories.
Click to hide internal directories.