handler

package
v0.0.0-...-cb90f35 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const AppTokenValidity = 1 * time.Minute

Variables

This section is empty.

Functions

func AllOrganizations

func AllOrganizations(w http.ResponseWriter, r *http.Request)

func GithubManualRegister

func GithubManualRegister(w http.ResponseWriter, r *http.Request)

GithubManualRegister can be used to manually create or update a github app

func LogIncoming

func LogIncoming(w http.ResponseWriter, r *http.Request)

func Manifest

func Manifest(w http.ResponseWriter, r *http.Request)

func NewAppRedirect

func NewAppRedirect(w http.ResponseWriter, r *http.Request)

func OrganizationRepositories

func OrganizationRepositories(w http.ResponseWriter, r *http.Request)

func RegisterApp

func RegisterApp(w http.ResponseWriter, r *http.Request)

Types

type AllOrganizationsResponse

type AllOrganizationsResponse struct {
	Login     string `json:"login"`
	Name      string `json:"name"`
	AvatarUrl string `json:"avatar_url"`
}

type CheckoutHandler

type CheckoutHandler struct {
	Github chan worker.GithubCheckoutTask
}

func (CheckoutHandler) Checkout

func (h CheckoutHandler) Checkout(w http.ResponseWriter, r *http.Request)

Checkout clones the specified repository from a connected source control manager

type CheckoutRequestModel

type CheckoutRequestModel struct {
	SCMId       string `json:"scm_id"`
	CallbackURL string `json:"callback_url"`
	State       string `json:"state"`
	Commit      string `json:"commit"`
}

type GithubManualRegisterRequest

type GithubManualRegisterRequest struct {
	AppId          int    `json:"app_id"`
	InstallationId string `json:"installation_id"`
	ClientId       string `json:"client_id"`
	ClientSecret   string `json:"client_secret"`
	PrivateKey     string `json:"private_key"`
}

type NewAppRedirectModel

type NewAppRedirectModel struct {
	OrganizationUrl string `json:"organization_url"`
}

type OrganizationRepositoriesResponse

type OrganizationRepositoriesResponse struct {
	Id    int    `json:"id"`
	SCMId string `json:"scm_id"`
	Name  string `json:"name"`
}

type RegisterAppModel

type RegisterAppModel struct {
	Code string `json:"code"`
}

Jump to

Keyboard shortcuts

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