types

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 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 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 Content

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

type Destination

type Destination struct {
	Branch Branch `json:"branch"`
}
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"`
}

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"`
	Links     Links     `json:"links"`
}

type Source

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

type User

type User struct {
	DisplayName string `mapstructure:"display_name" json:"display_name"`
	AccountID   string `mapstructure:"account_id" json:"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