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.
Click to show internal directories.
Click to hide internal directories.