Documentation
¶
Index ¶
- func AccRandTimeInt() int
- func ErrorDiagF(err error, format string, a ...interface{}) diag.Diagnostics
- func ErrorDiagPathF(err error, attr string, summary string, a ...interface{}) diag.Diagnostics
- func ExpandStringSlicePtr(input []interface{}) *[]string
- func FlattenStringSlicePtr(input *[]string) []interface{}
- func ImportAsDuplicateDiag(resourceName, id string, name string) diag.Diagnostics
- func ImportAsExistsDiag(resourceName, id string) diag.Diagnostics
- func LockByName(resourceType string, name string)
- func Set(d *schema.ResourceData, attr string, value interface{}) diag.Diagnostics
- func UnlockByName(resourceType string, name string)
- func ValidateResourceIDPriorToImport(idParser ResourceIDValidator) *schema.ResourceImporter
- func ValidateResourceIDPriorToImportThen(idParser ResourceIDValidator, importer schema.StateContextFunc) *schema.ResourceImporter
- type MutexKV
- type ResourceIDValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccRandTimeInt ¶
func AccRandTimeInt() int
func ErrorDiagF ¶
func ErrorDiagF(err error, format string, a ...interface{}) diag.Diagnostics
func ErrorDiagPathF ¶
func ErrorDiagPathF(err error, attr string, summary string, a ...interface{}) diag.Diagnostics
func ExpandStringSlicePtr ¶
func ExpandStringSlicePtr(input []interface{}) *[]string
func FlattenStringSlicePtr ¶
func FlattenStringSlicePtr(input *[]string) []interface{}
func ImportAsDuplicateDiag ¶
func ImportAsDuplicateDiag(resourceName, id string, name string) diag.Diagnostics
func ImportAsExistsDiag ¶
func ImportAsExistsDiag(resourceName, id string) diag.Diagnostics
func LockByName ¶
handles the case of using the same name for different kinds of resources
func Set ¶
func Set(d *schema.ResourceData, attr string, value interface{}) diag.Diagnostics
func UnlockByName ¶
func ValidateResourceIDPriorToImport ¶
func ValidateResourceIDPriorToImport(idParser ResourceIDValidator) *schema.ResourceImporter
ValidateResourceIDPriorToImport parses the Resource ID to confirm it's valid for this Resource prior to performing an import - allowing for incorrect Resource ID's to be caught prior to Import and subsequent crashes
func ValidateResourceIDPriorToImportThen ¶
func ValidateResourceIDPriorToImportThen(idParser ResourceIDValidator, importer schema.StateContextFunc) *schema.ResourceImporter
ValidateResourceIDPriorToImportThen parses the Resource ID to confirm it's valid for this Resource prior to calling the importer - allowing for incorrect Resource ID's to be caught prior to Import and subsequent crashes
Types ¶
type MutexKV ¶
type MutexKV struct {
// contains filtered or unexported fields
}
MutexKV is a simple key/value store for arbitrary mutexes. It can be used to serialise changes across arbitrary collaborators that share knowledge of the keys they must serialise on.
type ResourceIDValidator ¶
ResourceIDValidator takes a Resource ID and confirms that it's Valid