manifest.go 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2016 The Linux Foundation
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package v1
  15. import "github.com/opencontainers/image-spec/specs-go"
  16. // Manifest provides `application/vnd.oci.image.manifest.v1+json` mediatype structure when marshalled to JSON.
  17. type Manifest struct {
  18. specs.Versioned
  19. // Config references a configuration object for a container, by digest.
  20. // The referenced configuration object is a JSON blob that the runtime uses to set up the container.
  21. Config Descriptor `json:"config"`
  22. // Layers is an indexed list of layers referenced by the manifest.
  23. Layers []Descriptor `json:"layers"`
  24. // Annotations contains arbitrary metadata for the image manifest.
  25. Annotations map[string]string `json:"annotations,omitempty"`
  26. }