Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { AuditLogChannelID() string SlackAuthToken() string SlackTeamName() string SlackUserID() string SlackSlashCommand() string UninvitableDomain() string UninvitableMessage() string }
Config is an interface that provides configuration values.
func NewEnvConfig ¶
func NewEnvConfig( app *cfenv.App, configServiceNameVar string, slackAuditLogChannelIDVar string, slackAuthTokenVar string, slackSlashCommandVar string, slackTeamNameVar string, slackUserIDVar string, uninvitableDomainMessageVar string, uninvitableDomainVar string, logger lager.Logger, ) Config
NewEnvConfig returns a new Config which will use environment variables as its source.
func NewLocalConfig ¶
func NewLocalConfig( slackAuthToken string, slackSlashCommand string, slackTeamName string, slackUserID string, auditLogChannelID string, uninvitableDomain string, uninvitableMessage string, ) Config
NewLocalConfig returns a new Config which will use the provided values as its source.
Click to show internal directories.
Click to hide internal directories.