Documentation ¶
Index ¶
- func GetBlobURI(ref reference.Named, digest digest.Digest) string
- func GetDigestManifestURI(ref reference.Canonical) string
- func GetManifestURI(ref reference.Canonical) string
- func GetTagManifestURI(ref reference.NamedTagged) string
- func GetTokenURI(ref reference.Named) string
- func ReferenceToProjectName(ref reference.Reference) (string, error)
- type ErrNoProjectInReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlobURI ¶
GetBlobURI gets a blob URI based on the passed repository and digest.
func GetDigestManifestURI ¶
GetDigestManifestURI gets a manifest URI based on the passed repository and tag.
func GetManifestURI ¶
GetManifestURI gets a manifest URI based on the passed repository and digest.
func GetTagManifestURI ¶
func GetTagManifestURI(ref reference.NamedTagged) string
GetTagManifestURI gets a manifest URI based on the passed repository and tag.
func GetTokenURI ¶
GetTokenURI gets the token URI for the passed repository.
func ReferenceToProjectName ¶
ReferenceToProjectName returns what should be the GCR project name for an image reference.
For example, if an image is in the project "my-cool-project" the image path should start with `gcr.io/my-cool-project`.
Types ¶
type ErrNoProjectInReference ¶
type ErrNoProjectInReference struct {
// contains filtered or unexported fields
}
func (*ErrNoProjectInReference) Error ¶
func (err *ErrNoProjectInReference) Error() string
Click to show internal directories.
Click to hide internal directories.