Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	AccountID string `json:"account_id"`
	User      User   `json:"user"`
	Nickname  string `json:"nickname,omitempty"`
}

type Branch

type Branch struct {
	Name string `json:"name"`
}

type Change

type Change struct {
	New ChangeType
	Old ChangeType
}

type ChangeType

type ChangeType struct {
	Name   string
	Target Commit
	Type   string
}

type Comment

type Comment struct {
	Content Content `json:"content"`
	User    User
}

type Comments

type Comments struct {
	Values []Comment
}

type Commit

type Commit struct {
	Hash    string `json:"hash"`
	Links   Links  `json:"links"`
	Message string `json:"message"`
	Author  Author `json:"author"`
}

type CommitStatusState added in v0.43.0

type CommitStatusState string
const (
	StateStopped    CommitStatusState = "STOPPED"
	StateFailed     CommitStatusState = "FAILED"
	StateInProgress CommitStatusState = "INPROGRESS"
	StateSuccessful CommitStatusState = "SUCCESSFUL"
)

See: https://api.bitbucket.org/swagger.json attribute: "definitions.commitStatus.allOf[1].properties.state.enum" for specification.

type Content

type Content struct {
	Raw string `json:"raw"`
}

type Destination

type Destination struct {
	Branch     Branch     `json:"branch"`
	Commit     Commit     `json:"commit"`
	Repository Repository `json:"repository"`
}
type HTMLLink struct {
	HRef string `json:"href"`
}

type IPRanges

type IPRanges struct {
	Items []IPRangesItem
}

type IPRangesItem

type IPRangesItem struct {
	Network string
	CIDR    string
	MaskLen string // `json:"mask_len"`
	Mask    string
}

IPRangesItem https://ip-ranges.atlassian.com/

type Links struct {
	HTML HTMLLink `json:"html"`
}

type Member

type Member struct {
	User User `json:"user"`
}

type Members

type Members struct {
	Values []Member
}

type PullRequest

type PullRequest struct {
	Author      Author      `json:"author"`
	Destination Destination `json:"destination"`
	Source      Source      `json:"source"`
	ID          int         `json:"id"`
	Links       Links
	Title       string `json:"title"`
	State       string `json:"state"`
}

type PullRequestEvent

type PullRequestEvent struct {
	Repository  Repository  `json:"repository"`
	PullRequest PullRequest `json:"pullrequest"`
	Comment     Comment     `json:"comment"`
}

type Push

type Push struct {
	Changes []Change `json:"changes"`
}

type PushRequestEvent

type PushRequestEvent struct {
	Repository Repository
	Actor      User
	Push       Push `json:"push"`
}

type Repository

type Repository struct {
	Workspace Workspace `json:"workspace"`
	Name      string    `json:"name"`
	FullName  string    `json:"full_name"`
	Links     Links     `json:"links"`
}

type Source

type Source struct {
	Branch     Branch     `json:"branch"`
	Commit     Commit     `json:"commit"`
	Repository Repository `json:"repository"`
}

type Status added in v0.46.0

type Status struct {
	Key         string     `json:"key"`
	Type        string     `json:"type"`
	State       string     `json:"state"`
	Name        string     `json:"name"`
	RefName     string     `json:"refname"`
	Commit      Commit     `json:"commit"`
	URL         string     `json:"url"`
	Repository  Repository `json:"repository"`
	Description string     `json:"description"`
	Links       Links      `json:"links"`
}

type User

type User struct {
	DisplayName string `json:"display_name" mapstructure:"display_name"`
	AccountID   string `json:"account_id"   mapstructure:"account_id"`
	Nickname    string
}

type Workspace

type Workspace struct {
	Slug string `json:"slug"`
}

Jump to

Keyboard shortcuts

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