Documentation
¶
Index ¶
Constants ¶
View Source
const CI_RUNNER_PLATFORM = "ci-runner"
internal-platforms
View Source
const CPULimReqErrorCompErr = "cpu limit should not be less than cpu request"
View Source
const DEFAULT_PROFILE_EXISTS = "default profile exists"
View Source
const DEFAULT_PROFILE_NAME = "default"
View Source
const InvalidProfileName = "profile name is invalid"
View Source
const InvalidUnit = "invalid %s unit found in %s "
View Source
const MEMLimReqErrorCompErr = "memory limit should not be less than memory request"
View Source
const NO_PROPERTIES_FOUND = "no properties found"
View Source
const PayloadValidationError = "payload validation failed"
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfigKeysMap ¶
func GetDefaultConfigKeysMap() map[ConfigKeyStr]bool
GetDefaultConfigKeysMap returns a map of default config keys
func GetUnitSuffix ¶
func GetUnitSuffix(unitKey ConfigKeyStr, unitStr string) units.UnitSuffix
GetUnitSuffix loosely typed method to get the unit suffix using the unitKey type
func GetUnitSuffixStr ¶
func GetUnitSuffixStr(unitKey ConfigKey, unit units.UnitSuffix) string
GetUnitSuffixStr loosely typed method to get the unit suffix using the unitKey type
Types ¶
type ConfigKey ¶
type ConfigKey int
const CPULimit ConfigKey = 1
const CPURequest ConfigKey = 2
const MemoryLimit ConfigKey = 3
const MemoryRequest ConfigKey = 4
const TimeOut ConfigKey = 5
func GetConfigKey ¶
func GetConfigKey(configKeyStr ConfigKeyStr) ConfigKey
type ConfigKeyStr ¶
type ConfigKeyStr string
const CPU_LIMIT ConfigKeyStr = "cpu_limit"
const CPU_REQUEST ConfigKeyStr = "cpu_request"
const MEMORY_LIMIT ConfigKeyStr = "memory_limit"
const MEMORY_REQUEST ConfigKeyStr = "memory_request"
const TIME_OUT ConfigKeyStr = "timeout"
func GetConfigKeyStr ¶
func GetConfigKeyStr(configKey ConfigKey) ConfigKeyStr
type ProfileType ¶
type ProfileType string
const DEFAULT ProfileType = "DEFAULT"
const NORMAL ProfileType = "NORMAL"
Click to show internal directories.
Click to hide internal directories.