Documentation
¶
Index ¶
- func ValidateConfig(conf EnvConfig, offline bool) error
- type Config
- type EnvConfig
- func (ef *EnvConfig) DebugString() string
- func (ef *EnvConfig) GetAnnouncement() string
- func (ef *EnvConfig) GetCAKeyLocation() string
- func (ef *EnvConfig) GetChannelName() string
- func (ef *EnvConfig) GetChatTeam() string
- func (ef *EnvConfig) GetKeyExpiration() string
- func (ef *EnvConfig) GetKeybaseHomeDir() string
- func (ef *EnvConfig) GetKeybasePaperKey() string
- func (ef *EnvConfig) GetKeybaseUsername() string
- func (ef *EnvConfig) GetLogLocation() string
- func (ef *EnvConfig) GetStrictLogging() bool
- func (ef *EnvConfig) GetTeams() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateConfig ¶
Validate the given config file. If offline, do so without connecting to keybase (used in code that is meant to function without any reliance on Keybase).
Types ¶
type Config ¶
type Config interface { GetCAKeyLocation() string GetKeybaseHomeDir() string GetKeybasePaperKey() string GetKeybaseUsername() string GetKeyExpiration() string GetTeams() []string GetChatTeam() string GetChannelName() string GetLogLocation() string GetStrictLogging() bool GetAnnouncement() string DebugString() string }
Represents a loaded and validated config for keybaseca
type EnvConfig ¶
type EnvConfig struct{}
A Config struct that pulls transparently from the environment
func (*EnvConfig) DebugString ¶
Dump this EnvConfig to a string for debugging purposes
func (*EnvConfig) GetAnnouncement ¶
Get the announcement string used when the bot is started up. May be empty.
func (*EnvConfig) GetCAKeyLocation ¶
Get the location of the CA key
func (*EnvConfig) GetChannelName ¶
Get the channel used for all communication. May be empty.
func (*EnvConfig) GetChatTeam ¶
Get the team used for all communication. May be empty.
func (*EnvConfig) GetKeyExpiration ¶
Get the expiration period for signatures generated by the bot.
func (*EnvConfig) GetKeybaseHomeDir ¶
Get the keybase home directory. Used if you are running a separate instance of keybase for the chatbot. May be empty.
func (*EnvConfig) GetKeybasePaperKey ¶
Get the keybase paper key for the bot account. Used if you are running a separate instance of keybase for the chatbot. May be empty.
func (*EnvConfig) GetKeybaseUsername ¶
Get the keybase username for the bot account. Used if you are running a separate instance of keybase for the chatbot. May be empty.
func (*EnvConfig) GetLogLocation ¶
Get the location for the bot's audit logs. May be empty.
func (*EnvConfig) GetStrictLogging ¶
Get whether or not strict logging (see env.md for a description of this feature) is enabled