Use Id.Get(), remove unused function

This commit is contained in:
WestleyR
2021-09-07 21:26:20 -07:00
parent 85f5f335c5
commit fdf6fc88fa
2 changed files with 15 additions and 26 deletions

View File

@@ -66,17 +66,6 @@ func NewPuller(opts ...pullerOpt) (*puller, error) {
return p, nil
}
// stripScheme prepares the docker uri for external library parsing and returns an error
// if it detects a malformed schema
//nolint:deadcode,unused
func stripScheme(uri string) (string, error) {
if !strings.HasPrefix(uri, "docker://") {
return "", fmt.Errorf("unsupported uri schema: %q", uri)
}
return strings.TrimPrefix(uri, "docker:"), nil
}
// getReference parsed the uri scheme to determine
func getReference(uri string) (types.ImageReference, error) {
s := strings.SplitN(uri, ":", 2)