Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct {
Color string
ConfigFile string
LogLevel string
ProfileName string
DeviceName string
}
Profile handles all things related to managing the project specific configurations
func (*Profile) ConfigureProfile ¶
ConfigureProfile creates a profile when logging in
func (*Profile) GetConfigField ¶
GetConfigField returns the configuration field for the specific profile
func (*Profile) GetConfigFolder ¶
GetConfigFolder retrieves the folder where the config file is stored It searches for the xdg environment path first and will secondarily place it in the home directory
func (*Profile) GetDeviceName ¶
GetDeviceName returns the configured device name
func (*Profile) GetSecretKey ¶
GetSecretKey will return the existing key for the given profile
func (*Profile) InitConfig ¶
func (p *Profile) InitConfig()
InitConfig reads in config file and ENV variables if set.
Click to show internal directories.
Click to hide internal directories.