Documentation
¶
Index ¶
- func AddConnectionSchema(providedSchema map[string]*schema.Schema)
- func ConvertSettingsKeyToTFFieldKey(settingKey string) string
- func DefaultIfNil[T any](value *T) T
- func Deref[T any](value *T) T
- func ExpandIndividuallyDefinedSettings(ctx context.Context, d *schema.ResourceData, ...) map[string]any
- func FlipMap[K comparable, V comparable](m map[K]V) map[V]K
- func FormatStrictDateTime(t time.Time) string
- func IsEmpty(v any) bool
- func Itol(value *int) *int64
- func JSONBytesEqual(a, b []byte) (bool, error)
- func Ltoi(value *int64) *int
- func MapRef[T any, M ~map[string]T](value M) *M
- func MergeSchemaMaps(maps ...map[string]*schema.Schema) map[string]*schema.Schema
- func NonNilSlice[T any](s []T) []T
- func SliceRef[T any, S ~[]T](value S) *S
- func StringToHash(s string) (*string, error)
- func TimeToStringValue(t time.Time) types.String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConnectionSchema ¶
Returns the common connection schema for all the Elasticsearch resources, which defines the fields which can be used to configure the API access
func ConvertSettingsKeyToTFFieldKey ¶ added in v0.5.0
func DefaultIfNil ¶ added in v0.11.16
func DefaultIfNil[T any](value *T) T
func Deref ¶ added in v0.11.8
func Deref[T any](value *T) T
Deref returns the value referenced by the given pointer. If the value is nil, a zero value is returned.
func ExpandIndividuallyDefinedSettings ¶ added in v0.5.0
func FlipMap ¶ added in v0.7.0
func FlipMap[K comparable, V comparable](m map[K]V) map[V]K
func FormatStrictDateTime ¶ added in v0.5.0
func JSONBytesEqual ¶
Compares the JSON in two byte slices
func MapRef ¶ added in v0.11.8
MapRef is similar to new(value), in that it takes the reference of the given value, however if the value is already nil then it returns nil rather than a pointer to nil.
func MergeSchemaMaps ¶
func NonNilSlice ¶ added in v0.11.16
func NonNilSlice[T any](s []T) []T
Returns an empty slice if s is a slice represented by nil (no backing array). Guarantees that json.Marshal and terraform parameters will not treat the empty slice as null.
func SliceRef ¶ added in v0.11.8
func SliceRef[T any, S ~[]T](value S) *S
SliceRef is similar to new(value), in that it takes the reference of the given value, however if the value is already nil then it returns nil rather than a pointer to nil.
func StringToHash ¶ added in v0.3.0
Types ¶
This section is empty.