service

package
v0.0.0-...-171028a Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2016 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 3 more Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationHandler

type NotificationHandler struct {
	beego.Controller
}

NotificationHandler handles request on /service/notifications/, which listens to registry's events.

func (*NotificationHandler) Post

func (n *NotificationHandler) Post()

Post handles POST request, and records audit log or refreshes cache based on event.

func (*NotificationHandler) Render

func (n *NotificationHandler) Render() error

Render returns nil as it won't render any template.

type TokenHandler

type TokenHandler struct {
	beego.Controller
}

TokenHandler handles request on /service/token, which is the auth provider for registry.

func (*TokenHandler) Get

func (a *TokenHandler) Get()

Get handles GET request, it checks the http header for user credentials and parse service and scope based on docker registry v2 standard, checkes the permission agains local DB and generates jwt token.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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