Documentation
¶
Index ¶
- func AutoBoxBoolNumberStr(str interface{}) types.Bool
- func AutoBoxString(str interface{}) types.String
- func AutoUnboxString(str types.String, def string) string
- func BoolToNumberStr(b bool) string
- func ColumnFirstOrDefault(resp *response.Response, colName string, def interface{}) interface{}
- func ColumnIndexOrDefault(resp *response.Response, colName string, def interface{}, idx int) interface{}
- func ColumnOrDefault(resp *response.Response, colName string, def []string) []string
- func FillRequestArray(ctx context.Context, list elementsAsCapableValue, ...)
- func FillRequestArrayWithIgnore(ctx context.Context, listObj elementsAsCapableValue, ...)
- func HandleExtraAttributesRead(resp *response.Response) types.Map
- func HandleExtraAttributesWrite(extraAttributesBox types.Map, oldExtraAttributesBox types.Map, ...)
- func HandlePossibleErrorResponse(resp *response.Response, diags *diag.Diagnostics)
- func HandleUnexpectedUnknown(diags *diag.Diagnostics)
- func IPAddressType(allowIPv4 bool, allowIPv6 bool) *ipAddressType
- func MakeNotConfiguredError(diags *diag.Diagnostics)
- func NumberStrToBool(str string) bool
- func ResourceSchemaToDataSourceSchema(resourceSchema map[string]resource_schema.Attribute, idField string) map[string]datasource_schema.Attribute
- func StringListToAttrList(elems []string) []attr.Value
- func StringListToAttrListWithIgnore(elems []string, ignore map[string]bool) []attr.Value
- func StringListToTypedAttrList(elems []string, typeCtor TypeCtor) []attr.Value
- func StringListToTypedAttrListWithIgnore(elems []string, ignore map[string]bool, typeCtor TypeCtor) []attr.Value
- type CommandType
- type TypeCtor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoBoxBoolNumberStr ¶
func AutoBoxString ¶
func ColumnFirstOrDefault ¶
func ColumnIndexOrDefault ¶
func ColumnIndexOrDefault(resp *response.Response, colName string, def interface{}, idx int) interface{}
Functions for dealing the the API "column" concept easier
func ColumnOrDefault ¶
func FillRequestArray ¶
func FillRequestArrayWithIgnore ¶ added in v0.9.0
func HandleExtraAttributesRead ¶
Functions to handle X- attributes
func HandlePossibleErrorResponse ¶
func HandlePossibleErrorResponse(resp *response.Response, diags *diag.Diagnostics)
func HandleUnexpectedUnknown ¶
func HandleUnexpectedUnknown(diags *diag.Diagnostics)
func IPAddressType ¶
func MakeNotConfiguredError ¶
func MakeNotConfiguredError(diags *diag.Diagnostics)
func NumberStrToBool ¶
func ResourceSchemaToDataSourceSchema ¶ added in v0.17.0
func ResourceSchemaToDataSourceSchema(resourceSchema map[string]resource_schema.Attribute, idField string) map[string]datasource_schema.Attribute
func StringListToAttrList ¶
func StringListToAttrListWithIgnore ¶ added in v0.9.0
func StringListToTypedAttrList ¶ added in v0.16.1
Types ¶
type CommandType ¶
type CommandType = string
Useful constants
const ( CommandCreate CommandType = "Add" CommandRead CommandType = "Status" CommandUpdate CommandType = "Modify" CommandDelete CommandType = "Delete" )
Click to show internal directories.
Click to hide internal directories.