Documentation ¶
Index ¶
- func GetClientAuth() (string, string, error)
- func GetClientUserAuth(username string) (string, string, error)
- func GetConfigPath(filename string) string
- func GetDeviceAuth() (string, string, error)
- func GetDeviceID() string
- func GetDeviceKey() string
- func GetInt(section string, key string, defaultValue int) int
- func GetValue(section string, key string) (string, error)
- func GetVersion() string
- func SetAuth(scope, user, auth string) error
- func SetFilePath(filename string, path string)
- func SetValue(section string, key string, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientAuth ¶
GetClientAuth -- Get the default client authentication information
func GetClientUserAuth ¶
GetClientUserAuth -- get the authentication credentials for a specific client user
func GetConfigPath ¶
GetConfigPath -- Return the full path of a file in our config directory (usually ~/.config/ondevice/) Can be overridden using setConfigPath() (for testing only) or SetFilePath()
func GetDeviceAuth ¶
GetDeviceAuth -- Get the device authentication
func GetDeviceID ¶
func GetDeviceID() string
GetDeviceID -- Returns the devId if available (otherwise returns an empty string)
func GetDeviceKey ¶
func GetDeviceKey() string
GetDeviceKey -- Returns the device's key (or an empty string if not defined)
func GetInt ¶ added in v0.6.0
GetInt -- Returns the specified integer config value (or defaultValue if not found or on error)
func SetFilePath ¶
SetFilePath -- Override a config file's path (e.g. to satisfy standard OS paths)
Types ¶
This section is empty.