api

package
v0.8.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler .

func NewHandler

func NewHandler(cnf *conf.Config, clientset kubernetes.Interface) 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) 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) 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