Documentation ¶
Index ¶
- func Execute()
- func GetPassword(secret internal.Secret, system string) (string, error)
- func GetSecretKey() ([]byte, error)
- func PwDecrypt(encrypted, byteSecret []byte) (string, error)
- func PwEncrypt(bytePw, byteSecret []byte) ([]byte, error)
- type Config
- type FieldInfo
- type StructureInfo
- type SystemInfo
- type TableInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetPassword ¶
GetPassword - decrypt password
Types ¶
type Config ¶
type Config struct { Secret []byte Systems []SystemInfo // system info from toml file Metrics []tomlMetric // metric info from toml file IntMetrics []metricInfo // adapted internal metrics Timeout uint // contains filtered or unexported fields }
Config - information for the whole process
func (*Config) FindSystem ¶
func (config *Config) FindSystem(cmpSystem string) SystemInfo
FindSystem - check if cmpSystem already exists in configfile
func (*Config) GetSecretMap ¶
GetSecretMap - unmarshal secret bytes
type StructureInfo ¶
StructureInfo - specific structure metric info
Click to show internal directories.
Click to hide internal directories.