Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EndpointBrewTapsJSON is the endpoint for brew taps in JSON format EndpointBrewTapsJSON = "/brew_taps.json" // EndpointBrewTapsCSV is the endpoint for brew taps in CSV format EndpointBrewTapsCSV = "/brew_taps.csv" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrewTap ¶
type BrewTap struct {
Tap string `json:"tap"`
Devices []string `json:"devices"`
FormulaeInstalled int `json:"formulae_installed"`
CasksInstalled int `json:"casks_installed"`
AvailablePackages string `json:"available_packages"`
}
BrewTap represents a single brew tap entry
type BrewTapsResponse ¶
type BrewTapsResponse []BrewTap
BrewTapsResponse is the response from GET /brew_taps.json
type BrewTapsServiceInterface ¶
type BrewTapsServiceInterface interface {
// ListBrewTaps returns a list of Taps
//
// Returns Homebrew taps with their names, assigned devices, installed formulae/casks counts, and available packages.
ListBrewTaps(ctx context.Context) (*BrewTapsResponse, *interfaces.Response, error)
// ListBrewTapsCSV returns a list of Taps in CSV format
//
// Returns tap data as CSV with columns: tap, devices, formulae_installed, casks_installed, available_packages.
ListBrewTapsCSV(ctx context.Context) ([]byte, *interfaces.Response, error)
}
BrewTapsServiceInterface defines the interface for brew taps operations
Workbrew API docs: https://console.workbrew.com/documentation/api
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles communication with the brew taps related methods of the Workbrew API.
func NewService ¶
func NewService(client interfaces.HTTPClient) *Service
NewService creates a new brew taps service
func (*Service) ListBrewTaps ¶
func (s *Service) ListBrewTaps(ctx context.Context) (*BrewTapsResponse, *interfaces.Response, error)
ListBrewTaps retrieves all brew taps in JSON format URL: GET https://console.workbrew.com/workspaces/{workspace_name}/brew_taps.json
func (*Service) ListBrewTapsCSV ¶
ListBrewTapsCSV retrieves all brew taps in CSV format URL: GET https://console.workbrew.com/workspaces/{workspace_name}/brew_taps.csv
Click to show internal directories.
Click to hide internal directories.