list

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdList

func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Command

Types

type ListOptions

type ListOptions struct {
	HttpClient func() (*http.Client, error)
	IO         *iostreams.IOStreams

	Limit int
}

type Workspace

type Workspace struct {
	UUID      string `json:"uuid"`
	Name      string `json:"name"`
	Slug      string `json:"slug"`
	Type      string `json:"type"`
	IsPrivate bool   `json:"is_private"`
	Links     struct {
		HTML struct {
			Href string `json:"href"`
		} `json:"html"`
	} `json:"links"`
}

Workspace represents a Bitbucket workspace

type WorkspaceList

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

WorkspaceList represents a paginated list of workspaces

Jump to

Keyboard shortcuts

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