utils

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2026 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuffixConfigFilePath string = "/.osc/config.json"
)

Variables

This section is empty.

Functions

func CheckThrottling

func CheckThrottling(httpResp *http.Response, err error) *retry.RetryError

func FiltersTimesToStringSlice

func FiltersTimesToStringSlice(filterValues []string, filterName string) ([]string, error)

func GetEnvVariableValue

func GetEnvVariableValue(envVariables []string) string

func GetErrorResponse

func GetErrorResponse(err error) error

func GetErrorResponseToString

func GetErrorResponseToString(err error) string

func GetHttpErrorResponse added in v1.4.0

func GetHttpErrorResponse(httpBody io.ReadCloser, err error) error

func GetRegion

func GetRegion() string

func I32toa

func I32toa(i int32) string

func InterfaceSliceToStringList

func InterfaceSliceToStringList(slice []interface{}) *[]string

func InterfaceSliceToStringSlice

func InterfaceSliceToStringSlice(slice []interface{}) []string

func InterfaceSliceToStringSlicePtr

func InterfaceSliceToStringSlicePtr(slice []interface{}) *[]string

func IsEnvVariableSet

func IsEnvVariableSet(envVariables []string) bool

func IsResponseEmpty

func IsResponseEmpty(len int, name, id string) bool

func LogManuallyDeleted

func LogManuallyDeleted(name, id string)

func ParseStringToInt32

func ParseStringToInt32(str string) int32

func ParsingfilterToDateFormat

func ParsingfilterToDateFormat(filterName, value string) (time.Time, error)

func PrintToJSON

func PrintToJSON(v interface{}, msg string)

func RandIntRange

func RandIntRange(min, max int) int

func SetToStringSlice

func SetToStringSlice(set *schema.Set) []string

func SetToStringSlicePtr

func SetToStringSlicePtr(set *schema.Set) *[]string

func SliceToTftypesValueSlice

func SliceToTftypesValueSlice(src []string) (basetypes.SetValue, diag.Diagnostics)

func StringSlicePtrToInterfaceSlice

func StringSlicePtrToInterfaceSlice(list *[]string) []interface{}

func StringSliceToFloat32Slice

func StringSliceToFloat32Slice(src []string) (res []float32)

StringSliceToFloat32Slice converts []string to []float32 ...

func StringSliceToInt32Slice

func StringSliceToInt32Slice(src []string) (res []int32)

StringSliceToInt32Slice converts []string to []int32 ...

func StringSliceToInt64Slice

func StringSliceToInt64Slice(src []string) (res []int64)

StringSliceToInt64Slice converts []string to []int64 ...

func StringSliceToPtrInt64Slice

func StringSliceToPtrInt64Slice(src []*string) []*int64

StringSliceToPtrInt64Slice ...

func StringSliceToTimeSlice

func StringSliceToTimeSlice(filterValues []string, filterName string) ([]time.Time, error)

func ToJSONString

func ToJSONString(v interface{}) string

func UnknownDataSourceFilterError

func UnknownDataSourceFilterError(ctx context.Context, filterName string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL