Documentation
¶
Overview ¶
Package installer provides a web-based installer for creating GitHub Apps using the GitHub App Manifest flow.
Index ¶
Constants ¶
View Source
const ( EnvGitHubURL = "GITHUB_URL" EnvGitHubOrg = "GITHUB_ORG" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Store configstore.Store
Manifest Manifest
AppDisplayName string
GitHubURL string
GitHubOrg string
RedirectURL string
WebhookURL string
OnCredentialsSaved CredentialsSavedFunc
}
Config holds the installer configuration.
func NewConfigFromEnv ¶
func NewConfigFromEnv() Config
NewConfigFromEnv creates a Config from environment variables.
type CredentialsSavedFunc ¶
type CredentialsSavedFunc func(ctx context.Context, creds *configstore.AppCredentials) error
CredentialsSavedFunc is called after credentials are saved.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles the GitHub App manifest installation flow.
type HookAttributes ¶
HookAttributes configures the webhook for the GitHub App.
type Manifest ¶
type Manifest struct {
Name string `json:"name,omitempty"`
URL string `json:"url"`
HookAttributes HookAttributes `json:"hook_attributes"`
RedirectURL string `json:"redirect_url"`
Public bool `json:"public"`
DefaultPerms map[string]string `json:"default_permissions"`
DefaultEvents []string `json:"default_events"`
}
Manifest represents a GitHub App manifest.
Click to show internal directories.
Click to hide internal directories.