util

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskForConfirmation added in v1.4.0

func AskForConfirmation()

func CalculateHash added in v1.5.0

func CalculateHash(content []byte) []byte

func CreateKeyValuePairs

func CreateKeyValuePairs(m map[string]string, prefix string, suffix string) ([]byte, error)

func DelayBucketCreation added in v1.3.15

func DelayBucketCreation(bucket string, skipDelay bool)

func EqualLists

func EqualLists(a, b []string) bool

func FileExists added in v1.3.0

func FileExists(source, path string) bool

func GetValueFromStruct

func GetValueFromStruct(keyWithDots string, object interface{}) (string, error)

func HashCode added in v1.5.6

func HashCode(value string) string

func IsClientModule

func IsClientModule(module model.Module) bool

func IsLocalSource added in v1.3.0

func IsLocalSource(source string) bool

func MapToYamlBytes

func MapToYamlBytes(m map[string]interface{}) ([]byte, error)

func MarshalYamlWithJsonTags added in v1.0.2

func MarshalYamlWithJsonTags(v interface{}) ([]byte, error)

func MinInt

func MinInt(a, b int) int

func SetChildStringValue added in v1.0.9

func SetChildStringValue(data map[string]interface{}, newValue string, overwrite bool, keys ...string) error

func SortKeys added in v1.5.0

func SortKeys(data interface{}) interface{}

func TarGzWrite

func TarGzWrite(inDirPath string) ([]byte, error)

func ToList

func ToList(value string) []string

func YamlBytesToMap

func YamlBytesToMap(b []byte) (map[string]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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