types.go 678 B

12345678910111213141516171819
  1. // +build experimental
  2. package distribution
  3. import "errors"
  4. // ErrUnsupportedRegistry indicates that the registry does not support v2 protocol
  5. var ErrUnsupportedRegistry = errors.New("only V2 repositories are supported for plugin distribution")
  6. // ErrUnsupportedMediaType indicates we are pulling content that's not a plugin
  7. var ErrUnsupportedMediaType = errors.New("content is not a plugin")
  8. // Plugin related media types
  9. const (
  10. MediaTypeManifest = "application/vnd.docker.distribution.manifest.v2+json"
  11. MediaTypeConfig = "application/vnd.docker.plugin.v0+json"
  12. MediaTypeLayer = "application/vnd.docker.image.rootfs.diff.tar.gzip"
  13. DefaultTag = "latest"
  14. )