uri

package
v2.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlobURI

func GetBlobURI(ref reference.Named, digest digest.Digest) string

GetBlobURI gets a blob URI based on the passed repository and digest.

func GetDigestManifestURI

func GetDigestManifestURI(ref reference.Canonical) string

GetDigestManifestURI gets a manifest URI based on the passed repository and tag.

func GetManifestURI

func GetManifestURI(ref reference.Canonical) string

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

func GetTokenURI(ref reference.Named) string

GetTokenURI gets the token URI for the passed repository.

func ReferenceToProjectName

func ReferenceToProjectName(ref reference.Reference) (string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL