gitinstallation

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBranch

GetBranch gets the unencoded branch

func GetGithubAppClientFromRequest

func GetGithubAppClientFromRequest(config *config.Config, r *http.Request) (*github.Client, error)

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

type GitInstallationGetHandler

type GitInstallationGetHandler struct {
	handlers.PorterHandlerWriter
}

func NewGitInstallationGetHandler

func NewGitInstallationGetHandler(
	config *config.Config,
	writer shared.ResultWriter,
) *GitInstallationGetHandler

func (*GitInstallationGetHandler) ServeHTTP

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

type GithubAppOAuthCallbackHandler

type GithubAppOAuthCallbackHandler struct {
	handlers.PorterHandlerReadWriter
}

func NewGithubAppOAuthCallbackHandler

func NewGithubAppOAuthCallbackHandler(
	config *config.Config,
	decoderValidator shared.RequestDecoderValidator,
	writer shared.ResultWriter,
) *GithubAppOAuthCallbackHandler

func (*GithubAppOAuthCallbackHandler) ServeHTTP

type GithubAppOAuthStartHandler

type GithubAppOAuthStartHandler struct {
	handlers.PorterHandler
}

func NewGithubAppOAuthStartHandler

func NewGithubAppOAuthStartHandler(
	config *config.Config,
) *GithubAppOAuthStartHandler

func (*GithubAppOAuthStartHandler) ServeHTTP

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

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

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

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

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

type GithubListBranchesHandler

type GithubListBranchesHandler struct {
	handlers.PorterHandlerWriter
	authz.KubernetesAgentGetter
}

func NewGithubListBranchesHandler

func NewGithubListBranchesHandler(
	config *config.Config,
	writer shared.ResultWriter,
) *GithubListBranchesHandler

func (*GithubListBranchesHandler) ServeHTTP

type GithubListReposHandler

type GithubListReposHandler struct {
	handlers.PorterHandlerWriter
	authz.KubernetesAgentGetter
}

func NewGithubListReposHandler

func NewGithubListReposHandler(
	config *config.Config,
	writer shared.ResultWriter,
) *GithubListReposHandler

func (*GithubListReposHandler) ServeHTTP

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL