utils

package
v1.218.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAvailableUpdate

func CheckAvailableUpdate(currVersion string, output bool) (string, error)

func CheckIfFileExists

func CheckIfFileExists(file string) error

func DeleteEmpty

func DeleteEmpty(s []string) []string

func GetRelativeFilePathFromParentFile

func GetRelativeFilePathFromParentFile(parentFile string, file string) string

func ParseBool added in v1.24.0

func ParseBool(s string) (bool, error)

func ParseFloat added in v1.25.0

func ParseFloat(s string) (float32, error)

func ValidFileTypes

func ValidFileTypes(file string, fileType string) error

func ValidateAgentFileType added in v1.22.0

func ValidateAgentFileType(exportOutputFile string) error

func ValidateExportFormat added in v1.22.0

func ValidateExportFormat(exportFormat string) error

func ValidateExportOutputFileAndFormatCorrelation added in v1.22.0

func ValidateExportOutputFileAndFormatCorrelation(exportOutputFile, exportFormat string) error

func ValidateFileType

func ValidateFileType(file string, fileType string) error

func WriteFile

func WriteFile(b []byte, file 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