Documentation
¶
Index ¶
Constants ¶
const ( // EndpointBrewConfigurationsJSON is the endpoint for brew configurations in JSON format EndpointBrewConfigurationsJSON = "/brew_configurations.json" // EndpointBrewConfigurationsCSV is the endpoint for brew configurations in CSV format EndpointBrewConfigurationsCSV = "/brew_configurations.csv" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrewConfiguration ¶
type BrewConfiguration struct {
Key string `json:"key"`
Value string `json:"value"`
LastUpdatedByUser string `json:"last_updated_by_user"`
DeviceGroup string `json:"device_group"`
}
BrewConfiguration represents a single brew configuration entry
type BrewConfigurationsResponse ¶
type BrewConfigurationsResponse []BrewConfiguration
BrewConfigurationsResponse is the response from GET /brew_configurations.json
type BrewConfigurationsServiceInterface ¶
type BrewConfigurationsServiceInterface interface {
// ListBrewConfigurations returns a list of Brew Configurations
//
// Returns Homebrew environment variable configurations with their keys, values, last updated user, and assigned device groups.
ListBrewConfigurations(ctx context.Context) (*BrewConfigurationsResponse, *interfaces.Response, error)
// ListBrewConfigurationsCSV returns a list of Brew Configurations in CSV format
//
// Returns brew configuration data as CSV with columns: key, value, last_updated_by_user, device_group.
ListBrewConfigurationsCSV(ctx context.Context) ([]byte, *interfaces.Response, error)
}
BrewConfigurationsServiceInterface defines the interface for brew configurations 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 configurations related methods of the Workbrew API.
func NewService ¶
func NewService(client interfaces.HTTPClient) *Service
NewService creates a new brew configurations service
func (*Service) ListBrewConfigurations ¶
func (s *Service) ListBrewConfigurations(ctx context.Context) (*BrewConfigurationsResponse, *interfaces.Response, error)
ListBrewConfigurations retrieves all brew configurations in JSON format URL: GET https://console.workbrew.com/workspaces/{workspace_name}/brew_configurations.json
func (*Service) ListBrewConfigurationsCSV ¶
func (s *Service) ListBrewConfigurationsCSV(ctx context.Context) ([]byte, *interfaces.Response, error)
ListBrewConfigurationsCSV retrieves all brew configurations in CSV format URL: GET https://console.workbrew.com/workspaces/{workspace_name}/brew_configurations.csv