|
@@ -3,7 +3,6 @@ package registry // import "github.com/docker/docker/registry"
|
|
|
|
|
|
import (
|
|
import (
|
|
"crypto/tls"
|
|
"crypto/tls"
|
|
- "errors"
|
|
|
|
"fmt"
|
|
"fmt"
|
|
"net"
|
|
"net"
|
|
"net/http"
|
|
"net/http"
|
|
@@ -17,12 +16,6 @@ import (
|
|
"github.com/sirupsen/logrus"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
)
|
|
|
|
|
|
-var (
|
|
|
|
- // ErrAlreadyExists is an error returned if an image being pushed
|
|
|
|
- // already exists on the remote side
|
|
|
|
- ErrAlreadyExists = errors.New("Image already exists")
|
|
|
|
-)
|
|
|
|
-
|
|
|
|
// HostCertsDir returns the config directory for a specific host
|
|
// HostCertsDir returns the config directory for a specific host
|
|
func HostCertsDir(hostname string) (string, error) {
|
|
func HostCertsDir(hostname string) (string, error) {
|
|
certsDir := CertsDir()
|
|
certsDir := CertsDir()
|