utils

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func FiltersTimesToStringSlice

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

func GetRegion

func GetRegion() string

func I32toa

func I32toa(i int32) string

func InterfaceSliceToStringList

func InterfaceSliceToStringList(slice []any) *[]string

func InterfaceSliceToStringSlice

func InterfaceSliceToStringSlice(slice []any) []string

func InterfaceSliceToStringSlicePtr

func InterfaceSliceToStringSlicePtr(slice []any) *[]string

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 RandIntRange

func RandIntRange(min, max int) int

func SetToStringSlice

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

func SetToStringSlicePtr

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

func SetToSuperStringSlice added in v1.6.0

func SetToSuperStringSlice[T ~string](set *schema.Set) []T

func SliceToSuperStringSlice added in v1.6.0

func SliceToSuperStringSlice[T ~string](slice []any) []T

func SliceToTftypesValueSlice

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

func StringSlicePtrToInterfaceSlice

func StringSlicePtrToInterfaceSlice(list *[]string) []any

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 StringSliceToIntSlice added in v1.6.0

func StringSliceToIntSlice(src []string) (res []int)

func StringSliceToPtrInt64Slice

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

StringSliceToPtrInt64Slice ...

func StringSliceToTimeSlice

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

func ToEnums added in v1.7.0

func ToEnums[T ~string](v []string) *[]T

func UnknownDataSourceFilterError

func UnknownDataSourceFilterError(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