shared

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Links struct {
	HTML struct {
		Href string `json:"href"`
	} `json:"html"`
	Self struct {
		Href string `json:"href"`
	} `json:"self"`
	Avatar struct {
		Href string `json:"href"`
	} `json:"avatar"`
}

type Owner

type Owner struct {
	DisplayName string `json:"display_name"`
	UUID        string `json:"uuid"`
	Username    string `json:"username"`
	Slug        string `json:"slug"`
	Links       Links  `json:"links"`
}

type Project

type Project struct {
	Key         string `json:"key"`
	UUID        string `json:"uuid"`
	Name        string `json:"name"`
	Description string `json:"description"`
	IsPrivate   bool   `json:"is_private"`
	CreatedOn   string `json:"created_on"`
	UpdatedOn   string `json:"updated_on"`
	Owner       *Owner `json:"owner,omitempty"`
	Workspace   *Owner `json:"workspace,omitempty"`
	Links       Links  `json:"links"`
}

Project represents a Bitbucket project

func (*Project) HTMLURL

func (p *Project) HTMLURL() string

HTMLURL returns the web URL for the project

type ProjectList

type ProjectList struct {
	Size     int       `json:"size"`
	Page     int       `json:"page"`
	PageLen  int       `json:"pagelen"`
	Next     string    `json:"next"`
	Previous string    `json:"previous"`
	Values   []Project `json:"values"`
}

ProjectList represents a paginated list of projects

Jump to

Keyboard shortcuts

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