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

bitbucketserver

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(URL, apiURL, uiURL, proxyURL string, store cache.Store, username, token string) sdk.VCSServer

New creates a new bitbucket Consumer

Types

type Author

type Author struct {
	Name        string `json:"name"`
	Email       string `json:"emailAddress"`
	DisplayName string `json:"displayName"`
	Slug        string `json:"slug"`
	ID          int    `json:"id"`
}

type Branch

type Branch struct {
	ID         string `json:"id"`
	DisplayID  string `json:"displayId"`
	LatestHash string `json:"latestChangeset"`
	IsDefault  bool   `json:"isDefault"`
}

type BranchResponse

type BranchResponse struct {
	Values     []Branch `json:"values"`
	Size       int      `json:"size"`
	IsLastPage bool     `json:"isLastPage"`
}

type Clone

type Clone struct {
	URL  string `json:"href"`
	Name string `json:"name"`
}

type Commit

type Commit struct {
	Hash       string           `json:"id"`
	Author     Author           `json:"author"`
	Committer  Author           `json:"committer"`
	Timestamp  int64            `json:"authorTimestamp"`
	Message    string           `json:"message"`
	Properties CommitProperties `json:"properties"`
}

type CommitProperties added in v0.55.0

type CommitProperties struct {
	Signature CommitSignature `json:"signature"`
}

type CommitSignature added in v0.55.0

type CommitSignature struct {
	IsVerified  bool   `json:"isVerified"`
	Fingerprint string `json:"fingerprint"`
}

type CommitsResponse

type CommitsResponse struct {
	Values        []Commit `json:"values"`
	Size          int      `json:"size"`
	NextPageStart int      `json:"nextPageStart"`
	IsLastPage    bool     `json:"isLastPage"`
}

type Content

type Content struct {
	Lines []Lines `json:"lines"`
}

type FileContentResponse added in v0.55.0

type FileContentResponse struct {
	Lines      []FileContentResponseLine `json:"lines"`
	IsLastPage bool                      `json:"isLastPage"`
}

type FileContentResponseLine added in v0.55.0

type FileContentResponseLine struct {
	Text string `json:"text"`
}

type GetWebHooksResponse

type GetWebHooksResponse struct {
	Values []WebHook `json:"values"`
}

GetWebHooksResponse represent the response send by bitbucket when listing webhooks

type Hook

type Hook struct {
	Enabled bool        `json:"enabled"`
	Details *HookDetail `json:"details"`
}

type HookDetail

type HookDetail struct {
	Key           string `json:"key"`
	Name          string `json:"name"`
	Type          string `json:"type"`
	Description   string `json:"description"`
	Version       string `json:"version"`
	ConfigFormKey string `json:"configFormKey"`
}

type InsightReport added in v0.55.0

type InsightReport struct {
	Title    string              `json:"title"`
	Detail   string              `json:"details,omitempty"`
	Result   string              `json:"result,omitempty"`
	Data     []InsightReportData `json:"data,omitempty"`
	Reporter string              `json:"reporter,omitempty"`
	Link     string              `json:"link,omitempty"`
	LogoURL  string              `json:"logoUrl,omitempty"`
}

type InsightReportData added in v0.55.0

type InsightReportData struct {
	Title string      `json:"title"`
	Type  string      `json:"type"` // One of: BOOLEAN, DATE, DURATION, LINK, NUMBER, PERCENTAGE, TEXT
	Value interface{} `json:"value"`
}
type InsightReportDataLink struct {
	Text string `json:"linktext"`
	Href string `json:"href"`
}

type Key

type Key struct {
	ID    int64  `json:"id"`
	Text  string `json:"text"`
	Label string `json:"label"`
}

type Keys

type Keys struct {
	Values []Key `json:"values"`
}

type Lines

type Lines struct {
	Text string `json:"text"`
}
type Link struct {
	URL string `json:"url"`
	Rel string `json:"rel"`
}
type Links struct {
	Clone []Clone `json:"clone"`
	Self  []Clone `json:"self"`
}

type ListContentResponse added in v0.55.0

type ListContentResponse struct {
	Values        []string `json:"values"`
	Size          int      `json:"size"`
	NextPageStart int      `json:"nextPageStart"`
	IsLastPage    bool     `json:"isLastPage"`
}

type Options added in v0.55.0

type Options struct {
	DisableCache bool
}

type PullRequestResponse

type PullRequestResponse struct {
	Values        []sdk.BitbucketServerPullRequest `json:"values"`
	Size          int                              `json:"size"`
	NextPageStart int                              `json:"nextPageStart"`
	IsLastPage    bool                             `json:"isLastPage"`
}

type Repo

type Repo struct {
	Name    string                      `json:"name"`
	Slug    string                      `json:"slug"`
	Public  bool                        `json:"public"`
	ScmID   string                      `json:"scmId"`
	Project *sdk.BitbucketServerProject `json:"project"`
	Links   *Links                      `json:"links"`
}

type Response

type Response struct {
	Values        []Repo `json:"values"`
	Size          int    `json:"size"`
	NextPageStart int    `json:"nextPageStart"`
	IsLastPage    bool   `json:"isLastPage"`
}

type ResponseStatus

type ResponseStatus struct {
	Values        []Status `json:"values"`
	Size          int      `json:"size"`
	NextPageStart int      `json:"nextPageStart"`
	IsLastPage    bool     `json:"isLastPage"`
}

type Status

type Status struct {
	Description string `json:"description"`
	Key         string `json:"key"`
	Name        string `json:"name"`
	State       string `json:"state"`
	URL         string `json:"url"`
	Timestamp   int64  `json:"dateAdded"`
	Parent      string `json:"parent"`
}

type Tag

type Tag struct {
	ID              string `json:"id"`
	DisplayID       string `json:"displayId"`
	Type            string `json:"type"`
	LatestCommit    string `json:"latestCommit"`
	LatestChangeset string `json:"latestChangeset"`
	Hash            string `json:"hash"`
}

type TagResponse

type TagResponse struct {
	Values     []Tag `json:"values"`
	Size       int   `json:"size"`
	IsLastPage bool  `json:"isLastPage"`
}

type UserPermission

type UserPermission struct {
	User       sdk.BitbucketServerActor `json:"user"`
	Permission string                   `json:"permission"`
}

type UsersPermissionResponse

type UsersPermissionResponse struct {
	Values        []UserPermission `json:"values"`
	Size          int              `json:"size"`
	NextPageStart int              `json:"nextPageStart"`
	IsLastPage    bool             `json:"isLastPage"`
}

type UsersResponse

type UsersResponse struct {
	Values        []sdk.BitbucketServerActor `json:"values"`
	Size          int                        `json:"size"`
	NextPageStart int                        `json:"nextPageStart"`
	IsLastPage    bool                       `json:"isLastPage"`
}

type WebHook

type WebHook struct {
	ID            int               `json:"id,omitempty"`
	Active        bool              `json:"active"`
	Configuration map[string]string `json:"configuration"`
	Events        []string          `json:"events"`
	Name          string            `json:"name"`
	URL           string            `json:"url"`
}

WebHook Represent a webhook in bitbucket model

Jump to

Keyboard shortcuts

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