Documentation ¶
Overview ¶
hash.go This package contains shared / common hash functions
Index ¶
- func Create[sdkPayloadType any, sdkResponseType any](ctx context.Context, d *schema.ResourceData, meta interface{}, ...) diag.Diagnostics
- func Delete(ctx context.Context, d *schema.ResourceData, meta interface{}, ...) diag.Diagnostics
- func HandleResourceNotFoundError(err error, d *schema.ResourceData, cleanup bool) diag.Diagnostics
- func HashString(s string) string
- func Read[sdkResponseType any](ctx context.Context, d *schema.ResourceData, meta interface{}, ...) diag.Diagnostics
- func SerializeAndRedactJSON(resource interface{}, redactFields []string) (string, error)
- func SerializeAndRedactXML(resource interface{}, redactFields []string) (string, error)
- func Update[sdkPayloadType any, sdkResponseType any](ctx context.Context, d *schema.ResourceData, meta interface{}, ...) diag.Diagnostics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶ added in v0.1.6
func Create[sdkPayloadType any, sdkResponseType any]( ctx context.Context, d *schema.ResourceData, meta interface{}, construct payoadConstructorFunc[sdkPayloadType], serverOutcomeFunc sdkCreateUpdateFunc[sdkPayloadType, sdkResponseType], reader providerReadFunc, ) diag.Diagnostics
Create Update
func Delete ¶ added in v0.1.6
func Delete(ctx context.Context, d *schema.ResourceData, meta interface{}, serverOutcomeFunc sdkDeleteFunc) diag.Diagnostics
Delete
func HandleResourceNotFoundError ¶ added in v0.1.6
func HandleResourceNotFoundError(err error, d *schema.ResourceData, cleanup bool) diag.Diagnostics
HandleResourceNotFoundError is a helper function to handle 404 and 410 errors and remove the resource from Terraform state
func HashString ¶ added in v0.1.6
HashString calculates the SHA-256 hash of a string and returns it as a hexadecimal string.
func Read ¶ added in v0.1.6
func Read[sdkResponseType any]( ctx context.Context, d *schema.ResourceData, meta interface{}, removeDeleteResourcesFromState bool, serverOutcomeFunc sdkGetFunc[sdkResponseType], providerStateFunc providerStateFunc[sdkResponseType], ) diag.Diagnostics
Read
func SerializeAndRedactJSON ¶ added in v0.1.6
SerializeAndRedactJSON serializes a resource to JSON and redacts specified fields.
func SerializeAndRedactXML ¶ added in v0.1.6
SerializeAndRedactXML serializes a resource to XML and redacts specified fields.
func Update ¶ added in v0.1.6
func Update[sdkPayloadType any, sdkResponseType any]( ctx context.Context, d *schema.ResourceData, meta interface{}, constructor payoadConstructorFunc[sdkPayloadType], outcomeFunc sdkUpdateFunc[sdkPayloadType, sdkResponseType], reader providerReadFunc, ) diag.Diagnostics
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
configurationprofiles
|
|
datavalidators
common/configurationprofiles/datavalidators/helpers.go
|
common/configurationprofiles/datavalidators/helpers.go |
plist
common/configurationprofiles/plist/plistdiffsuppression.go contains the functions to process configuration profiles for diff suppression.
|
common/configurationprofiles/plist/plistdiffsuppression.go contains the functions to process configuration profiles for diff suppression. |
common/constructobject.go
|
common/constructobject.go |
Click to show internal directories.
Click to hide internal directories.