Documentation
¶
Index ¶
- func AssetsPreviewsDeleteCommand() *ffcli.Command
- func AssetsPreviewsDownloadCommand() *ffcli.Command
- func AssetsPreviewsListCommand() *ffcli.Command
- func AssetsPreviewsSetPosterFrameCommand() *ffcli.Command
- func AssetsPreviewsUploadCommand() *ffcli.Command
- func AssetsScreenshotsApplyCommand() *ffcli.Command
- func AssetsScreenshotsDeleteCommand() *ffcli.Command
- func AssetsScreenshotsDownloadCommand() *ffcli.Command
- func AssetsScreenshotsListCommand() *ffcli.Command
- func AssetsScreenshotsPlanCommand() *ffcli.Command
- func AssetsScreenshotsSizesCommand() *ffcli.Command
- func AssetsScreenshotsUploadCommand() *ffcli.Command
- func AssetsScreenshotsValidateCommand() *ffcli.Command
- func CollectAssetFiles(path string) ([]string, error)
- func ContextWithAssetUploadTimeout(ctx context.Context) (context.Context, context.CancelFunc)
- func ExecuteScreenshotSetUpload[T any](ctx context.Context, opts ScreenshotSetUploadOptions[T]) (T, error)
- func GetOrderedAppScreenshotIDs(ctx context.Context, client *asc.Client, setID string) ([]string, error)
- func NormalizePreviewType(input string) (string, error)
- func NormalizeScreenshotDisplayType(input string) (string, error)
- func SetOrderedAppScreenshots(ctx context.Context, client *asc.Client, setID string, orderedIDs []string) error
- func UploadPreviewAsset(ctx context.Context, client *asc.Client, setID, filePath string) (asc.AssetUploadResultItem, error)
- func UploadScreenshotAsset(ctx context.Context, client *asc.Client, setID, filePath string) (asc.AssetUploadResultItem, error)
- func UploadScreenshotsToSet(ctx context.Context, client *asc.Client, setID string, files []string, ...) ([]asc.AssetUploadResultItem, error)
- func ValidateScreenshotDimensions(files []string, displayType string) error
- type ScreenshotSetAccess
- type ScreenshotSetCreateFunc
- type ScreenshotSetListFunc
- type ScreenshotSetUploadOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssetsPreviewsDeleteCommand ¶
AssetsPreviewsDeleteCommand returns the preview delete subcommand.
func AssetsPreviewsDownloadCommand ¶
AssetsPreviewsDownloadCommand returns the previews download subcommand.
func AssetsPreviewsListCommand ¶
AssetsPreviewsListCommand returns the previews list subcommand.
func AssetsPreviewsSetPosterFrameCommand ¶ added in v1.260325.0
AssetsPreviewsSetPosterFrameCommand returns the set-poster-frame subcommand.
func AssetsPreviewsUploadCommand ¶
AssetsPreviewsUploadCommand returns the previews upload subcommand.
func AssetsScreenshotsApplyCommand ¶ added in v1.260404.0
AssetsScreenshotsApplyCommand returns the screenshots apply subcommand.
func AssetsScreenshotsDeleteCommand ¶
AssetsScreenshotsDeleteCommand returns the screenshot delete subcommand.
func AssetsScreenshotsDownloadCommand ¶
AssetsScreenshotsDownloadCommand returns the screenshots download subcommand.
func AssetsScreenshotsListCommand ¶
AssetsScreenshotsListCommand returns the screenshots list subcommand.
func AssetsScreenshotsPlanCommand ¶ added in v1.260404.0
AssetsScreenshotsPlanCommand returns the screenshots plan subcommand.
func AssetsScreenshotsSizesCommand ¶
AssetsScreenshotsSizesCommand returns the screenshots sizes subcommand.
func AssetsScreenshotsUploadCommand ¶
AssetsScreenshotsUploadCommand returns the screenshots upload subcommand.
func AssetsScreenshotsValidateCommand ¶ added in v1.260407.0
AssetsScreenshotsValidateCommand returns the screenshots validate subcommand.
func CollectAssetFiles ¶
CollectAssetFiles validates and collects files from a path.
func ContextWithAssetUploadTimeout ¶
ContextWithAssetUploadTimeout returns a context with the asset upload timeout.
func ExecuteScreenshotSetUpload ¶ added in v1.260404.0
func ExecuteScreenshotSetUpload[T any](ctx context.Context, opts ScreenshotSetUploadOptions[T]) (T, error)
ExecuteScreenshotSetUpload validates flags/files and runs the shared screenshot upload/sync flow for a localization-backed screenshot set.
func GetOrderedAppScreenshotIDs ¶
func GetOrderedAppScreenshotIDs(ctx context.Context, client *asc.Client, setID string) ([]string, error)
GetOrderedAppScreenshotIDs returns screenshot IDs in the current remote order.
func NormalizePreviewType ¶
NormalizePreviewType normalizes and validates a preview type.
func NormalizeScreenshotDisplayType ¶
NormalizeScreenshotDisplayType normalizes and validates a screenshot display type.
func SetOrderedAppScreenshots ¶
func SetOrderedAppScreenshots(ctx context.Context, client *asc.Client, setID string, orderedIDs []string) error
SetOrderedAppScreenshots replaces the screenshot relationships for a set in the provided order.
func UploadPreviewAsset ¶
func UploadPreviewAsset(ctx context.Context, client *asc.Client, setID, filePath string) (asc.AssetUploadResultItem, error)
UploadPreviewAsset uploads a preview file to a set.
func UploadScreenshotAsset ¶
func UploadScreenshotAsset(ctx context.Context, client *asc.Client, setID, filePath string) (asc.AssetUploadResultItem, error)
UploadScreenshotAsset uploads a screenshot file to a set.
func UploadScreenshotsToSet ¶
func UploadScreenshotsToSet(ctx context.Context, client *asc.Client, setID string, files []string, preserveExistingOrder bool) ([]asc.AssetUploadResultItem, error)
UploadScreenshotsToSet uploads screenshots in the provided file order and then applies that order to the remote screenshot set.
func ValidateScreenshotDimensions ¶
ValidateScreenshotDimensions validates screenshot dimensions for all files.
Types ¶
type ScreenshotSetAccess ¶ added in v1.260404.0
type ScreenshotSetAccess struct {
List ScreenshotSetListFunc
Create ScreenshotSetCreateFunc
}
ScreenshotSetAccess contains the list/create hooks for a screenshot-set owner.
type ScreenshotSetCreateFunc ¶ added in v1.260404.0
type ScreenshotSetCreateFunc func(context.Context, *asc.Client, string, string) (*asc.AppScreenshotSetResponse, error)
ScreenshotSetCreateFunc creates a screenshot set for a localization kind.
type ScreenshotSetListFunc ¶ added in v1.260404.0
type ScreenshotSetListFunc func(context.Context, *asc.Client, string) (*asc.AppScreenshotSetsResponse, error)
ScreenshotSetListFunc fetches screenshot sets for a localization kind.
type ScreenshotSetUploadOptions ¶ added in v1.260404.0
type ScreenshotSetUploadOptions[T any] struct { LocalizationID string Path string DeviceType string Replace bool InvalidDeviceTypeIsUsage bool ClientFactory func() (*asc.Client, error) RequestContext func(context.Context) (context.Context, context.CancelFunc) UploadContext func(context.Context) (context.Context, context.CancelFunc) Access ScreenshotSetAccess BuildResult func(string, asc.Resource[asc.AppScreenshotSetAttributes], []asc.AssetUploadResultItem) T }
ScreenshotSetUploadOptions configures the shared screenshot upload path for custom product pages and PPO treatment localizations.