Documentation ¶
Index ¶
- func GetGithubAppClientFromRequest(ctx echo.Context, config *server.ServerConfig) (*githubsdk.Client, *gen.APIErrors)
- func GetGithubAppConfig(config *server.ServerConfig) (*github.GithubAppConf, error)
- func GetGithubProvider(config *server.ServerConfig) (res github.GithubVCSProvider, reqErr error)
- type GithubAppService
- func (g *GithubAppService) GithubAppListBranches(ctx echo.Context, req gen.GithubAppListBranchesRequestObject) (gen.GithubAppListBranchesResponseObject, error)
- func (g *GithubAppService) GithubAppListInstallations(ctx echo.Context, req gen.GithubAppListInstallationsRequestObject) (gen.GithubAppListInstallationsResponseObject, error)
- func (g *GithubAppService) GithubAppListRepos(ctx echo.Context, req gen.GithubAppListReposRequestObject) (gen.GithubAppListReposResponseObject, error)
- func (g *GithubAppService) GithubUpdateGlobalWebhook(ctx echo.Context, req gen.GithubUpdateGlobalWebhookRequestObject) (gen.GithubUpdateGlobalWebhookResponseObject, error)
- func (g *GithubAppService) GithubUpdateTenantWebhook(ctx echo.Context, req gen.GithubUpdateTenantWebhookRequestObject) (gen.GithubUpdateTenantWebhookResponseObject, error)
- func (g *GithubAppService) UserUpdateGithubOauthCallback(ctx echo.Context, _ gen.UserUpdateGithubOauthCallbackRequestObject) (gen.UserUpdateGithubOauthCallbackResponseObject, error)
- func (g *GithubAppService) UserUpdateGithubOauthStart(ctx echo.Context, _ gen.UserUpdateGithubOauthStartRequestObject) (gen.UserUpdateGithubOauthStartResponseObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGithubAppClientFromRequest ¶
func GetGithubAppClientFromRequest(ctx echo.Context, config *server.ServerConfig) (*githubsdk.Client, *gen.APIErrors)
GetGithubAppClientFromRequest gets the github app installation id from the request and authenticates using it and the private key
func GetGithubAppConfig ¶
func GetGithubAppConfig(config *server.ServerConfig) (*github.GithubAppConf, error)
func GetGithubProvider ¶
func GetGithubProvider(config *server.ServerConfig) (res github.GithubVCSProvider, reqErr error)
Types ¶
type GithubAppService ¶
type GithubAppService struct {
// contains filtered or unexported fields
}
func NewGithubAppService ¶
func NewGithubAppService(config *server.ServerConfig) *GithubAppService
func (*GithubAppService) GithubAppListBranches ¶
func (g *GithubAppService) GithubAppListBranches(ctx echo.Context, req gen.GithubAppListBranchesRequestObject) (gen.GithubAppListBranchesResponseObject, error)
func (*GithubAppService) GithubAppListInstallations ¶
func (g *GithubAppService) GithubAppListInstallations(ctx echo.Context, req gen.GithubAppListInstallationsRequestObject) (gen.GithubAppListInstallationsResponseObject, error)
func (*GithubAppService) GithubAppListRepos ¶
func (g *GithubAppService) GithubAppListRepos(ctx echo.Context, req gen.GithubAppListReposRequestObject) (gen.GithubAppListReposResponseObject, error)
func (*GithubAppService) GithubUpdateGlobalWebhook ¶
func (g *GithubAppService) GithubUpdateGlobalWebhook(ctx echo.Context, req gen.GithubUpdateGlobalWebhookRequestObject) (gen.GithubUpdateGlobalWebhookResponseObject, error)
Note: we want all errors to redirect, otherwise the user will be greeted with raw JSON in the middle of the login flow.
func (*GithubAppService) GithubUpdateTenantWebhook ¶
func (g *GithubAppService) GithubUpdateTenantWebhook(ctx echo.Context, req gen.GithubUpdateTenantWebhookRequestObject) (gen.GithubUpdateTenantWebhookResponseObject, error)
func (*GithubAppService) UserUpdateGithubOauthCallback ¶
func (g *GithubAppService) UserUpdateGithubOauthCallback(ctx echo.Context, _ gen.UserUpdateGithubOauthCallbackRequestObject) (gen.UserUpdateGithubOauthCallbackResponseObject, error)
Note: we want all errors to redirect, otherwise the user will be greeted with raw JSON in the middle of the login flow.
func (*GithubAppService) UserUpdateGithubOauthStart ¶
func (g *GithubAppService) UserUpdateGithubOauthStart(ctx echo.Context, _ gen.UserUpdateGithubOauthStartRequestObject) (gen.UserUpdateGithubOauthStartResponseObject, error)
Note: we want all errors to redirect, otherwise the user will be greeted with raw JSON in the middle of the login flow.
Click to show internal directories.
Click to hide internal directories.