Documentation ¶
Index ¶
- Constants
- func DiffSuppressNullableBool(k, o, n string, d *schema.ResourceData) bool
- func DiffSuppressNullableBoolFalseAsNull(k, o, n string, d *schema.ResourceData) bool
- func ValidateTypeStringNullableBool(v interface{}, k string) (ws []string, es []error)
- func ValidateTypeStringNullableFloat(v interface{}, k string) (ws []string, es []error)
- func ValidateTypeStringNullableInt(v interface{}, k string) (ws []string, es []error)
- func ValidateTypeStringNullableIntAtLeast(min int) schema.SchemaValidateFunc
- func ValidateTypeStringNullableIntBetween(min int, max int) schema.SchemaValidateFunc
- type Bool
- type Float
- type Int
Constants ¶
const (
TypeNullableBool = schema.TypeString
)
const (
TypeNullableFloat = schema.TypeString
)
const (
TypeNullableInt = schema.TypeString
)
Variables ¶
This section is empty.
Functions ¶
func DiffSuppressNullableBool ¶
func DiffSuppressNullableBool(k, o, n string, d *schema.ResourceData) bool
func DiffSuppressNullableBoolFalseAsNull ¶
func DiffSuppressNullableBoolFalseAsNull(k, o, n string, d *schema.ResourceData) bool
DiffSuppressNullableBoolFalseAsNull allows false to be treated equivalently to null. This can be used to allow a practitioner to set false when the API requires a null value, as a convenience. This is typically not what you want: it is indended for cases where a parameter is optional in some cases and must be set in others.
func ValidateTypeStringNullableBool ¶
ValidateTypeStringNullableBool provides custom error messaging for TypeString booleans Some arguments require a boolean value or unspecified, empty field.
func ValidateTypeStringNullableFloat ¶
ValidateTypeStringNullableFloat provides custom error messaging for TypeString floats Some arguments require an float value or unspecified, empty field.
func ValidateTypeStringNullableInt ¶
ValidateTypeStringNullableInt provides custom error messaging for TypeString ints Some arguments require an int value or unspecified, empty field.
func ValidateTypeStringNullableIntAtLeast ¶
func ValidateTypeStringNullableIntAtLeast(min int) schema.SchemaValidateFunc
ValidateTypeStringNullableIntAtLeast provides custom error messaging for TypeString ints Some arguments require an int value or unspecified, empty field.
func ValidateTypeStringNullableIntBetween ¶
func ValidateTypeStringNullableIntBetween(min int, max int) schema.SchemaValidateFunc
ValidateTypeStringNullableIntBetween provides custom error messaging for TypeString ints Some arguments require an int value or unspecified, empty field.