bitbucketcloud

package
v2.2.8-ent2-rc4+incomp... Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Author

type Author struct {
	Raw  string `json:"raw"`
	User *User  `json:"user"`
}

type Change

type Change struct {
	New Ref `json:"new"`
}

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 Link struct {
	Href string `json:"href"`
	Name string `json:"name"`
}
type Links struct {
	HTML   Link   `json:"html"`
	Avatar Link   `json:"avatar"`
	Clone  []Link `json:"clone"`
}

type Object

type Object struct {
	Type string `json:"type"`
	Name string `json:"name"`
}

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"`
}

type Target

type Target struct {
	Hash       string      `json:"hash"`
	Repository *Repository `json:"repository"`
	Links      *Links      `json:"links"`
	Author     *Author     `json:"author"`
	Date       string      `json:"date"`
	Message    string      `json:"message"`
}

type User

type User struct {
	UserName    string `json:"username"`
	Website     string `json:"website"`
	DisplayName string `json:"display_name"`
	AccountID   string `json:"account_id"`
	Links       *Links `json:"links"`
}

Jump to

Keyboard shortcuts

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