github.com/uber/kraken@v0.1.4/proxy/proxyserver/registry_events.go (about) 1 package proxyserver 2 3 import "time" 4 5 // Notification holds all events. refer to https://docs.docker.com/registry/notifications/. 6 type Notification struct { 7 Events []Event 8 } 9 10 // Event holds the details of a event. 11 type Event struct { 12 ID string `json:"Id"` 13 TimeStamp time.Time 14 Action string 15 Target *Target 16 } 17 18 // Target holds information about the target of a event. 19 type Target struct { 20 MediaType string 21 Digest string 22 Repository string 23 URL string `json:"Url"` 24 Tag string 25 }