mirror of
https://github.com/containers/skopeo.git
synced 2025-08-01 06:55:43 +00:00
Rename GetIndendedDockerReference to IntendedDockerReference
This commit is contained in:
parent
119609b871
commit
c38ed76969
@ -77,10 +77,10 @@ func NewDirImageSource(dir string) types.ImageSource {
|
||||
return &dirImageSource{dir}
|
||||
}
|
||||
|
||||
// GetIntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_
|
||||
// IntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_
|
||||
// (not as the image itself, or its underlying storage, claims). This can be used e.g. to determine which public keys are trusted for this image.
|
||||
// May be "" if unknown.
|
||||
func (s *dirImageSource) GetIntendedDockerReference() string {
|
||||
func (s *dirImageSource) IntendedDockerReference() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
|
@ -35,11 +35,11 @@ func NewDockerImage(img, certPath string, tlsVerify bool) (types.Image, error) {
|
||||
return &dockerImage{src: s}, nil
|
||||
}
|
||||
|
||||
// GetIntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_
|
||||
// IntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_
|
||||
// (not as the image itself, or its underlying storage, claims). This can be used e.g. to determine which public keys are trusted for this image.
|
||||
// May be "" if unknown.
|
||||
func (i *dockerImage) GetIntendedDockerReference() string {
|
||||
return i.src.GetIntendedDockerReference()
|
||||
func (i *dockerImage) IntendedDockerReference() string {
|
||||
return i.src.IntendedDockerReference()
|
||||
}
|
||||
|
||||
// Manifest is like ImageSource.GetManifest, but the result is cached; it is OK to call this however often you need.
|
||||
|
@ -48,10 +48,10 @@ func NewDockerImageSource(img, certPath string, tlsVerify bool) (types.ImageSour
|
||||
return newDockerImageSource(img, certPath, tlsVerify)
|
||||
}
|
||||
|
||||
// GetIntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_
|
||||
// IntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_
|
||||
// (not as the image itself, or its underlying storage, claims). This can be used e.g. to determine which public keys are trusted for this image.
|
||||
// May be "" if unknown.
|
||||
func (s *dockerImageSource) GetIntendedDockerReference() string {
|
||||
func (s *dockerImageSource) IntendedDockerReference() string {
|
||||
return fmt.Sprintf("%s:%s", s.ref.Name(), s.tag)
|
||||
}
|
||||
|
||||
|
@ -186,10 +186,10 @@ func NewOpenshiftImageSource(imageName, certPath string, tlsVerify bool) (types.
|
||||
}, nil
|
||||
}
|
||||
|
||||
// GetIntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_
|
||||
// IntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_
|
||||
// (not as the image itself, or its underlying storage, claims). This can be used e.g. to determine which public keys are trusted for this image.
|
||||
// May be "" if unknown.
|
||||
func (s *openshiftImageSource) GetIntendedDockerReference() string {
|
||||
func (s *openshiftImageSource) IntendedDockerReference() string {
|
||||
return s.client.canonicalDockerReference()
|
||||
}
|
||||
|
||||
|
@ -30,10 +30,10 @@ type Repository interface {
|
||||
|
||||
// ImageSource is a service, possibly remote (= slow), to download components of a single image.
|
||||
type ImageSource interface {
|
||||
// GetIntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_
|
||||
// IntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_
|
||||
// (not as the image itself, or its underlying storage, claims). This can be used e.g. to determine which public keys are trusted for this image.
|
||||
// May be "" if unknown.
|
||||
GetIntendedDockerReference() string
|
||||
IntendedDockerReference() string
|
||||
// GetManifest returns the image's manifest. It may use a remote (= slow) service.
|
||||
GetManifest() (manifest []byte, unverifiedCanonicalDigest string, err error)
|
||||
GetLayer(digest string) (io.ReadCloser, error)
|
||||
@ -53,10 +53,10 @@ type ImageDestination interface {
|
||||
// Image is a Docker image in a repository.
|
||||
type Image interface {
|
||||
// ref to repository?
|
||||
// GetIntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_
|
||||
// IntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_
|
||||
// (not as the image itself, or its underlying storage, claims). This can be used e.g. to determine which public keys are trusted for this image.
|
||||
// May be "" if unknown.
|
||||
GetIntendedDockerReference() string
|
||||
IntendedDockerReference() string
|
||||
// Manifest is like ImageSource.GetManifest, but the result is cached; it is OK to call this however often you need.
|
||||
Manifest() ([]byte, error)
|
||||
// Signatures is like ImageSource.GetSignatures, but the result is cached; it is OK to call this however often you need.
|
||||
|
Loading…
Reference in New Issue
Block a user