helpers

package
v0.11.135 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastResultToInteger

func CastResultToInteger(res [][]interface{}) (int64, error)

func GetAllFilesInDir added in v0.11.123

func GetAllFilesInDir(fs afero.Fs, dir string) ([]string, error)

func GetExitCode added in v0.11.128

func GetExitCode(err error) int

func GetIngestrDestinationType added in v0.6.6

func GetIngestrDestinationType(asset *pipeline.Asset) (pipeline.AssetType, error)

func GetLatestFileInDir added in v0.11.123

func GetLatestFileInDir(fs afero.Fs, dir string) (string, error)

func ParseJSONOutputs added in v0.11.128

func ParseJSONOutputs(actual, expected string) (interface{}, interface{}, error)

func PrefixGenerator

func PrefixGenerator() string

func ReadFile added in v0.11.128

func ReadFile(path string) string

func ReadJSONToFile added in v0.11.123

func ReadJSONToFile(fs afero.Fs, filename string, v interface{}) error

func WriteJSONToFile added in v0.11.122

func WriteJSONToFile(fs afero.Fs, data interface{}, filename 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