registry

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySecretToken  = weque.KeySecretToken
	KeyInsecureMode = weque.KeyInsecureMode
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(events chan<- *Webhook) http.HandlerFunc

func Verify

func Verify(r *http.Request) error

Types

type Event

type Event struct {
	ID      string  `json:"id"`
	Target  Target  `json:"target"`
	Request Request `json:"request"`
}

func (*Event) Env

func (e *Event) Env() []string

type Request

type Request struct {
	ID        string `json:"id"`
	Addr      string `json:"addr"`
	Host      string `json:"host"`
	UserAgent string `json:"useragent"`
}

type Target

type Target struct {
	Repository string `json:"repository"`
	Digest     string `json:"digest"`
	URL        string `json:"url"`
	Tag        string `json:"tag"`
}

type Webhook

type Webhook struct {
	Events []Event `json:"events"`
}

func Unmarshal

func Unmarshal(b []byte) (*Webhook, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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