Documentation ¶
Index ¶
- func Bool(tfVal types.Bool) bool
- func HandleErr(res *ocmerrors.Error, err error) error
- func IsGreaterThanOrEqual(version1, version2 string) (bool, error)
- func IsStringAttributeEmpty(param types.String) bool
- func IsValidDomain(candidate string) bool
- func IsValidEmail(candidate string) bool
- func OptionalInt64(tfVal types.Int64) *int64
- func OptionalList(tfVal types.List) []string
- func OptionalMap(tfVal types.Map) map[string]string
- func OptionalString(tfVal types.String) *string
- func ShouldPatchBool(state, plan types.Bool) (value bool, ok bool)
- func ShouldPatchInt(state, plan types.Int64) (value int64, ok bool)
- func ShouldPatchMap(state, plan types.Map) (types.Map, bool)
- func ShouldPatchString(state, plan types.String) (value string, ok bool)
- func StringArrayToList(arr []string) types.List
- func StringListToArray(list types.List) ([]string, error)
- type AttributeValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsGreaterThanOrEqual ¶
func IsStringAttributeEmpty ¶
func IsValidDomain ¶
func IsValidEmail ¶
func OptionalInt64 ¶ added in v1.3.0
func OptionalList ¶ added in v1.3.0
func OptionalString ¶ added in v1.3.0
func ShouldPatchBool ¶
ShouldPatchBool changed checks if the change between the given state and plan requires sending a patch request to the server. If it does it return the value to add to the patch.
func ShouldPatchInt ¶
shouldPatchInt changed checks if the change between the given state and plan requires sending a patch request to the server. If it does it returns the value to add to the patch.
func ShouldPatchMap ¶
ShouldPatchMap changed checks if the change between the given state and plan requires sending a patch request to the server. If it does it return the value to add to the patch.
func ShouldPatchString ¶
shouldPatchString changed checks if the change between the given state and plan requires sending a patch request to the server. If it does it returns the value to add to the patch.
func StringArrayToList ¶
TF types converter functions
Types ¶
type AttributeValidator ¶
type AttributeValidator struct { Desc string MDDesc string Validator func(ctx context.Context, req tfsdk.ValidateAttributeRequest, resp *tfsdk.ValidateAttributeResponse) }
func (*AttributeValidator) Description ¶
func (a *AttributeValidator) Description(context.Context) string
func (*AttributeValidator) MarkdownDescription ¶
func (a *AttributeValidator) MarkdownDescription(context.Context) string
func (*AttributeValidator) Validate ¶
func (a *AttributeValidator) Validate(ctx context.Context, req tfsdk.ValidateAttributeRequest, resp *tfsdk.ValidateAttributeResponse)