Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEventNotSupported = errors.New("Event not supported") ErrEventInvalid = errors.New("Not a valid event") )
Functions ¶
func NewKubernetesClient ¶ added in v0.1.5
Types ¶
type Event ¶ added in v0.1.5
type Event struct { Type string Action string Revision string Ref string Before string *github.Repository }
func ParseEvent ¶ added in v0.1.5
func (*Event) Annotations ¶ added in v0.1.5
type GithubLoader ¶ added in v0.1.5
func NewGithubLoader ¶ added in v0.1.5
func NewGithubLoader(token, baseURL, uploadURL string) (*GithubLoader, error)
type Handler ¶ added in v0.1.5
type Handler struct { log.Logger Config *Config Loader KubernetesClient // contains filtered or unexported fields }
func NewGithubHookHandler ¶ added in v0.1.5
func (*Handler) HandleEvent ¶ added in v0.1.5
Handler handles a webhook. We have to use interface{} because of https://github.com/google/go-github/issues/1154.
type KubernetesClient ¶ added in v0.1.5
Click to show internal directories.
Click to hide internal directories.