Documentation
¶
Index ¶
- Variables
- func AuthTokenProvidedFromEnv() bool
- func DeleteAuthInfoForHostname(hostname string) error
- func GetKnownHosts() ([]string, error)
- func GetTokenFor(hostname string) string
- func GetUsernameFor(hostname string) string
- func IsDebugMode() bool
- func SetAuthInfo(hostname string, data AuthInfo) error
- func SetCurrentOrgInfo(name, ID string) error
- func SetTokenForHostname(hostname, token string) error
- func SetUsernameForHostname(hostname, username string) error
- type AuthInfo
- type Config
- type OrgInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // The directory where the application config can be found ConfigDir = "~/.config/reliably" // The file that contains application config ConfigFile = ConfigDir + "/config.yaml" // The hostname of the reliably web services Hostname = "reliably.com" // The Entity Server hostname. This may be merged in to the Hostame variable later. EntityServerHost = Hostname )
Functions ¶
func AuthTokenProvidedFromEnv ¶ added in v0.18.1
func AuthTokenProvidedFromEnv() bool
func GetKnownHosts ¶
GetKnownHosts returns the list of hostnames defined in the config auths block If Token is provided by the env var, we use the overiddable host if not found in the config
func GetTokenFor ¶
func GetUsernameFor ¶
func IsDebugMode ¶
func IsDebugMode() bool
func SetAuthInfo ¶
func SetCurrentOrgInfo ¶
func SetTokenForHostname ¶
func SetUsernameForHostname ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.