Documentation ¶
Index ¶
Constants ¶
View Source
const ( ManifestMediaType = "application/vnd.docker.distribution.manifest.v1+json" BlobMediaType = "application/vnd.docker.distribution.manifest.v1+json" // TODO: to be confirm with reciever DefaultMedisType = "application/octet-stream" EventsMediaType = "application/vnd.docker.distribution.events.v1+json" )
View Source
const ( EventActionPull = "pull" EventActionPush = "push" )
Variables ¶
View Source
var (
ErrSinkClosed = fmt.Errorf("sink: closed")
)
Functions ¶
This section is empty.
Types ¶
type ActorRecord ¶
type ActorRecord struct {
Name string `json:"name,omitempty"`
}
type Descriptor ¶
type Endpoint ¶
type Endpoint struct { Sink EndpointDesc }
type EndpointDesc ¶
type Event ¶
type Event struct { ID string `json:"id,omitempty"` Timestamp time.Time `json:"timestamp,omitempty"` Action string `json:"action,omitempty"` Target TargetCtx `json:"target,omitempty"` Req RequestRecord `json:"request,omitempty"` Actor ActorRecord `json:"actor,omitempty"` Source SourceRecord `json:"source,omitempty"` }
type RequestRecord ¶
type SignedManifest ¶
type SourceRecord ¶
Click to show internal directories.
Click to hide internal directories.