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) UserUpdateGithubAppOauthCallback(ctx echo.Context, _ gen.UserUpdateGithubAppOauthCallbackRequestObject) (gen.UserUpdateGithubAppOauthCallbackResponseObject, error)
- func (g *GithubAppService) UserUpdateGithubAppOauthStart(ctx echo.Context, _ gen.UserUpdateGithubAppOauthStartRequestObject) (gen.UserUpdateGithubAppOauthStartResponseObject, 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) UserUpdateGithubAppOauthCallback ¶ added in v0.20.0
func (g *GithubAppService) UserUpdateGithubAppOauthCallback(ctx echo.Context, _ gen.UserUpdateGithubAppOauthCallbackRequestObject) (gen.UserUpdateGithubAppOauthCallbackResponseObject, 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) UserUpdateGithubAppOauthStart ¶ added in v0.20.0
func (g *GithubAppService) UserUpdateGithubAppOauthStart(ctx echo.Context, _ gen.UserUpdateGithubAppOauthStartRequestObject) (gen.UserUpdateGithubAppOauthStartResponseObject, 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.