Documentation ¶
Index ¶
- 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) 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) Webhooks(w http.ResponseWriter, r *http.Request)
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 (*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
Click to show internal directories.
Click to hide internal directories.