webhook

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CIWEBHOOKNAME = "CIEndpoint"
View Source
const CIWEBHOOKTYPE = "forwardPost"

Variables

View Source
var (
	ErrDelWebhook    = errors.New("delete webhook fail")
	ErrCreateWebhook = errors.New("create webhook fail")

	CIWebhookEndpoint = ""
)

Functions

func CreateCIEndpointWebhook

func CreateCIEndpointWebhook() error

Types

type WebhookGenericObject

type WebhookGenericObject struct {
	ID     string
	Name   string
	State  string
	Links  map[string]string
	Driver string
	URL    string
	Key    string
	Config interface{} `json:"forwardPostConfig"`
}

func ConvertToWebhookGenericObject

func ConvertToWebhookGenericObject(genericObject client.GenericObject) (WebhookGenericObject, error)

Jump to

Keyboard shortcuts

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