api

package
v0.9.2-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: Apache-2.0 Imports: 32 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExistsFn

func FileExistsFn(basepath, filename string) bool

func ListByDeploy

func ListByDeploy(c *bolt.Cursor, prefix []byte) (infoList []platform.GitInfo, err error)

func SeekByAttribute

func SeekByAttribute(c *bolt.Cursor, prefix []byte, attr, value string) (infoList []platform.GitInfo, err error)

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler .

func NewHandler

func NewHandler(cnf *conf.Config, clientset kubernetes.Interface, db *bolt.DB) *Handler

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 (h *Handler) GetUserIDSub() string

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)

func (*Handler) Webhooks

func (h *Handler) Webhooks(w http.ResponseWriter, r *http.Request)

Webhooks receives webhooks from github and trigger new releases/builds

Jump to

Keyboard shortcuts

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