profile

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (p *Profile) ConfigureProfile(apiKey string) error

ConfigureProfile creates a profile when logging in

func (*Profile) GetConfigField

func (p *Profile) GetConfigField(field string) string

GetConfigField returns the configuration field for the specific profile

func (*Profile) GetConfigFolder

func (p *Profile) GetConfigFolder(xdgPath string) string

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

func (p *Profile) GetDeviceName() (string, error)

GetDeviceName returns the configured device name

func (*Profile) GetSecretKey

func (p *Profile) GetSecretKey() (string, error)

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.

Jump to

Keyboard shortcuts

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