Documentation
¶
Index ¶
- func GetGithubAppClientFromRequest(config *server.Config, r *http.Request) (*githubsdk.Client, apierrors.RequestError)
- func GetGithubAppConfig(config *server.Config) (*github.GithubAppConf, apierrors.RequestError)
- func GetGithubProvider(config *server.Config) (res github.GithubVCSProvider, reqErr apierrors.RequestError)
- func NewGithubAppOAuthCallbackHandler(config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, ...) http.Handler
- func NewGithubAppOAuthInstallHandler(config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, ...) http.Handler
- func NewGithubAppOAuthStartHandler(config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, ...) http.Handler
- func NewGithubAppWebhookHandler(config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, ...) http.Handler
- func NewGithubIncomingWebhookHandler(config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, ...) http.Handler
- func NewListGithubAppInstallationsHandler(config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, ...) http.Handler
- func NewListGithubRepoBranchesHandler(config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, ...) http.Handler
- func NewListGithubReposHandler(config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, ...) http.Handler
- type GithubAppOAuthCallbackHandler
- type GithubAppOAuthInstallHandler
- type GithubAppOAuthStartHandler
- type GithubAppWebhookHandler
- type GithubIncomingWebhookHandler
- type ListGithubAppInstallationsHandler
- type ListGithubRepoBranchesHandler
- type ListGithubReposHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGithubAppClientFromRequest ¶
func GetGithubAppClientFromRequest(config *server.Config, r *http.Request) (*githubsdk.Client, apierrors.RequestError)
GetGithubAppClientFromRequest gets the github app installation id from the request and authenticates using it and the private key
func GetGithubAppConfig ¶
func GetGithubAppConfig(config *server.Config) (*github.GithubAppConf, apierrors.RequestError)
func GetGithubProvider ¶
func GetGithubProvider(config *server.Config) (res github.GithubVCSProvider, reqErr apierrors.RequestError)
func NewGithubAppOAuthCallbackHandler ¶
func NewGithubAppOAuthCallbackHandler( config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, writer handlerutils.ResultWriter, ) http.Handler
func NewGithubAppOAuthInstallHandler ¶
func NewGithubAppOAuthInstallHandler( config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, writer handlerutils.ResultWriter, ) http.Handler
func NewGithubAppOAuthStartHandler ¶
func NewGithubAppOAuthStartHandler( config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, writer handlerutils.ResultWriter, ) http.Handler
func NewGithubAppWebhookHandler ¶
func NewGithubAppWebhookHandler( config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, writer handlerutils.ResultWriter, ) http.Handler
func NewGithubIncomingWebhookHandler ¶
func NewGithubIncomingWebhookHandler( config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, writer handlerutils.ResultWriter, ) http.Handler
func NewListGithubAppInstallationsHandler ¶
func NewListGithubAppInstallationsHandler( config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, writer handlerutils.ResultWriter, ) http.Handler
func NewListGithubRepoBranchesHandler ¶
func NewListGithubRepoBranchesHandler( config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, writer handlerutils.ResultWriter, ) http.Handler
func NewListGithubReposHandler ¶
func NewListGithubReposHandler( config *server.Config, decoderValidator handlerutils.RequestDecoderValidator, writer handlerutils.ResultWriter, ) http.Handler
Types ¶
type GithubAppOAuthCallbackHandler ¶
type GithubAppOAuthCallbackHandler struct {
handlers.HatchetHandlerReadWriter
}
func (*GithubAppOAuthCallbackHandler) ServeHTTP ¶
func (g *GithubAppOAuthCallbackHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubAppOAuthInstallHandler ¶
type GithubAppOAuthInstallHandler struct {
handlers.HatchetHandlerReadWriter
}
func (*GithubAppOAuthInstallHandler) ServeHTTP ¶
func (g *GithubAppOAuthInstallHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubAppOAuthStartHandler ¶
type GithubAppOAuthStartHandler struct {
handlers.HatchetHandlerReadWriter
}
func (*GithubAppOAuthStartHandler) ServeHTTP ¶
func (g *GithubAppOAuthStartHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubAppWebhookHandler ¶
type GithubAppWebhookHandler struct {
handlers.HatchetHandlerReadWriter
}
func (*GithubAppWebhookHandler) ServeHTTP ¶
func (g *GithubAppWebhookHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubIncomingWebhookHandler ¶
type GithubIncomingWebhookHandler struct {
handlers.HatchetHandlerReadWriter
}
func (*GithubIncomingWebhookHandler) ServeHTTP ¶
func (g *GithubIncomingWebhookHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ListGithubAppInstallationsHandler ¶
type ListGithubAppInstallationsHandler struct {
handlers.HatchetHandlerReadWriter
}
func (*ListGithubAppInstallationsHandler) ServeHTTP ¶
func (g *ListGithubAppInstallationsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ListGithubRepoBranchesHandler ¶
type ListGithubRepoBranchesHandler struct {
handlers.HatchetHandlerReadWriter
}
func (*ListGithubRepoBranchesHandler) ServeHTTP ¶
func (g *ListGithubRepoBranchesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ListGithubReposHandler ¶
type ListGithubReposHandler struct {
handlers.HatchetHandlerReadWriter
}
func (*ListGithubReposHandler) ServeHTTP ¶
func (g *ListGithubReposHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.