Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationHandler ¶
type NotificationHandler struct {
api.BaseController
}
NotificationHandler handles request on /service/notifications/, which listens to registry's events. 用来接收来自内部 registry 事件。比如说当用户上传镜像后,registry 会通知 core,根据相关配置判断是否进行镜像扫描任务
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.
Click to show internal directories.
Click to hide internal directories.