{"modulePath":"github.com/redhat-appstudio/tssc-cli","version":"v1.8.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githubapp\n\n## Functions\n\n```go\nfunc OpenInBrowser(u string) error\n```\n\n## Types\n\n```go\ntype AppConfigResult struct {\n\t// contains filtered or unexported fields\n}\n```\nAppConfigResult represents a GitHub App configuration result.\n\n```go\ntype GitHubApp struct {\n\t// contains filtered or unexported fields\n}\n```\nGitHubApp 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.\n\n```go\nfunc NewGitHubApp(logger *slog.Logger) *GitHubApp\n```\nNewGitHubApp creates a new GitHub App instance.\n\n```go\nfunc (g *GitHubApp) Create(\n\tctx context.Context,\n\tmanifest scrape.AppManifest,\n) (*github.AppConfig, error)\n```\nCreate 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.\n\n```go\nfunc (g *GitHubApp) PersistentFlags(cmd *cobra.Command)\n```\nPersistentFlags sets the persistent flags for the GitHub App.\n\n```go\nfunc (g *GitHubApp) Validate() error\n```\nValidate validates the GitHub App configuration.\n\n","path":"github.com/redhat-appstudio/tssc-cli/pkg/githubapp","name":"githubapp","synopsis":"","isRedistributable":true}
