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