Documentation ¶
Index ¶
- func FileExistsFn(basepath, filename string) bool
- func ListByDeploy(c *bolt.Cursor, prefix []byte) (infoList []platform.GitInfo, err error)
- func SeekByAttribute(c *bolt.Cursor, prefix []byte, attr, value string) (infoList []platform.GitInfo, err error)
- type Handler
- func (h *Handler) Authenticate(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
- func (h *Handler) GetUserIDSub() string
- func (h *Handler) GitHubAddHooks(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GitHubHooks(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GitHubListBranches(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GitHubListOrgRepos(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GitHubListUserOrgs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GitHubListUserRepos(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GitHubSearchRepos(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Releases(w http.ResponseWriter, r *http.Request)
- func (h *Handler) V1beta1DownloadFile(w http.ResponseWriter, r *http.Request)
- func (h *Handler) V1beta1ListReleases(w http.ResponseWriter, r *http.Request)
- func (h *Handler) V1beta1Releases(w http.ResponseWriter, r *http.Request)
- func (h *Handler) V1beta1SeekReleases(w http.ResponseWriter, r *http.Request)
- func (h *Handler) V1beta1UploadRelease(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Webhooks(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExistsFn ¶
func ListByDeploy ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler .
func NewHandler ¶
NewHandler .
func (*Handler) Authenticate ¶
func (h *Handler) Authenticate(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Authenticate validates if the provided credentials are valid
func (*Handler) GetUserIDSub ¶
func (*Handler) GitHubAddHooks ¶
func (h *Handler) GitHubAddHooks(w http.ResponseWriter, r *http.Request)
GitHubAddHooks create new webhooks into github https://developer.github.com/v3/repos/hooks/#create-a-hook
func (*Handler) GitHubHooks ¶
func (h *Handler) GitHubHooks(w http.ResponseWriter, r *http.Request)
GitHubHooks allows read and delete github webhooks https://developer.github.com/v3/repos/hooks/#webhooks
func (*Handler) GitHubListBranches ¶
func (h *Handler) GitHubListBranches(w http.ResponseWriter, r *http.Request)
GitHubListBranches list branches from a repository
func (*Handler) GitHubListOrgRepos ¶
func (h *Handler) GitHubListOrgRepos(w http.ResponseWriter, r *http.Request)
GitHubListOrgRepos list repositories from organizations
func (*Handler) GitHubListUserOrgs ¶
func (h *Handler) GitHubListUserOrgs(w http.ResponseWriter, r *http.Request)
GitHubListUserOgs list the organizations for the authenticated user. GitHub API docs: https://developer.github.com/v3/orgs/#list-your-organizations
func (*Handler) GitHubListUserRepos ¶
func (h *Handler) GitHubListUserRepos(w http.ResponseWriter, r *http.Request)
GitHubListUserRepos list repositories from users
func (*Handler) GitHubSearchRepos ¶
func (h *Handler) GitHubSearchRepos(w http.ResponseWriter, r *http.Request)
GitHubSearchRepos lookup for repositores at GitHub
func (*Handler) Releases ¶
func (h *Handler) Releases(w http.ResponseWriter, r *http.Request)
Releases handles upload of tarballs as new releases
func (*Handler) V1beta1DownloadFile ¶
func (h *Handler) V1beta1DownloadFile(w http.ResponseWriter, r *http.Request)
func (*Handler) V1beta1ListReleases ¶
func (h *Handler) V1beta1ListReleases(w http.ResponseWriter, r *http.Request)
func (*Handler) V1beta1Releases ¶
func (h *Handler) V1beta1Releases(w http.ResponseWriter, r *http.Request)
func (*Handler) V1beta1SeekReleases ¶
func (h *Handler) V1beta1SeekReleases(w http.ResponseWriter, r *http.Request)
func (*Handler) V1beta1UploadRelease ¶
func (h *Handler) V1beta1UploadRelease(w http.ResponseWriter, r *http.Request)