Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenInBrowser ¶
Types ¶
type AppConfigResult ¶
type AppConfigResult struct {
// contains filtered or unexported fields
}
AppConfigResult represents a GitHub App configuration result.
type GitHubApp ¶
type GitHubApp struct {
// contains filtered or unexported fields
}
GitHubApp represents a GitHub App, is responsible to provide the necessary structure for the GitHub oAuth2 workflow. GitHub Apps are protected with JWT web token, thus the oAuth2 workflow uses the (primary) browser to interact with 2FA and other GitHub security measures.
func NewGitHubApp ¶
NewGitHubApp creates a new GitHub App instance.
func (*GitHubApp) Create ¶
func (g *GitHubApp) Create( ctx context.Context, manifest scrape.AppManifest, ) (*github.AppConfig, error)
Create creates a new GitHub App using the provided manifest. The manifest is submitted to GitHub using a regular web form to leverate the required OAuth2 flow.
func (*GitHubApp) PersistentFlags ¶
PersistentFlags sets the persistent flags for the GitHub App.
Click to show internal directories.
Click to hide internal directories.