bitbucket

package
v0.0.0-...-9c02efb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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 struct {
	Next    string   `json:"next"`
	Pagelen int64    `json:"pagelen"`
	Values  []Commit `json:"values"`
}

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_sub4 struct {
	Raw  string `json:"raw"`
	Type string `json:"type"`
	User User   `json:"user"`
}

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_sub8 struct {
	HTML   string `json:"html"`
	Markup string `json:"markup"`
	Raw    string `json:"raw"`
	Type   string `json:"type"`
}

type CommitsResponse_sub9

type CommitsResponse_sub9 struct {
	Message CommitsResponse_sub8 `json:"message"`
}

type LinkData

type LinkData struct {
	Href string `json:"href"`
}

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 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 RepositoryBranch struct {
	Name string `json:"name"`
	Type string `json:"type"`
}
type RepositoryCloneLink struct {
	Href string `json:"href"`
	Name string `json:"name"`
}

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 User

type User struct {
	AccountID   string       `json:"account_id"`
	DisplayName string       `json:"display_name"`
	Links       UserApiLinks `json:"links"`
	Type        string       `json:"type"`
	Nickname    string       `json:"nickname"`
	Username    string       `json:"username"`
	UUID        string       `json:"uuid"`
}
type UserApiLinks struct {
	Avatar LinkData `json:"avatar"`
	HTML   LinkData `json:"html"`
	Self   LinkData `json:"self"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL