web

package
v1.261201.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 50 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableControllingTTYForTesting added in v1.260807.0

func DisableControllingTTYForTesting() func()

DisableControllingTTYForTesting prevents tests from opening the process's controlling terminal. The returned function restores the previous behavior.

func NewVersionRatingResetCommand

func NewVersionRatingResetCommand(d *shared.Deps) *ffcli.Command

NewVersionRatingResetCommand returns the version overview-rating reset command group. It lives in the web command package so it can share the existing web-session authentication and provider-selection implementation while remaining mounted at "asc versions rating-reset".

func NewWebCommand

func NewWebCommand(d *shared.Deps) *ffcli.Command

NewWebCommand returns the web command group built on d.

func RunAppsCreate added in v1.260328.0

func RunAppsCreate(ctx context.Context, d *shared.Deps, opts AppsCreateRunOptions) error

RunAppsCreate executes the canonical web-backed app-create flow.

func SetControllingTTYForTesting

func SetControllingTTYForTesting(fn func() (*os.File, error)) func()

SetControllingTTYForTesting replaces how the process's controlling terminal is opened. The returned function restores the previous behavior.

func SetDeleteDeveloperAppGroup added in v1.260904.0

func SetDeleteDeveloperAppGroup(fn func(context.Context, *webcore.Client, webcore.DeveloperAppGroupDeleteRequest) (*asc.WebAppGroupDeleteResult, error)) func()

func SetListDeveloperBundleIDs added in v1.260907.0

func SetListDeveloperBundleIDs(fn func(context.Context, *webcore.Client) (*webcore.DeveloperBundleIDsListResult, error)) func()

func SetLookupWebAuthKey

func SetLookupWebAuthKey(fn func(context.Context, *webcore.Client, string) (*webcore.APIKeyRoleLookup, error)) func()

func SetNewWebAuthClient

func SetNewWebAuthClient(fn func(*webcore.AuthSession) *webcore.Client) func()

func SetPersistWebSession added in v1.260907.0

func SetPersistWebSession(fn func(*webcore.AuthSession) error) func()

func SetResolveWebAuthCredentials

func SetResolveWebAuthCredentials(fn func(string) (shared.ResolvedAuthCredentials, error)) func()

func SetResolveWebSession

func SetResolveWebSession(fn any) func()

func SetSetDeveloperAppGroups added in v1.260904.0

func SetSetDeveloperAppGroups(fn func(context.Context, *webcore.Client, webcore.DeveloperAppGroupSetRequest) (*asc.WebAppGroupSetResult, error)) func()

func SetUnassignDeveloperAppGroup added in v1.260904.0

func SetUnassignDeveloperAppGroup(fn func(context.Context, *webcore.Client, webcore.DeveloperAppGroupUnassignRequest) (*asc.WebAppGroupUnassignResult, error)) func()

func SetWebLogin

func SetWebLogin(fn func(context.Context, webcore.LoginCredentials) (*webcore.AuthSession, error)) func()

Types

type AppsCreateRunOptions added in v1.260328.0

type AppsCreateRunOptions struct {
	Name          string
	BundleID      string
	SKU           string
	PrimaryLocale string
	Platform      string
	Version       string
	CompanyName   string

	AppleID              string
	TwoFactorCodeCommand string

	AutoRename bool
	Output     string
	Pretty     bool

	// IfExists selects how an Apple 409 for an app that already exists is
	// handled. Empty means fail, the historical behavior.
	IfExists shared.IfExistsMode

	Access string
	Users  []string
}

AppsCreateRunOptions configures the canonical web-backed app-create flow.

type CIEnvVarsDeleteResult

type CIEnvVarsDeleteResult struct {
	WorkflowID   string `json:"workflow_id"`
	WorkflowName string `json:"workflow_name"`
	Name         string `json:"name"`
}

CIEnvVarsDeleteResult is the output type for the env-vars delete command.

type CIEnvVarsListResult

type CIEnvVarsListResult struct {
	WorkflowID string                          `json:"workflow_id"`
	Variables  []webcore.CIEnvironmentVariable `json:"variables"`
}

CIEnvVarsListResult is the output type for the env-vars list command.

type CIEnvVarsSetResult

type CIEnvVarsSetResult struct {
	WorkflowID   string `json:"workflow_id"`
	WorkflowName string `json:"workflow_name"`
	Name         string `json:"name"`
	Type         string `json:"type"`
	Action       string `json:"action"`
}

CIEnvVarsSetResult is the output type for the env-vars set command.

type CISharedEnvVarsDeleteResult

type CISharedEnvVarsDeleteResult struct {
	ProductID string `json:"product_id"`
	Name      string `json:"name"`
}

CISharedEnvVarsDeleteResult is the output type for the env-vars shared delete command.

type CISharedEnvVarsListResult

type CISharedEnvVarsListResult struct {
	ProductID string                                 `json:"product_id"`
	Variables []webcore.CIProductEnvironmentVariable `json:"variables"`
}

CISharedEnvVarsListResult is the output type for the env-vars shared list command.

type CISharedEnvVarsSetResult

type CISharedEnvVarsSetResult struct {
	ProductID string `json:"product_id"`
	Name      string `json:"name"`
	Type      string `json:"type"`
	Locked    bool   `json:"locked"`
	Action    string `json:"action"`
}

CISharedEnvVarsSetResult is the output type for the env-vars shared set command.

type CIUsageAlertMonth

type CIUsageAlertMonth struct {
	Year    int `json:"year"`
	Month   int `json:"month"`
	Minutes int `json:"minutes"`
	Builds  int `json:"builds"`
}

CIUsageAlertMonth is one monthly usage datapoint.

type CIUsageAlertNotification

type CIUsageAlertNotification struct {
	Channel    string `json:"channel"`
	Triggered  bool   `json:"triggered"`
	Delivered  bool   `json:"delivered"`
	StatusCode int    `json:"status_code,omitempty"`
	Error      string `json:"error,omitempty"`
}

CIUsageAlertNotification captures delivery status for outbound notifications.

type CIUsageAlertPlan

type CIUsageAlertPlan struct {
	Name          string `json:"name"`
	Used          int    `json:"used"`
	Available     int    `json:"available"`
	Total         int    `json:"total"`
	UsedPercent   int    `json:"used_percent"`
	ResetDate     string `json:"reset_date,omitempty"`
	ResetDateTime string `json:"reset_date_time,omitempty"`
	ManageURL     string `json:"manage_url,omitempty"`
}

CIUsageAlertPlan captures plan quota and calculated usage percentage.

type CIUsageAlertResult

type CIUsageAlertResult struct {
	TeamID        string                     `json:"team_id"`
	EvaluatedAt   string                     `json:"evaluated_at"`
	Severity      usageAlertSeverity         `json:"severity"`
	Message       string                     `json:"message"`
	FailOn        usageAlertFailOn           `json:"fail_on"`
	NotifyOn      usageAlertNotifyOn         `json:"notify_on"`
	Thresholds    CIUsageAlertThresholds     `json:"thresholds"`
	Plan          CIUsageAlertPlan           `json:"plan"`
	Trend         *CIUsageAlertTrend         `json:"trend,omitempty"`
	Notifications []CIUsageAlertNotification `json:"notifications,omitempty"`
}

CIUsageAlertResult is the output payload for usage alert evaluation.

type CIUsageAlertThresholds

type CIUsageAlertThresholds struct {
	WarnAt     int `json:"warn_at"`
	CriticalAt int `json:"critical_at"`
}

CIUsageAlertThresholds captures warning and critical threshold percentages.

type CIUsageAlertTrend

type CIUsageAlertTrend struct {
	RequestedMonths   int                 `json:"requested_months"`
	Available         bool                `json:"available"`
	UnavailableReason string              `json:"unavailable_reason,omitempty"`
	AverageMinutes    int                 `json:"average_minutes,omitempty"`
	PeakMinutes       int                 `json:"peak_minutes,omitempty"`
	Months            []CIUsageAlertMonth `json:"months,omitempty"`
}

CIUsageAlertTrend carries monthly usage context.

type CIWorkflowCreateResult

type CIWorkflowCreateResult struct {
	CIWorkflowDescribeResult
	Created bool `json:"created"`
}

CIWorkflowCreateResult is the output type for workflows create.

type CIWorkflowDescribeResult

type CIWorkflowDescribeResult struct {
	ProductID                   string          `json:"product_id"`
	WorkflowID                  string          `json:"workflow_id"`
	Name                        string          `json:"name"`
	Description                 string          `json:"description,omitempty"`
	Disabled                    bool            `json:"disabled"`
	Locked                      bool            `json:"locked"`
	XcodeVersion                json.RawMessage `json:"xcode_version,omitempty"`
	MacOSVersion                json.RawMessage `json:"macos_version,omitempty"`
	Clean                       json.RawMessage `json:"clean,omitempty"`
	ContainerFilePath           string          `json:"container_file_path,omitempty"`
	ProductEnvironmentVariables []string        `json:"product_environment_variables,omitempty"`
	StartConditions             json.RawMessage `json:"start_conditions,omitempty"`
	Actions                     json.RawMessage `json:"actions,omitempty"`
	PostActions                 json.RawMessage `json:"post_actions,omitempty"`
	Repo                        json.RawMessage `json:"repo,omitempty"`
}

CIWorkflowDescribeResult is the output type for workflows describe.

type CIWorkflowEditResult

type CIWorkflowEditResult struct {
	CIWorkflowDescribeResult
	Changed bool `json:"changed"`
}

CIWorkflowEditResult is the output type for workflows edit.

type CIWorkflowToggleResult

type CIWorkflowToggleResult struct {
	ProductID      string `json:"product_id"`
	WorkflowID     string `json:"workflow_id"`
	WorkflowName   string `json:"workflow_name"`
	Action         string `json:"action"`
	DisabledBefore bool   `json:"disabled_before"`
	DisabledAfter  bool   `json:"disabled_after"`
	Changed        bool   `json:"changed"`
}

CIWorkflowToggleResult is the output type for workflows enable/disable.

type CIWorkflowsResult

type CIWorkflowsResult struct {
	ProductID string                    `json:"product_id"`
	Start     string                    `json:"start"`
	End       string                    `json:"end"`
	Workflows []webcore.CIWorkflowUsage `json:"workflows"`
}

CIWorkflowsResult is the output type for the workflows command. It wraps the workflow usage data with product context for clean JSON output.

Source Files

Jump to

Keyboard shortcuts

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