Documentation ¶
Index ¶
- func Bool(b bool) *bool
- func CompareStructs(a, b interface{}) (equals bool, diff string, err error)
- func Int(i int) *int
- func Int32(i int32) *int32
- func Int64(i int64) *int64
- func RandomResourceID() string
- func RandomResourceLength(n int) string
- func RequireRegionSet(region string) error
- func String(s string) *string
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareStructs ¶
CompareStructs two structs and return the differences
func RandomResourceID ¶
func RandomResourceID() string
RandomResourceID generates a random string of 32 characters which emulates a real Elastic Cloud resource ID.
func RandomResourceLength ¶
RandomResourceLength generates a random string of n characters.
func RequireRegionSet ¶
RequireRegionSet takes in a string and returns an error when it's empty or when the contents are spaces.
Types ¶
Click to show internal directories.
Click to hide internal directories.