Documentation ¶
Index ¶
Constants ¶
View Source
const ( ValTrue = "yes" ValFalse = "no" ValNull = "" )
Variables ¶
This section is empty.
Functions ¶
func GetTristateBool ¶
func GetTristateBool(d *schema.ResourceData, name string) *bool
GetTristateBool reads the bool value from the tristate bool value of the resource's definition using the attribute vlue.
func IsNull ¶ added in v0.6.2
func IsNull(d *schema.ResourceData, name string) bool
IsNull checks if the attribute's value is null.
func NewOptionalTristateBool ¶
NewOptionalTristateBool initialises the tristate bool value. See discussion: https://github.com/hashicorp/terraform-plugin-sdk/issues/817
func SetTristateBool ¶
func SetTristateBool(d *schema.ResourceData, name string, v *bool) error
SetTristateBool sets the tristate bool value. The Adapter to the schema.ResourceData{}.Set method to convert pointer to bool to the string equivalent of bool (yes/no) to maintain the tristate bool.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.