Add an alias in the pkg/plugins package. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@@ -26,6 +26,9 @@ const (
dummyHost = "plugin.moby.localhost"
)
+// VersionMimetype is the Content-Type the engine sends to plugins.
+const VersionMimetype = transport.VersionMimetype
+
func newTransport(addr string, tlsConfig *tlsconfig.Options) (*transport.HTTPTransport, error) {
tr := &http.Transport{}
@@ -1,4 +1,6 @@
package transport // import "github.com/docker/docker/pkg/plugins/transport"
// VersionMimetype is the Content-Type the engine sends to plugins.
+//
+// For convenience, there is an alias in [github.com/docker/docker/pkg/plugins.VersionMimetype].
const VersionMimetype = "application/vnd.docker.plugins.v1.2+json"