oci

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArtifactType

func GetArtifactType(ctx context.Context, image, version string, opts ...crane.Option) (string, error)

GetArtifactType returns the artifact/media type for the given image:tag by parsing the manifest. Preference order: manifest.artifactType (OCI 1.1 artifacts), then config.mediaType, then manifest.mediaType.

func GetImageAnnotations

func GetImageAnnotations(ctx context.Context, image, version string, opts ...crane.Option) (map[string]string, error)

GetImageAnnotations returns the annotations for a given image.

func ListRepositoryTags

func ListRepositoryTags(ctx context.Context, image string, opts ...crane.Option) ([]string, error)

ListRepositoryTags returns all available tags from a Docker repository

Types

type File

type File struct {
	Name    string
	Content []byte
}

func GetImageContents

func GetImageContents(ctx context.Context, image, version string, opts ...crane.Option) ([]File, error)

Jump to

Keyboard shortcuts

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