Documentation ¶
Overview ¶
Package profile contains profile related code
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProfileForSysObjectID ¶
func GetProfileForSysObjectID(profiles ProfileConfigMap, sysObjectID string) (string, error)
GetProfileForSysObjectID return a profile for a sys object id
func SetGlobalProfileConfigMap ¶
func SetGlobalProfileConfigMap(configMap ProfileConfigMap)
SetGlobalProfileConfigMap sets global globalProfileConfigMap
Types ¶
type ProfileConfig ¶
type ProfileConfig struct { DefinitionFile string `yaml:"definition_file"` Definition profiledefinition.ProfileDefinition `yaml:"definition"` IsUserProfile bool `yaml:"-"` }
ProfileConfig represent a profile configuration
type ProfileConfigMap ¶
type ProfileConfigMap map[string]ProfileConfig
ProfileConfigMap represent a map of ProfileConfig
func GetGlobalProfileConfigMap ¶
func GetGlobalProfileConfigMap() ProfileConfigMap
GetGlobalProfileConfigMap gets global globalProfileConfigMap
func GetProfiles ¶
func GetProfiles(initConfigProfiles ProfileConfigMap) (ProfileConfigMap, error)
GetProfiles returns profiles depending on various sources:
- init config profiles
- yaml profiles
- downloaded json gzip profiles
- remote config profiles
Click to show internal directories.
Click to hide internal directories.