stack

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package stack holds the business-logic layer for stack operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service exposes stack operations to the cmd layer.

func NewService

func NewService(client *bitriseapi.Client) *Service

NewService returns a Service backed by the given API client.

func (*Service) List

func (s *Service) List(ctx context.Context, workspaceSlug string) (StacksResult, error)

List returns available stacks sorted by ID. When workspaceSlug is non-empty, only stacks available to that workspace (including custom stacks) are returned.

type Stack

type Stack struct {
	ID          string `json:"id" yaml:"id"`
	Title       string `json:"title" yaml:"title"`
	OS          string `json:"os" yaml:"os"`
	OSVersion   int    `json:"os_version,omitempty" yaml:"os_version,omitempty"`
	Status      string `json:"status" yaml:"status"`
	Description string `json:"description,omitempty" yaml:"description,omitempty"`
	StackReport string `json:"stack_report,omitempty" yaml:"stack_report,omitempty"`
	RemovalDate string `json:"removal_date,omitempty" yaml:"removal_date,omitempty"`
}

Stack is the CLI representation of a Bitrise stack. Field names are normalized to snake_case from the wire format's hyphenated keys.

type StacksResult

type StacksResult struct {
	Items []Stack `json:"items" yaml:"items"`
}

StacksResult holds all available stacks.

Jump to

Keyboard shortcuts

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