proxy/proxyserver/registry_events.go (18 lines of code) (raw):

package proxyserver import "time" // Notification holds all events. refer to https://docs.docker.com/registry/notifications/. type Notification struct { Events []Event } // Event holds the details of a event. type Event struct { ID string `json:"Id"` TimeStamp time.Time Action string Target *Target } // Target holds information about the target of a event. type Target struct { MediaType string Digest string Repository string URL string `json:"Url"` Tag string }