types

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

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

func NewOptionalTristateBool(description string, forceNew bool) *schema.Schema

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL