Documentation ¶
Index ¶
- func BoolRef(value any) *bool
- func DecodeStruct(input interface{}, result interface{}) error
- func FromLocalizedString(value platform.LocalizedString) customtypes.LocalizedStringValue
- func FromOptionalBool(value *bool) basetypes.BoolValue
- func FromOptionalInt(value *int) basetypes.Int64Value
- func FromOptionalLocalizedString(value *platform.LocalizedString) customtypes.LocalizedStringValue
- func FromOptionalString(value *string) basetypes.StringValue
- func GetRef[T any](value T) *T
- func HCLTemplate(data string, params map[string]any) string
- func IntRef(value any) *int
- func IsResourceNotFoundError(err error) bool
- func OptionalInt(value types.Int64) *int
- func OptionalString(value types.String) *string
- func ProcessRemoteError(err error) *resource.RetryError
- func Ref[T comparable](value T) *T
- func StringRef(value any) *string
- type Decoder
- type MutexKV
- type ProviderData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeStruct ¶ added in v1.15.0
func DecodeStruct(input interface{}, result interface{}) error
func FromLocalizedString ¶ added in v1.8.0
func FromLocalizedString(value platform.LocalizedString) customtypes.LocalizedStringValue
func FromOptionalBool ¶
func FromOptionalInt ¶
func FromOptionalInt(value *int) basetypes.Int64Value
func FromOptionalLocalizedString ¶ added in v1.6.2
func FromOptionalLocalizedString(value *platform.LocalizedString) customtypes.LocalizedStringValue
func FromOptionalString ¶
func FromOptionalString(value *string) basetypes.StringValue
func GetRef ¶ added in v1.17.0
func GetRef[T any](value T) *T
GetRef gets the reference of value with generic type
func IsResourceNotFoundError ¶
IsResourceNotFoundError returns true if commercetools returned a 404 error
func OptionalInt ¶
func OptionalString ¶
func ProcessRemoteError ¶
func ProcessRemoteError(err error) *resource.RetryError
func Ref ¶ added in v1.15.0
func Ref[T comparable](value T) *T
Types ¶
type MutexKV ¶
type MutexKV struct {
// contains filtered or unexported fields
}
Copied from https://www.terraform.io/plugin/sdkv2/guides/v2-upgrade-guide#removal-of-helper-mutexkv-package
MutexKV is a simple key/value store for arbitrary mutexes. It can be used to serialize changes across arbitrary collaborators that share knowledge of the keys they must serialize on.
The initial use case is to let aws_security_group_rule resources serialize their access to individual security groups based on SG ID.
type ProviderData ¶
type ProviderData struct { Client *platform.ByProjectKeyRequestBuilder Mutex *MutexKV }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.