nullable

package
v0.0.0-...-c441d59 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TypeNullableBool = schema.TypeString
)
View Source
const (
	TypeNullableInt = schema.TypeString
)

Variables

This section is empty.

Functions

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.

func ValidateTypeStringNullableBool

func ValidateTypeStringNullableBool(v interface{}, k string) (ws []string, es []error)

ValidateTypeStringNullableBool provides custom error messaging for TypeString booleans Some arguments require a boolean value or unspecified, empty field.

func ValidateTypeStringNullableInt

func ValidateTypeStringNullableInt(v interface{}, k string) (ws []string, es []error)

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.

Types

type Bool

type Bool string

func NewBool

func NewBool(v bool) Bool

func (Bool) IsNull

func (b Bool) IsNull() bool

func (Bool) Value

func (b Bool) Value() (bool, bool, error)

type Int

type Int string

func (Int) IsNull

func (i Int) IsNull() bool

func (Int) Value

func (i Int) Value() (int64, bool, error)

Jump to

Keyboard shortcuts

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