Documentation ¶
Index ¶
- func Bool(i bool) *bool
- func BoolSlice2BoolPointerSlice(in []bool) []*bool
- func BoolToInt64Pointer(s bool) (i *uint64)
- func BoolToInt64Ptr(s bool) (i *int64)
- func BuildToken() string
- func CheckElementsExist(slice1 []string, slice2 []string) (bool, []string)
- func CheckIfSetTogether(d *schema.ResourceData, args ...string) error
- func ComposeValidateFunc(fns ...schema.SchemaValidateFunc) schema.SchemaValidateFunc
- func ConvertInterfacesHeadToMap(v interface{}) (result map[string]interface{}, ok bool)
- func CovertInterfaceMapToStrPtr(m map[string]interface{}) map[string]*string
- func DataResourceIdHash(id string) string
- func DataResourceIdsHash(ids []string) string
- func DiffSupressJSON(k, olds, news string, d *schema.ResourceData) bool
- func Float64(i float64) *float64
- func Float64Slice2Float64PointerSlice(in []float64) []*float64
- func FormatUnixTime(n uint64) string
- func GetTags(d *schema.ResourceData, k string) map[string]string
- func HashString(s string) int
- func HashStrings(strings []string) string
- func IdFormat(s ...string) string
- func IdParse(s string) []string
- func ImmutableArgsChek(d *schema.ResourceData, arguments ...string) error
- func ImportWithDefaultValue(defaultValues map[string]interface{}) schema.StateFunc
- func Int(i int) *int
- func Int64(i int64) *int64
- func Int64Slice2Int64PointerSlice(in []int64) []*int64
- func Int64ToStr(s int64) (i string)
- func Int64ToStrPoint(s int64) *string
- func Int64Uint64(i int64) *uint64
- func Int64sInterfaces(list []*int64) []interface{}
- func IntInt64(i int) *int64
- func IntToStr(s int) (i string)
- func IntUint64(i int) *uint64
- func InterfaceToMap(d map[string]interface{}, key string) (result map[string]interface{}, ok bool)
- func InterfacesHeadMap(d *schema.ResourceData, key string) (result map[string]interface{}, ok bool)
- func InterfacesIntInt64Point(configured []interface{}) []*int64
- func InterfacesIntUInt64Point(configured []interface{}) []*uint64
- func InterfacesIntegers(configured []interface{}) []int
- func InterfacesStrings(configured []interface{}) []string
- func InterfacesStringsPoint(configured []interface{}) []*string
- func InterfacesUint64Point(configured []interface{}) []*uint64
- func IsEmptyStr(s *string) bool
- func JsonToMap(str string) (map[string]interface{}, error)
- func MapToString(param map[string]interface{}) (string, bool)
- func PBool(pointer *bool) bool
- func PInt64(pointer *int64) int64
- func PString(pointer *string) string
- func PStrings(strs []*string) []string
- func PUint64(pointer *uint64) uint64
- func ParseTime(s string) (time.Time, error)
- func ResourceIdsHash(ids []string) string
- func SetMapInterfaces(d *schema.ResourceData, key string, values ...map[string]interface{}) error
- func SliceFieldSerialize(slice []string) string
- func StrListToStr(strList []*string) string
- func StrListValToStr(strListVal []string) string
- func StrToBool(s string) (i bool)
- func StrToInt(s string) (i int)
- func StrToInt64(s string) (i int64)
- func StrToInt64Point(s string) *int64
- func StrToStrList(str string) (res []string, err error)
- func StrToUInt64(s string) (i uint64)
- func StrToUint64Point(s string) *uint64
- func String(i string) *string
- func Strings(strs []string) []*string
- func StringsContain(ss []string, str string) bool
- func StringsInterfaces(list []*string) []interface{}
- func StringsStringsPoint(configured []string) []*string
- func StringsToUint64Pointer(strs []*string) []*uint64
- func UInt64Int64(i uint64) *int64
- func UInt64Slice2UInt64PointerSlice(in []uint64) []*uint64
- func UInt64ToStr(s uint64) (i string)
- func UInt64ToStrPoint(i uint64) *string
- func Uint(i uint) *uint
- func Uint64(i uint64) *uint64
- func Uint64sInterfaces(list []*uint64) []interface{}
- func UnwarpSDKError(err error) *sdkErrors.TencentCloudSDKError
- func WrapError(cause error, id, requestId string) error
- func WrapErrorf(cause error, id, requestId, msg string, args ...interface{}) error
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolSlice2BoolPointerSlice ¶ added in v1.81.99
func BoolToInt64Pointer ¶
func BoolToInt64Ptr ¶
func BuildToken ¶
func BuildToken() string
func CheckElementsExist ¶ added in v1.81.53
func CheckIfSetTogether ¶
func CheckIfSetTogether(d *schema.ResourceData, args ...string) error
CheckIfSetTogether will check all args, they should be all nil or not nil.
Such as vpc_id and subnet_id should set together, or don't set them.
func ComposeValidateFunc ¶
func ComposeValidateFunc(fns ...schema.SchemaValidateFunc) schema.SchemaValidateFunc
compose all schema.SchemaValidateFunc to a schema.SchemaValidateFunc, like resource.ComposeTestCheckFunc, so that we can reuse exist schema.SchemaValidateFunc and reduce custom schema.SchemaValidateFunc codes size.
func ConvertInterfacesHeadToMap ¶ added in v1.79.1
ConvertInterfacesHeadToMap returns string key map if argument is MaxItem: 1 List Type
func CovertInterfaceMapToStrPtr ¶ added in v1.81.1
CovertInterfaceMapToStrPtr returns [string:string] map from a [string:interface] map
func DataResourceIdHash ¶
Generates a hash for the set hash function used by the ID
func DataResourceIdsHash ¶
Generates a hash for the set hash function used by the IDs
func DiffSupressJSON ¶ added in v1.76.1
func DiffSupressJSON(k, olds, news string, d *schema.ResourceData) bool
func Float64Slice2Float64PointerSlice ¶ added in v1.81.99
func FormatUnixTime ¶
func HashString ¶ added in v1.79.2
HashString hashes a string to a unique hashcode.
This will be removed in v2 without replacement. So we place here instead of import.
func HashStrings ¶ added in v1.81.0
Strings hashes a list of strings to a unique hashcode.
func ImmutableArgsChek ¶ added in v1.79.5
func ImmutableArgsChek(d *schema.ResourceData, arguments ...string) error
func ImportWithDefaultValue ¶ added in v1.78.0
func Int64Slice2Int64PointerSlice ¶ added in v1.81.99
func Int64ToStr ¶ added in v1.60.0
func Int64ToStrPoint ¶ added in v1.78.12
func Int64Uint64 ¶
func Int64sInterfaces ¶ added in v1.66.3
func Int64sInterfaces(list []*int64) []interface{}
func InterfaceToMap ¶ added in v1.73.0
func InterfacesHeadMap ¶ added in v1.66.0
func InterfacesHeadMap(d *schema.ResourceData, key string) (result map[string]interface{}, ok bool)
InterfacesHeadMap returns string key map if argument is MaxItem: 1 List Type
func InterfacesIntInt64Point ¶
func InterfacesIntInt64Point(configured []interface{}) []*int64
func InterfacesIntUInt64Point ¶ added in v1.81.35
func InterfacesIntUInt64Point(configured []interface{}) []*uint64
func InterfacesIntegers ¶ added in v1.71.0
func InterfacesIntegers(configured []interface{}) []int
func InterfacesStrings ¶
func InterfacesStrings(configured []interface{}) []string
Takes the result of flatmap.Expand for an array of strings and returns a []string
func InterfacesStringsPoint ¶
func InterfacesStringsPoint(configured []interface{}) []*string
func InterfacesUint64Point ¶ added in v1.77.4
func InterfacesUint64Point(configured []interface{}) []*uint64
func IsEmptyStr ¶ added in v1.79.1
func MapToString ¶ added in v1.81.38
func ResourceIdsHash ¶ added in v1.80.3
Generates a hash for the resource
func SetMapInterfaces ¶ added in v1.76.1
func SetMapInterfaces(d *schema.ResourceData, key string, values ...map[string]interface{}) error
func SliceFieldSerialize ¶
Serialize slice into the usage document eg["status_change","abnormal"] will be "`abnormal`,`status_change`"
func StrListToStr ¶ added in v1.75.0
func StrListValToStr ¶ added in v1.79.9
func StrToInt64 ¶ added in v1.60.0
func StrToInt64Point ¶ added in v1.78.12
func StrToStrList ¶ added in v1.75.0
func StrToUInt64 ¶ added in v1.60.4
func StrToUint64Point ¶ added in v1.78.12
func StringsContain ¶
func StringsInterfaces ¶
func StringsInterfaces(list []*string) []interface{}
StringsInterfaces Flatten to an array of raw strings and returns a []interface{}
func StringsStringsPoint ¶ added in v1.75.2
func StringsToUint64Pointer ¶ added in v1.78.14
func UInt64Int64 ¶ added in v1.79.4
func UInt64Slice2UInt64PointerSlice ¶ added in v1.81.99
func UInt64ToStr ¶ added in v1.60.4
func UInt64ToStrPoint ¶ added in v1.78.14
func Uint64sInterfaces ¶
func Uint64sInterfaces(list []*uint64) []interface{}
func UnwarpSDKError ¶ added in v1.78.0
func UnwarpSDKError(err error) *sdkErrors.TencentCloudSDKError
func WrapErrorf ¶
if cause is *sdkErrors.TencentCloudSDKError, will use sdk error request-id