From dfc29cba513e180686394e2b74ac4a1d531265fd Mon Sep 17 00:00:00 2001 From: Sighery Date: Sun, 10 May 2020 18:16:19 +0200 Subject: [PATCH] Store and export the valid Priority values This will be useful later on for validation purposes in the Terraform provider plugin. --- records.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/records.go b/records.go index 4cc162b..2f9f426 100644 --- a/records.go +++ b/records.go @@ -5,6 +5,9 @@ import "encoding/json" // ValidTTL is an array containing all the valid TTL values var ValidTTL = []int{60, 300, 900, 3600, 10800, 21600, 86400} +// ValidPriority is an array containing all the valid Priority values +var ValidPriority = []int{0, 1, 5, 10, 20, 30, 40, 50, 60} + // Record struct contains data returned by `list-records` type Record struct { ID int `json:"id"`