apps

package
v0.0.0-...-5ee9e10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 List

func List(ctx context.Context, clients *shared.ClientFactory) ([]types.App, string, error)

List returns a list of the apps (only includes dev apps if there is a valid session)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL