utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigKey

func GetConfigKey(configKeyStr bean.ConfigKeyStr) bean.ConfigKey

func GetConfigKeyStr

func GetConfigKeyStr(configKey bean.ConfigKey) bean.ConfigKeyStr

func GetDefaultConfigKeysMap

func GetDefaultConfigKeysMap() map[bean.ConfigKeyStr]bool

GetDefaultConfigKeysMap returns a map of default config keys

func GetTypedValue added in v1.2.1

func GetTypedValue(configKey bean.ConfigKeyStr, value interface{}) (interface{}, error)

func GetUnitSuffix

func GetUnitSuffix(unitKey bean.ConfigKeyStr, unitStr string) units.UnitSuffix

GetUnitSuffix loosely typed method to get the unit suffix using the unitKey type

func GetUnitSuffixStr

func GetUnitSuffixStr(unitKey bean.ConfigKey, unit units.UnitSuffix) string

GetUnitSuffixStr loosely typed method to get the unit suffix using the unitKey type

func IsValidProfileNameRequested added in v1.2.1

func IsValidProfileNameRequested(profileName, payloadProfileName string) bool

func IsValidProfileNameRequestedV0 added in v1.2.1

func IsValidProfileNameRequestedV0(profileName, payloadProfileName string) bool

func ValidatePayloadConfig added in v1.2.1

func ValidatePayloadConfig(profileToUpdate *bean.ProfileBeanDto) error

todo remove this validation, as it is written additionally due to validator v9.30.0 constraint for map[string]*struct is not handled

Types

This section is empty.

Jump to

Keyboard shortcuts

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