Skip to content

Commit b4ccc6a

Browse files
committed
Include new properties in manifest and descriptor
- Include ArtifactType property in Descriptor struct - Include Refers property in Manifest struct - Update copyright dates Signed-off-by: nisha <[email protected]>
1 parent 469e304 commit b4ccc6a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

specs-go/v1/descriptor.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 The Linux Foundation
1+
// Copyright 2016-2022 The Linux Foundation
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -29,6 +29,9 @@ type Descriptor struct {
2929
// Size specifies the size in bytes of the blob.
3030
Size int64 `json:"size"`
3131

32+
// ArtifactType is the type of artifact this schema refers to.
33+
ArtifactType string `json:"artifactType,omitempty"`
34+
3235
// URLs specifies a list of URLs from which this object MAY be downloaded
3336
URLs []string `json:"urls,omitempty"`
3437

specs-go/v1/manifest.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 The Linux Foundation
1+
// Copyright 2016-2022 The Linux Foundation
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -30,6 +30,9 @@ type Manifest struct {
3030
// Layers is an indexed list of layers referenced by the manifest.
3131
Layers []Descriptor `json:"layers"`
3232

33+
// Refers is an optional link to any existing manifest within the repository.
34+
Refers *Descriptor `json:"refers,omitempty"`
35+
3336
// Annotations contains arbitrary metadata for the image manifest.
3437
Annotations map[string]string `json:"annotations,omitempty"`
3538
}

0 commit comments

Comments
 (0)