utils

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeRegex = regexp.MustCompile(`^([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$`)

TimeRegex Regular expression for HH:MM:SS format.

Functions

func AttrValueToString

func AttrValueToString(val attr.Value) string

func ConvertInterfaceToListOfString added in v1.0.0

func ConvertInterfaceToListOfString(input interface{}) (*[]string, error)

func ConvertStringArray added in v1.1.0

func ConvertStringArray(items []types.String) []string

func DayTimeFormatToSeconds

func DayTimeFormatToSeconds(timeStr string) (int64, error)

func GetDiagnosticsForApiError

func GetDiagnosticsForApiError(err error, actionType string, objectName string, objectId string) diag.Diagnostics

func IsAponoApiNotFoundError added in v1.5.2

func IsAponoApiNotFoundError(resp *http.Response) bool

func SecondsToDayTimeFormat

func SecondsToDayTimeFormat(seconds int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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