Documentation
¶
Index ¶
- Constants
- 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 ¶
View Source
const ( RELIABLY_HOST = envReliablyHost RELIABLY_ORG = envReliablyOrg RELIABLY_TOKEN = envReliablyToken DEBUG = envDebug )
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 = "app.reliably.com" // The Entity Server hostname. This may be merged in to the Hostame variable later. EntityServerHost = Hostname // The organization info matching the RELIABLY_ORG ID/username used OverriddenOrg *OrgInfo )
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 ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.