Store and export the valid Priority values

This will be useful later on for validation purposes in the Terraform
provider plugin.
This commit is contained in:
Sighery 2020-05-10 18:16:19 +02:00
parent 557201c48a
commit dfc29cba51

View file

@ -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"`