Documentation ¶
Index ¶
- func GetBranch(c handlers.PorterHandler, w http.ResponseWriter, r *http.Request) (string, bool)
- func GetGithubAppClientFromRequest(config *config.Config, r *http.Request) (*github.Client, error)
- func GetGithubAppOauthTokenFromRequest(config *config.Config, r *http.Request) (*oauth2.Token, error)
- func GetOwnerAndNameParams(c handlers.PorterHandler, w http.ResponseWriter, r *http.Request) (string, string, bool)
- type GetGithubAppAccountsHandler
- type GitInstallationGetHandler
- type GitRepoListHandler
- type GithubAppInstallHandler
- type GithubAppOAuthCallbackHandler
- type GithubAppOAuthStartHandler
- type GithubAppWebhookHandler
- type GithubGetBuildpackHandler
- type GithubGetContentsHandler
- type GithubGetProcfileHandler
- type GithubGetTarballURLHandler
- type GithubListBranchesHandler
- type GithubListReposHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBranch ¶
func GetBranch(c handlers.PorterHandler, w http.ResponseWriter, r *http.Request) (string, bool)
GetBranch gets the unencoded branch
func GetGithubAppClientFromRequest ¶
GetGithubAppClientFromRequest gets the github app installation id from the request and authenticates using it and a private key file
func GetGithubAppOauthTokenFromRequest ¶
func GetGithubAppOauthTokenFromRequest(config *config.Config, r *http.Request) (*oauth2.Token, error)
GetGithubAppOauthTokenFromRequest gets the GH oauth token from the request based on the currently logged in user
func GetOwnerAndNameParams ¶
func GetOwnerAndNameParams(c handlers.PorterHandler, w http.ResponseWriter, r *http.Request) (string, string, bool)
GetOwnerAndNameParams gets the owner and name ref for the Github repo
Types ¶
type GetGithubAppAccountsHandler ¶
type GetGithubAppAccountsHandler struct { handlers.PorterHandlerReadWriter authz.KubernetesAgentGetter }
func NewGetGithubAppAccountsHandler ¶
func NewGetGithubAppAccountsHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *GetGithubAppAccountsHandler
func (*GetGithubAppAccountsHandler) ServeHTTP ¶
func (c *GetGithubAppAccountsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GitInstallationGetHandler ¶
type GitInstallationGetHandler struct {
handlers.PorterHandlerWriter
}
func NewGitInstallationGetHandler ¶
func NewGitInstallationGetHandler( config *config.Config, writer shared.ResultWriter, ) *GitInstallationGetHandler
func (*GitInstallationGetHandler) ServeHTTP ¶
func (c *GitInstallationGetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GitRepoListHandler ¶
type GitRepoListHandler struct { handlers.PorterHandlerWriter authz.KubernetesAgentGetter }
func NewGitRepoListHandler ¶
func NewGitRepoListHandler( config *config.Config, writer shared.ResultWriter, ) *GitRepoListHandler
func (*GitRepoListHandler) ServeHTTP ¶
func (c *GitRepoListHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubAppInstallHandler ¶
type GithubAppInstallHandler struct {
handlers.PorterHandler
}
func NewGithubAppInstallHandler ¶
func NewGithubAppInstallHandler( config *config.Config, ) *GithubAppInstallHandler
func (*GithubAppInstallHandler) ServeHTTP ¶
func (c *GithubAppInstallHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubAppOAuthCallbackHandler ¶
type GithubAppOAuthCallbackHandler struct {
handlers.PorterHandlerReadWriter
}
func NewGithubAppOAuthCallbackHandler ¶
func NewGithubAppOAuthCallbackHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *GithubAppOAuthCallbackHandler
func (*GithubAppOAuthCallbackHandler) ServeHTTP ¶
func (c *GithubAppOAuthCallbackHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubAppOAuthStartHandler ¶
type GithubAppOAuthStartHandler struct {
handlers.PorterHandler
}
func NewGithubAppOAuthStartHandler ¶
func NewGithubAppOAuthStartHandler( config *config.Config, ) *GithubAppOAuthStartHandler
func (*GithubAppOAuthStartHandler) ServeHTTP ¶
func (c *GithubAppOAuthStartHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubAppWebhookHandler ¶
type GithubAppWebhookHandler struct { handlers.PorterHandlerReadWriter authz.KubernetesAgentGetter }
func NewGithubAppWebhookHandler ¶
func NewGithubAppWebhookHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *GithubAppWebhookHandler
func (*GithubAppWebhookHandler) ServeHTTP ¶
func (c *GithubAppWebhookHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubGetBuildpackHandler ¶
type GithubGetBuildpackHandler struct { handlers.PorterHandlerReadWriter authz.KubernetesAgentGetter }
func NewGithubGetBuildpackHandler ¶
func NewGithubGetBuildpackHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *GithubGetBuildpackHandler
func (*GithubGetBuildpackHandler) ServeHTTP ¶
func (c *GithubGetBuildpackHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubGetContentsHandler ¶
type GithubGetContentsHandler struct { handlers.PorterHandlerReadWriter authz.KubernetesAgentGetter }
func NewGithubGetContentsHandler ¶
func NewGithubGetContentsHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *GithubGetContentsHandler
func (*GithubGetContentsHandler) ServeHTTP ¶
func (c *GithubGetContentsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubGetProcfileHandler ¶
type GithubGetProcfileHandler struct { handlers.PorterHandlerReadWriter authz.KubernetesAgentGetter }
func NewGithubGetProcfileHandler ¶
func NewGithubGetProcfileHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *GithubGetProcfileHandler
func (*GithubGetProcfileHandler) ServeHTTP ¶
func (c *GithubGetProcfileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubGetTarballURLHandler ¶
type GithubGetTarballURLHandler struct { handlers.PorterHandlerReadWriter authz.KubernetesAgentGetter }
func NewGithubGetTarballURLHandler ¶
func NewGithubGetTarballURLHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *GithubGetTarballURLHandler
func (*GithubGetTarballURLHandler) ServeHTTP ¶
func (c *GithubGetTarballURLHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubListBranchesHandler ¶
type GithubListBranchesHandler struct { handlers.PorterHandlerWriter authz.KubernetesAgentGetter }
func NewGithubListBranchesHandler ¶
func NewGithubListBranchesHandler( config *config.Config, writer shared.ResultWriter, ) *GithubListBranchesHandler
func (*GithubListBranchesHandler) ServeHTTP ¶
func (c *GithubListBranchesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GithubListReposHandler ¶
type GithubListReposHandler struct { handlers.PorterHandlerWriter authz.KubernetesAgentGetter }
func NewGithubListReposHandler ¶
func NewGithubListReposHandler( config *config.Config, writer shared.ResultWriter, ) *GithubListReposHandler
func (*GithubListReposHandler) ServeHTTP ¶
func (c *GithubListReposHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.