oci

package
v0.0.0-...-69f2995 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseImageName

func ParseImageName(imgName string, transportType string) (types.ImageReference, error)

ParseImageName converts a URL-like image name to a types.ImageReference.

func PullImage

func PullImage(imagesDir string, image string) ([]byte, error)

func UnpackImage

func UnpackImage(imagesDir string, containersDir string, containerName string, imageName string, imageTag string) error

Types

type Manifest

type Manifest struct {
	Name        string
	MediaType   string              `json:"mediaType"`
	Digest      string              `json:"digest"`
	Size        int                 `json:"size"`
	Annotations ManifestAnnotations `json:"annotations"`
}

func ListManifests

func ListManifests(imagesDir string) []Manifest

type ManifestAnnotations

type ManifestAnnotations struct {
	Tag string `json:"org.opencontainers.image.ref.name"`
}

type ManifestConfig

type ManifestConfig struct {
	SchemaVersion int        `json:"schemaVersion"`
	Manifests     []Manifest `json:"manifests"`
}

Jump to

Keyboard shortcuts

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