ociutils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRegistryMatch

func CheckRegistryMatch(a, b string) error

func ExtractPathFromManifest

func ExtractPathFromManifest(mf *v1.Manifest) (path string, isArchive bool, err error)

ExtractPathFromManifest returns the path information and whether the artifact contains an archive. The information is expected to be stored in the Manifest's annotations.

func IsDigest

func IsDigest(imageOrTag string) bool

IsDigest returns if the image is identified by a digest.

func ParseManifestJSON

func ParseManifestJSON(data io.Reader) (*v1.Manifest, error)

ParseManifestJSON return the v1.manifest that is yielded by the reader.

func ParseOciImageString

func ParseOciImageString(r string) (repoName string, tag string, isDigest bool, err error)

ParseOciImageString splits the image string into the repo, tag and indicates if it is an image that is identified by a digest.

func ParseOciUrl

func ParseOciUrl(rawURL string) (*url.URL, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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