Documentation
¶
Index ¶
- Constants
- func Add(ctx context.Context, clients *shared.ClientFactory, auth types.SlackAuth, ...) (types.InstallState, types.App, error)
- func Delete(ctx context.Context, clients *shared.ClientFactory, teamDomain string, ...) (types.App, string, error)
- func FetchAppInstallStates(ctx context.Context, clients *shared.ClientFactory, apps []types.App) ([]types.App, error)
- func Install(ctx context.Context, clients *shared.ClientFactory, auth types.SlackAuth, ...) (types.App, types.InstallState, error)
- func InstallLocalApp(ctx context.Context, clients *shared.ClientFactory, orgGrantWorkspaceID string, ...) (types.App, api.DeveloperAppInstallResult, types.InstallState, error)
- func List(ctx context.Context, clients *shared.ClientFactory) ([]types.App, string, error)
- func Uninstall(ctx context.Context, clients *shared.ClientFactory, teamDomain string, ...) (types.App, string, error)
Constants ¶
View Source
const ( CreateAppManifestOnly = true CreateAppManifestAndInstall = false )
Constants for onlyCreateUpdateAppManifest parameter
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(ctx context.Context, clients *shared.ClientFactory, auth types.SlackAuth, app types.App, orgGrantWorkspaceID string) (types.InstallState, types.App, error)
Add will add an app
func Delete ¶
func Delete(ctx context.Context, clients *shared.ClientFactory, teamDomain string, app types.App, auth types.SlackAuth) (types.App, string, error)
Delete will delete the app for this teamDomain both remotely (API) and locally (project)
func FetchAppInstallStates ¶
func FetchAppInstallStates(ctx context.Context, clients *shared.ClientFactory, apps []types.App) ([]types.App, error)
FetchAppInstallStates fetches app installation status from the backend and sets the values on the given apps
func Install ¶
func Install(ctx context.Context, clients *shared.ClientFactory, auth types.SlackAuth, onlyCreateUpdateAppManifest bool, app types.App, orgGrantWorkspaceID string) (types.App, types.InstallState, error)
Install installs the app to a team
func InstallLocalApp ¶
func InstallLocalApp(ctx context.Context, clients *shared.ClientFactory, orgGrantWorkspaceID string, auth types.SlackAuth, app types.App) (types.App, api.DeveloperAppInstallResult, types.InstallState, error)
InstallLocalApp installs a non-hosted local app to a workspace.
func Uninstall ¶
func Uninstall(ctx context.Context, clients *shared.ClientFactory, teamDomain string, app types.App, auth types.SlackAuth) (types.App, string, error)
Uninstall will uninstall the app that belongs to the teamDomain from the backend. It will not modify the local project files (apps.json).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.