mirror of
https://github.com/containers/skopeo.git
synced 2025-08-10 10:52:30 +00:00
remove dead code
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
be0a455d5b
commit
bc6779a189
@ -4,7 +4,6 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
@ -211,11 +210,6 @@ func newManifestFetcher(endpoint registry.APIEndpoint, repoInfo *registry.Reposi
|
|||||||
return nil, fmt.Errorf("unknown version %d for registry %s", endpoint.Version, endpoint.URL)
|
return nil, fmt.Errorf("unknown version %d for registry %s", endpoint.Version, endpoint.URL)
|
||||||
}
|
}
|
||||||
|
|
||||||
func isDockerAvailable() bool {
|
|
||||||
_, err := exec.LookPath("docker")
|
|
||||||
return err == nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func getAuthConfig(c *cli.Context, index *registryTypes.IndexInfo) (types.AuthConfig, error) {
|
func getAuthConfig(c *cli.Context, index *registryTypes.IndexInfo) (types.AuthConfig, error) {
|
||||||
var (
|
var (
|
||||||
username = c.GlobalString("username")
|
username = c.GlobalString("username")
|
||||||
|
Loading…
Reference in New Issue
Block a user