Documentation
¶
Index ¶
- func ReplaceRoutingCoverageWithPreparedFile(ctx context.Context, client *asc.Client, versionID, currentCoverageID string, ...) (*asc.RoutingAppCoverageResponse, error)
- func RevalidatePreparedRoutingCoverageFile(file PreparedRoutingCoverageFile) error
- func RoutingCoverageCommand() *ffcli.Command
- func RoutingCoverageCreateCommand() *ffcli.Command
- func RoutingCoverageDeleteCommand() *ffcli.Command
- func RoutingCoverageGetCommand() *ffcli.Command
- func RoutingCoverageInfoCommand() *ffcli.Command
- func UploadPreparedRoutingCoverageFile(ctx context.Context, client *asc.Client, versionID string, ...) (*asc.RoutingAppCoverageResponse, error)
- type PreparedRoutingCoverageFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceRoutingCoverageWithPreparedFile ¶ added in v1.260810.0
func ReplaceRoutingCoverageWithPreparedFile(ctx context.Context, client *asc.Client, versionID, currentCoverageID string, file PreparedRoutingCoverageFile) (*asc.RoutingAppCoverageResponse, error)
ReplaceRoutingCoverageWithPreparedFile revalidates the upload source before deleting the current routing coverage, then creates, uploads, and commits its replacement from the same open source handle. A post-create error returns the replacement response alongside the error when cleanup cannot remove it.
func RevalidatePreparedRoutingCoverageFile ¶ added in v1.260810.0
func RevalidatePreparedRoutingCoverageFile(file PreparedRoutingCoverageFile) error
RevalidatePreparedRoutingCoverageFile verifies that the prepared source has not changed since it was initially validated.
func RoutingCoverageCommand ¶
RoutingCoverageCommand returns the routing coverage command group.
func RoutingCoverageCreateCommand ¶
RoutingCoverageCreateCommand returns the routing coverage create subcommand.
func RoutingCoverageDeleteCommand ¶
RoutingCoverageDeleteCommand returns the routing coverage delete subcommand.
func RoutingCoverageGetCommand ¶
RoutingCoverageGetCommand returns the routing coverage get subcommand.
func RoutingCoverageInfoCommand ¶
RoutingCoverageInfoCommand returns the routing coverage info subcommand.
func UploadPreparedRoutingCoverageFile ¶ added in v1.260810.0
func UploadPreparedRoutingCoverageFile(ctx context.Context, client *asc.Client, versionID string, file PreparedRoutingCoverageFile) (*asc.RoutingAppCoverageResponse, error)
UploadPreparedRoutingCoverageFile creates, uploads, and commits routing coverage. A post-create error returns the reservation response alongside the error when cleanup cannot remove it, so callers can report the retained reservation ID.
Types ¶
type PreparedRoutingCoverageFile ¶ added in v1.260810.0
type PreparedRoutingCoverageFile struct {
Path string
FileName string
FileSize int64
Checksum string
// contains filtered or unexported fields
}
PreparedRoutingCoverageFile is a validated routing coverage upload source.
func PrepareRoutingCoverageFile ¶ added in v1.260810.0
func PrepareRoutingCoverageFile(path string) (PreparedRoutingCoverageFile, error)
PrepareRoutingCoverageFile validates and fingerprints a routing coverage file.