20 lines
373 B
Go
20 lines
373 B
Go
|
package client
|
||
|
|
||
|
import (
|
||
|
"github.com/docker/distribution/reference"
|
||
|
)
|
||
|
|
||
|
type Tag struct {
|
||
|
Layer string
|
||
|
Name string
|
||
|
}
|
||
|
|
||
|
type Tags []Tag
|
||
|
|
||
|
var registryURL = "https://registry.hub.docker.com/v1/repositories/%s/tags"
|
||
|
|
||
|
func ReadRegistryTags(image reference.Named, target interface{}) ([]string, error) {
|
||
|
// tagsUrl := fmt.Sprintf(registryURL, image.Name())
|
||
|
return nil, nil
|
||
|
}
|