Documentation ¶
Index ¶
- Constants
- func CheckPath(path string) error
- func CheckThrottling(httpResp *http.Response, err error) *resource.RetryError
- func FiltersTimesToStringSlice(filterValues []string, filterName string) ([]string, error)
- func GetBsuId(vmResp oscgo.Vm, deviceName string) string
- func GetBsuTagsMaps(vmResp oscgo.Vm, conn *oscgo.APIClient) (map[string]interface{}, error)
- func GetEnvVariableValue(envVariables []string) string
- func GetErrorResponse(err error) error
- func GetRegion() string
- func I32toa(i int32) string
- func InterfaceSliceToStringList(slice []interface{}) *[]string
- func InterfaceSliceToStringSlice(slice []interface{}) []string
- func InterfaceSliceToStringSlicePtr(slice []interface{}) *[]string
- func IsResponseEmpty(len int, name, id string) bool
- func IsResponseEmptyOrMutiple(rLen int, resName string) error
- func LogManuallyDeleted(name, id string)
- func ParseStringToInt32(str string) int32
- func ParsingfilterToDateFormat(filterName, value string) (time.Time, error)
- func PrintToJSON(v interface{}, msg string)
- func RandIntRange(min, max int) int
- func RandVpcCidr() string
- func SetToStringSlice(set *schema.Set) []string
- func SetToStringSlicePtr(set *schema.Set) *[]string
- func String(s string) int
- func StringSlicePtrToInterfaceSlice(list *[]string) []interface{}
- func StringSliceToFloat32Slice(src []string) (res []float32)
- func StringSliceToInt32Slice(src []string) (res []int32)
- func StringSliceToInt64Slice(src []string) (res []int64)
- func StringSliceToPtrInt64Slice(src []*string) []*int64
- func StringSliceToTimeSlice(filterValues []string, filterName string) ([]time.Time, error)
- func Strings(strings []string) string
- func ToJSONString(v interface{}) string
Constants ¶
View Source
const ( MinPort int = 1 MaxPort int = 65535 MinIops int = 100 MaxIops int = 13000 DefaultIops int32 = 150 MaxSize int = 14901 TestAccVmType string = "tinav6.c2r2p2" LinkedPolicyNotFound string = "5102" InvalidState string = "InvalidState" SuffixConfigFilePath string = "/.osc/config.json" VolumeIOPSError string = `` /* 198-byte string literal not displayed */ )
PrintToJSON method helper to debug responses
Variables ¶
This section is empty.
Functions ¶
func CheckThrottling ¶
func CheckThrottling(httpResp *http.Response, err error) *resource.RetryError
func GetBsuTagsMaps ¶
func GetEnvVariableValue ¶
func GetErrorResponse ¶
func InterfaceSliceToStringList ¶
func InterfaceSliceToStringList(slice []interface{}) *[]string
func InterfaceSliceToStringSlice ¶
func InterfaceSliceToStringSlice(slice []interface{}) []string
func InterfaceSliceToStringSlicePtr ¶
func InterfaceSliceToStringSlicePtr(slice []interface{}) *[]string
func IsResponseEmpty ¶
func LogManuallyDeleted ¶
func LogManuallyDeleted(name, id string)
func ParseStringToInt32 ¶
func PrintToJSON ¶
func PrintToJSON(v interface{}, msg string)
func RandIntRange ¶
func RandVpcCidr ¶
func RandVpcCidr() string
func SetToStringSlice ¶
func SetToStringSlicePtr ¶
func String ¶
String hashes a string to a unique hashcode.
crc32 returns a uint32, but for our use we need and non negative integer. Here we cast to an integer and invert it if the result is negative.
func StringSlicePtrToInterfaceSlice ¶
func StringSlicePtrToInterfaceSlice(list *[]string) []interface{}
func StringSliceToFloat32Slice ¶
StringSliceToFloat32Slice converts []string to []float32 ...
func StringSliceToInt32Slice ¶
StringSliceToInt32Slice converts []string to []int32 ...
func StringSliceToInt64Slice ¶
StringSliceToInt64Slice converts []string to []int64 ...
func StringSliceToPtrInt64Slice ¶
StringSliceToPtrInt64Slice ...
func StringSliceToTimeSlice ¶
func ToJSONString ¶
func ToJSONString(v interface{}) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.