Documentation
¶
Index ¶
- func BuildReadinessReport(ctx context.Context, opts ReadinessOptions) (validation.Report, error)
- func BuildSubscriptionsReport(ctx context.Context, opts SubscriptionsOptions) (validation.SubscriptionsReport, error)
- func SetClientFactory(fn func() (*asc.Client, error)) func()
- func SetDeepValidationTestHooks(loader func(context.Context, string) (*webcore.AuthSession, bool, error), ...) func()
- func SetFetchAppBuildCountFunc(fn func(context.Context, *asc.Client, string) (int, bool, string, error)) func()
- func SetFetchAvailableTerritoriesFunc(fn func(context.Context, *asc.Client, string) (string, int, error)) func()
- func SetFetchIAPsFunc(fn func(context.Context, *asc.Client, string) ([]validation.IAP, error)) func()
- func SetFetchPricingTerritoriesFunc(fn func(context.Context, *asc.Client) ([]string, error)) func()
- func SetFetchScreenshotSetsFunc(fn func(context.Context, *asc.Client, ...) ([]validation.ScreenshotSet, error)) func()
- func SetFetchSubscriptionsFunc(...) func()
- func ValidateCommand() *ffcli.Command
- func ValidateIAPCommand() *ffcli.Command
- func ValidateSubscriptionsCommand() *ffcli.Command
- func ValidateTestFlightCommand() *ffcli.Command
- type DeepValidationWebClient
- type ReadinessOptions
- type SubscriptionsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildReadinessReport ¶
func BuildReadinessReport(ctx context.Context, opts ReadinessOptions) (validation.Report, error)
BuildReadinessReport fetches live App Store Connect data and returns a structured readiness report without printing output.
func BuildSubscriptionsReport ¶ added in v1.260716.0
func BuildSubscriptionsReport(ctx context.Context, opts SubscriptionsOptions) (validation.SubscriptionsReport, error)
BuildSubscriptionsReport fetches live subscription state and returns the same structured report emitted by `asc validate subscriptions` without printing it.
func SetClientFactory ¶
SetClientFactory replaces the ASC client factory for tests. It returns a restore function to reset the previous handler.
func SetDeepValidationTestHooks ¶ added in v1.260831.0
func SetDeepValidationTestHooks( loader func(context.Context, string) (*webcore.AuthSession, bool, error), client DeepValidationWebClient, ) func()
SetDeepValidationTestHooks replaces cached-session loading and the web client for command-level tests. It returns a restore function.
func SetFetchAppBuildCountFunc ¶ added in v1.260325.0
func SetFetchAppBuildCountFunc(fn func(context.Context, *asc.Client, string) (int, bool, string, error)) func()
SetFetchAppBuildCountFunc replaces the app build-count fetcher for tests. The hook models one outbound probe and receives a fresh request context. It returns a restore function to reset the previous handler.
func SetFetchAvailableTerritoriesFunc ¶
func SetFetchAvailableTerritoriesFunc(fn func(context.Context, *asc.Client, string) (string, int, error)) func()
SetFetchAvailableTerritoriesFunc replaces the availability fetcher for tests. The legacy hook models one outbound probe and receives a fresh request context. It returns a restore function to reset the previous handler.
func SetFetchIAPsFunc ¶
func SetFetchIAPsFunc(fn func(context.Context, *asc.Client, string) ([]validation.IAP, error)) func()
SetFetchIAPsFunc replaces the IAP fetcher for tests. It returns a restore function to reset the previous handler.
func SetFetchPricingTerritoriesFunc ¶ added in v1.260716.0
SetFetchPricingTerritoriesFunc replaces the pricing-territory fetcher for tests. It returns a restore function to reset the previous handler.
func SetFetchScreenshotSetsFunc ¶
func SetFetchScreenshotSetsFunc(fn func(context.Context, *asc.Client, []asc.Resource[asc.AppStoreVersionLocalizationAttributes]) ([]validation.ScreenshotSet, error)) func()
SetFetchScreenshotSetsFunc replaces the screenshot-set fetcher for tests. It returns a restore function to reset the previous handler.
func SetFetchSubscriptionsFunc ¶
func SetFetchSubscriptionsFunc(fn func(context.Context, *asc.Client, string) ([]validation.Subscription, error)) func()
SetFetchSubscriptionsFunc replaces the subscription fetcher for tests. It returns a restore function to reset the previous handler.
func ValidateCommand ¶
ValidateCommand returns the asc validate command.
func ValidateIAPCommand ¶
ValidateIAPCommand returns the asc validate iap subcommand.
func ValidateSubscriptionsCommand ¶
ValidateSubscriptionsCommand returns the asc validate subscriptions subcommand.
func ValidateTestFlightCommand ¶
ValidateTestFlightCommand returns the asc validate testflight subcommand.
Types ¶
type DeepValidationWebClient ¶ added in v1.260831.0
type DeepValidationWebClient interface {
GetAppDataUsagesPublishState(context.Context, string) (*webcore.AppDataUsagesPublishState, error)
ListReviewSubscriptions(context.Context, string) ([]webcore.ReviewSubscription, error)
GetAgreementsStatus(context.Context) (*asc.WebAgreementsStatusResult, error)
}
DeepValidationWebClient exposes the read-only deep validation calls to command-level tests.
type ReadinessOptions ¶
type ReadinessOptions struct {
AppID string
Version string
VersionID string
Platform string
Strict bool
Deep bool
CheckURLs bool
Build *validation.Build
}
ReadinessOptions defines inputs for App Store version readiness validation.
type SubscriptionsOptions ¶ added in v1.260716.0
SubscriptionsOptions configures a non-printing subscription readiness report.