Versions in this module Expand all Collapse all v0 v0.1.0 Mar 1, 2021 Changes in this version + const APIPath + const AppsPath + const BindingsPath + const BotDescription + const BotDisplayName + const BotUsername + const CallPath + const CommandTrigger + const HelloHTTPPath + const InteractiveDialogPath + const KVPath + const OutgoingAuthHeader + const PathMarketplace + const PathOAuth2 + const PathOAuth2Complete + const PropChannelID + const PropPostID + const PropTeamID + const Repository + const StaticAssetPath + const SubscribePath + const UnsubscribePath + const WebSocketEventRefreshBindings + var ErrNotABot = errors.New("not a bot") + type AWS interface + InvokeLambda func(appID apps.AppID, appVersion apps.AppVersion, ...) ([]byte, error) + type Admin interface + GetApp func(appID apps.AppID) (*apps.App, error) + InstallApp func(*apps.Context, apps.SessionToken, *apps.InInstallApp) (*apps.App, md.MD, error) + ListApps func() ([]*apps.App, md.MD, error) + LoadAppsList func() error + ProvisionApp func(*apps.Context, apps.SessionToken, *apps.InProvisionApp) (*apps.App, md.MD, error) + UninstallApp func(appID apps.AppID) error + type AppServices interface + KVDelete func(botUserID, prefix, id string) error + KVGet func(botUserID, prefix, id string, ref interface{}) error + KVSet func(botUserID, prefix, id string, ref interface{}) (bool, error) + Subscribe func(*apps.Subscription) error + Unsubscribe func(*apps.Subscription) error + type AppStore interface + Delete func(app *apps.App) error + Get func(appID apps.AppID) (*apps.App, error) + GetAll func() []*apps.App + Save func(app *apps.App) error + type BuildConfig struct + BuildDate string + BuildHash string + BuildHashShort string + type Config struct + BotUserID string + MattermostSiteHostname string + MattermostSiteURL string + PluginURL string + PluginURLPath string + type ConfigMapper interface + ConfigMap func() (result map[string]interface{}) + type Configurator interface + GetConfig func() Config + GetMattermostConfig func() *model.Config + RefreshConfig func(*StoredConfig) error + StoreConfig func(ConfigMapper) error + type JWTClaims struct + ActingUserID string + type ManifestStore interface + Cleanup func() + Delete func(appID apps.AppID) + Get func(appID apps.AppID) (*apps.Manifest, error) + GetAll func() map[apps.AppID]*apps.Manifest + Save func(manifest *apps.Manifest) + type Proxy interface + Call func(apps.SessionToken, *apps.Call) *apps.CallResponse + GetAsset func(apps.AppID, string) (io.ReadCloser, int, error) + GetBindings func(*apps.Context) ([]*apps.Binding, error) + Notify func(cc *apps.Context, subj apps.Subject) error + ProvisionBuiltIn func(apps.AppID, Upstream) + type Service struct + AWS AWS + Admin Admin + AppServices AppServices + Configurator Configurator + Mattermost *pluginapi.Client + Proxy Proxy + type Store interface + App func() AppStore + Manifest func() ManifestStore + Sub func() SubStore + type StoredConfig struct + AWSAccessKeyID string + AWSSecretAccessKey string + Apps map[string]interface{} + func (sc *StoredConfig) ConfigMap() map[string]interface{} + type SubStore interface + Delete func(*apps.Subscription) error + Get func(subject apps.Subject, teamID, channelID string) ([]*apps.Subscription, error) + Save func(sub *apps.Subscription) error + type Upstream interface + OneWay func(call *apps.Call) error + Roundtrip func(call *apps.Call) (io.ReadCloser, error)