aboutsummaryrefslogtreecommitdiffstats
path: root/cover.go
diff options
context:
space:
mode:
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"`