Documentation
¶
Index ¶
- func BoolRef(value any) *bool
- 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 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 StringRef(value any) *string
- type MutexKV
- type ProviderData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 IsResourceNotFoundError ¶
utils.IsResourceNotFoundError returns true if commercetools returned a 404 error
func OptionalInt ¶
func OptionalString ¶
func ProcessRemoteError ¶
func ProcessRemoteError(err error) *resource.RetryError
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 }
Click to show internal directories.
Click to hide internal directories.