mirror of
https://github.com/containers/skopeo.git
synced 2025-08-10 02:48:12 +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}
|
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.
|
// (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.
|
// May be "" if unknown.
|
||||||
func (s *dirImageSource) GetIntendedDockerReference() string {
|
func (s *dirImageSource) IntendedDockerReference() string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,11 +35,11 @@ func NewDockerImage(img, certPath string, tlsVerify bool) (types.Image, error) {
|
|||||||
return &dockerImage{src: s}, nil
|
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.
|
// (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.
|
// May be "" if unknown.
|
||||||
func (i *dockerImage) GetIntendedDockerReference() string {
|
func (i *dockerImage) IntendedDockerReference() string {
|
||||||
return i.src.GetIntendedDockerReference()
|
return i.src.IntendedDockerReference()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Manifest is like ImageSource.GetManifest, but the result is cached; it is OK to call this however often you need.
|
// 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)
|
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.
|
// (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.
|
// May be "" if unknown.
|
||||||
func (s *dockerImageSource) GetIntendedDockerReference() string {
|
func (s *dockerImageSource) IntendedDockerReference() string {
|
||||||
return fmt.Sprintf("%s:%s", s.ref.Name(), s.tag)
|
return fmt.Sprintf("%s:%s", s.ref.Name(), s.tag)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -186,10 +186,10 @@ func NewOpenshiftImageSource(imageName, certPath string, tlsVerify bool) (types.
|
|||||||
}, nil
|
}, 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.
|
// (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.
|
// May be "" if unknown.
|
||||||
func (s *openshiftImageSource) GetIntendedDockerReference() string {
|
func (s *openshiftImageSource) IntendedDockerReference() string {
|
||||||
return s.client.canonicalDockerReference()
|
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.
|
// ImageSource is a service, possibly remote (= slow), to download components of a single image.
|
||||||
type ImageSource interface {
|
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.
|
// (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.
|
// May be "" if unknown.
|
||||||
GetIntendedDockerReference() string
|
IntendedDockerReference() string
|
||||||
// GetManifest returns the image's manifest. It may use a remote (= slow) service.
|
// GetManifest returns the image's manifest. It may use a remote (= slow) service.
|
||||||
GetManifest() (manifest []byte, unverifiedCanonicalDigest string, err error)
|
GetManifest() (manifest []byte, unverifiedCanonicalDigest string, err error)
|
||||||
GetLayer(digest string) (io.ReadCloser, error)
|
GetLayer(digest string) (io.ReadCloser, error)
|
||||||
@ -53,10 +53,10 @@ type ImageDestination interface {
|
|||||||
// Image is a Docker image in a repository.
|
// Image is a Docker image in a repository.
|
||||||
type Image interface {
|
type Image interface {
|
||||||
// ref to repository?
|
// 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.
|
// (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.
|
// 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 is like ImageSource.GetManifest, but the result is cached; it is OK to call this however often you need.
|
||||||
Manifest() ([]byte, error)
|
Manifest() ([]byte, error)
|
||||||
// Signatures is like ImageSource.GetSignatures, but the result is cached; it is OK to call this however often you need.
|
// 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