Documentation
¶
Index ¶
- func NewRoutingCoverageCommand(d *shared.Deps) *ffcli.Command
- func ReplaceRoutingCoverageWithPreparedFileWith(ctx context.Context, d *shared.Deps, client *asc.Client, ...) (*asc.RoutingAppCoverageResponse, error)
- func RevalidatePreparedRoutingCoverageFile(d *shared.Deps, file PreparedRoutingCoverageFile) error
- func UploadPreparedRoutingCoverageFileWith(ctx context.Context, d *shared.Deps, client *asc.Client, versionID string, ...) (*asc.RoutingAppCoverageResponse, error)
- type PreparedRoutingCoverageFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRoutingCoverageCommand ¶
NewRoutingCoverageCommand returns the routing coverage command group, built on d.
func ReplaceRoutingCoverageWithPreparedFileWith ¶
func ReplaceRoutingCoverageWithPreparedFileWith(ctx context.Context, d *shared.Deps, client *asc.Client, versionID, currentCoverageID string, file PreparedRoutingCoverageFile) (*asc.RoutingAppCoverageResponse, error)
ReplaceRoutingCoverageWithPreparedFileWith revalidates the upload source before deleting the current routing coverage, then creates, uploads, and commits its replacement from the same open source handle, on d. 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(d *shared.Deps, file PreparedRoutingCoverageFile) error
RevalidatePreparedRoutingCoverageFile verifies that the prepared source has not changed since it was initially validated.
func UploadPreparedRoutingCoverageFileWith ¶
func UploadPreparedRoutingCoverageFileWith(ctx context.Context, d *shared.Deps, client *asc.Client, versionID string, file PreparedRoutingCoverageFile) (*asc.RoutingAppCoverageResponse, error)
UploadPreparedRoutingCoverageFileWith creates, uploads, and commits routing coverage on d. 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(d *shared.Deps, path string) (PreparedRoutingCoverageFile, error)
PrepareRoutingCoverageFile validates and fingerprints a routing coverage file, resolving a relative path against d's working directory.