mirror of
https://github.com/containers/skopeo.git
synced 2025-10-22 19:50:00 +00:00
Add CanonicalDockerReference to ImageDestination
This is necessary to resolve the canonical form of a reference for signing it.
This commit is contained in:
@@ -268,6 +268,10 @@ func NewOpenshiftImageDestination(imageName, certPath string, tlsVerify bool) (t
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (d *openshiftImageDestination) CanonicalDockerReference() (string, error) {
|
||||
return fmt.Sprintf("%s/%s/%s:%s", d.client.baseURL.Host, d.client.namespace, d.client.stream, d.client.tag), nil
|
||||
}
|
||||
|
||||
func (d *openshiftImageDestination) PutManifest(manifest []byte) error {
|
||||
// Note: This does absolutely no kind/version checking or conversions.
|
||||
manifestDigest, err := dockerutils.ManifestDigest(manifest)
|
||||
|
||||
Reference in New Issue
Block a user