utils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 10 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 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