Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader interface { // GetString retrieves a string from the underlying data. // // If the value does not exist, or is not a string, returns an empty string. GetString(key string) string // GetStringPtr retrieves a string pointer from the underlying data. // // If the value does not exist, or is not a string, returns nil. GetStringPtr(key string) *string // GetInt retrieves an integer from the underlying data. // // If the value does not exist, or is not an int, returns 0. GetInt(key string) int // GetInt retrieves an integer from the underlying data, or a default value if not present. // // If the value does not exist, or is not an int, returns defaultValue. GetIntOr(key string, defaultValue int) int // GetIntPtr retrieves an integer pointer from the underlying data. // // If the value does not exist, or is not an int, returns nil. GetIntPtr(key string) *int }
Reader provides an interface for reading from a Terraform value map.
Together, Reader and Writer provider a consistent interface.
type Writer ¶
type Writer interface { // SetString creates or updates a string in the underlying data. SetString(key string, value string) // SetStringPtr creates or updates a string pointer in the underlying data. SetStringPtr(key string, value *string) // SetInt creates or updates an integer in the underlying data. SetInt(key string, value int) // SetIntPtr creates or updates an integer pointer in the underlying data. SetIntPtr(key string, value *int) }
Writer provides an interface for writing to a Terraform value map.
ToSether, Reader and Writer provider a consistent interface.
Click to show internal directories.
Click to hide internal directories.