webhook

package
v0.7.4-0...-fb5339c Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Webhook

type Webhook struct {
	URL    string
	Method string
}

Webhook is capable of sending JSON objects to a HTTP(s) endpoint using any HTTP verb.

func (*Webhook) HandleEvent

func (w *Webhook) HandleEvent(releaseEvent *kwrelease.Event)

HandleEvent sends notifications when release events occur.

func (*Webhook) HandleServerStartup

func (w *Webhook) HandleServerStartup(releases []*rspb.Release)

HandleServerStartup sends notifications when KubeWise starts up.

func (*Webhook) Init

func (w *Webhook) Init()

Init takes various configuration properties from environment variables and stores them in the instance.

Jump to

Keyboard shortcuts

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