aboutsummaryrefslogtreecommitdiffstats
path: root/cover.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-05-07 13:09:58 -0400
committerSam Anthony <sam@samanthony.xyz>2026-05-07 13:09:58 -0400
commitace7694bad5752aa38fec3a13c071cf7b2bebfce (patch)
tree2f391107b6aa7bce7b0a028aff8f7c5b32839852 /cover.go
parentb57f03381e4bccba2963cebabe51a9cf32bd96dd (diff)
downloadlulu-ace7694bad5752aa38fec3a13c071cf7b2bebfce.zip
implement GET /validate-cover
Diffstat (limited to 'cover.go')
-rw-r--r--cover.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cover.go b/cover.go
index e5845a7..ba2bc2a 100644
--- a/cover.go
+++ b/cover.go
@@ -28,6 +28,14 @@ const (
CoverStatusError CoverValidationStatus = "ERROR" // file is invalid, list of errors is included in the response
)
+func (s CoverValidationStatus) IsFinal() bool {
+ switch s {
+ case CoverStatusNormalized, CoverStatusError:
+ return true
+ }
+ return false
+}
+
// coverDimensionsReq is the json body of a /cover-dimensions/ request.
type coverDimensionsReq struct {
PkgId PkgId `json:"pod_package_id"`