Merge pull request #2639 from andrew-leung/manifesteventlayers

Add configurable layers in manifest events
This commit is contained in:
Derek McGowan 2018-08-28 16:03:05 -07:00 committed by GitHub
commit b12bd4004a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 66 additions and 18 deletions

View file

@ -71,7 +71,7 @@ type Manifest struct {
Layers []distribution.Descriptor `json:"layers"`
}
// References returnes the descriptors of this manifests references.
// References returns the descriptors of this manifests references.
func (m Manifest) References() []distribution.Descriptor {
references := make([]distribution.Descriptor, 0, 1+len(m.Layers))
references = append(references, m.Config)