helpers

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDeleted

func CheckDeleted(d *schema.ResourceData, err error, endpoint string) error

CheckDeleted checks the error to see if it's a 404 (Not Found) and, if so, sets the resource ID to the empty string instead of throwing an error.

func ConditionalAttributeBool

func ConditionalAttributeBool(buff *bytes.Buffer, name string, val *bool)

func ConditionalAttributeInt

func ConditionalAttributeInt(buff *bytes.Buffer, name string, val *int)

func ConditionalAttributeString

func ConditionalAttributeString(buff *bytes.Buffer, name string, val *string)

func GetNilBoolPointer

func GetNilBoolPointer(val interface{}) *bool

func GetNilBoolPointerFromData

func GetNilBoolPointerFromData(data interface{}, id string) *bool

func GetNilInt64Pointer

func GetNilInt64Pointer(val interface{}) *int64

func GetNilInt64PointerFromData

func GetNilInt64PointerFromData(data interface{}, id string) *int64

func GetNilIntPointer

func GetNilIntPointer(val interface{}) *int

func GetNilIntPointerFromData

func GetNilIntPointerFromData(data interface{}, id string) *int

func GetNilStringPointer

func GetNilStringPointer(val interface{}) *string

func GetNilStringPointerFromData

func GetNilStringPointerFromData(data interface{}, id string) *string

func StringsFromSchema

func StringsFromSchema(d *schema.ResourceData, id string) ([]string, error)

func ValidateBootType

func ValidateBootType(value string) error

func ValidateDedicatedCephACLFamily

func ValidateDedicatedCephACLFamily(value string) error

func ValidateDedicatedCephCrushTunables

func ValidateDedicatedCephCrushTunables(value string) error

func ValidateDedicatedCephStatus

func ValidateDedicatedCephStatus(value string) error

func ValidateFilesystem

func ValidateFilesystem(value string) error

func ValidateIp

func ValidateIp(value string) error

func ValidateIpBlock

func ValidateIpBlock(value string) error

func ValidateIpV4

func ValidateIpV4(value string) error

func ValidateIpV6

func ValidateIpV6(value string) error

func ValidateLanguageCode

func ValidateLanguageCode(value string) error

func ValidatePartitionRAIDMode

func ValidatePartitionRAIDMode(value string) error

func ValidatePartitionType

func ValidatePartitionType(value string) error

func ValidateRAIDMode

func ValidateRAIDMode(value string) error

func ValidateStringEnum

func ValidateStringEnum(value string, enum []string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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