Documentation ¶
Index ¶
- func Bool(i bool) *bool
- func BoolToInt64Pointer(s bool) (i *uint64)
- func BoolToInt64Ptr(s bool) (i *int64)
- func BuildToken() string
- func CheckIfSetTogether(d *schema.ResourceData, args ...string) error
- func ComposeValidateFunc(fns ...schema.SchemaValidateFunc) schema.SchemaValidateFunc
- func DataResourceIdHash(id string) string
- func DataResourceIdsHash(ids []string) string
- func Float64(i float64) *float64
- func FormatUnixTime(n uint64) string
- func GetTags(d *schema.ResourceData, k string) map[string]string
- func IdFormat(s ...string) string
- func IdParse(s string) []string
- func Int(i int) *int
- func Int64(i int64) *int64
- func Int64ToStr(s int64) (i string)
- func Int64Uint64(i int64) *uint64
- func IntInt64(i int) *int64
- func IntUint64(i int) *uint64
- func InterfacesIntInt64Point(configured []interface{}) []*int64
- func InterfacesStrings(configured []interface{}) []string
- func InterfacesStringsPoint(configured []interface{}) []*string
- func PInt64(pointer *int64) int64
- func PString(pointer *string) string
- func PUint64(pointer *uint64) uint64
- func ParseTime(s string) (time.Time, error)
- func SliceFieldSerialize(slice []string) string
- func StrToInt64(s string) (i int64)
- func StrToUInt64(s string) (i uint64)
- func String(i string) *string
- func Strings(strs []string) []*string
- func StringsContain(ss []string, str string) bool
- func StringsInterfaces(list []*string) []interface{}
- func UInt64ToStr(s uint64) (i string)
- func Uint(i uint) *uint
- func Uint64(i uint64) *uint64
- func Uint64sInterfaces(list []*uint64) []interface{}
- 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 BoolToInt64Pointer ¶
func BoolToInt64Ptr ¶
func BuildToken ¶
func BuildToken() string
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 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 FormatUnixTime ¶
func Int64ToStr ¶ added in v1.60.0
func Int64Uint64 ¶
func InterfacesIntInt64Point ¶
func InterfacesIntInt64Point(configured []interface{}) []*int64
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 SliceFieldSerialize ¶
Serialize slice into the usage document eg["status_change","abnormal"] will be "`abnormal`,`status_change`"
func StrToInt64 ¶ added in v1.60.0
func StrToUInt64 ¶ added in v1.60.4
func StringsContain ¶
func StringsInterfaces ¶
func StringsInterfaces(list []*string) []interface{}
StringsInterfaces Flatten to an array of raw strings and returns a []interface{}
func UInt64ToStr ¶ added in v1.60.4
func Uint64sInterfaces ¶
func Uint64sInterfaces(list []*uint64) []interface{}
func WrapErrorf ¶
if cause is *sdkErrors.TencentCloudSDKError, will use sdk error request-id