From 557201c48afa6f457a3bc9c0d23118989a566dc9 Mon Sep 17 00:00:00 2001 From: Sighery Date: Sat, 9 May 2020 00:36:36 +0200 Subject: [PATCH] Store and export the valid TTL 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 97be2e4..4cc162b 100644 --- a/records.go +++ b/records.go @@ -2,6 +2,9 @@ package gonjalla import "encoding/json" +// ValidTTL is an array containing all the valid TTL values +var ValidTTL = []int{60, 300, 900, 3600, 10800, 21600, 86400} + // Record struct contains data returned by `list-records` type Record struct { ID int `json:"id"`