profile

package
v0.0.0-...-41dbc07 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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

Jump to

Keyboard shortcuts

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