package images

import "github.com/containerd/containerd/cmd/ctr/commands/images"

Index

Variables

var Command = cli.Command{
	Name:    "images",
	Aliases: []string{"image", "i"},
	Usage:   "manage images",
	Subcommands: cli.Commands{
		checkCommand,
		exportCommand,
		importCommand,
		listCommand,
		pullCommand,
		pushCommand,
		removeCommand,
		tagCommand,
		setLabelsCommand,
		encryptCommand,
		decryptCommand,
		layerinfoCommand,
	},
}

Command is the cli command for managing images

Functions

func CreateDecryptCryptoConfig

func CreateDecryptCryptoConfig(context *cli.Context, descs []ocispec.Descriptor) (encconfig.CryptoConfig, error)

CreateDecryptCryptoConfig creates the CryptoConfig object that contains the necessary information to perform decryption from command line options and possibly LayerInfos describing the image and helping us to query for the PGP decryption keys

Types

type LayerInfo

type LayerInfo struct {
	// The Number of this layer in the sequence; starting at 0
	Index      uint32
	Descriptor ocispec.Descriptor
}

LayerInfo holds information about an image layer

Source Files

crypt_utils.go decrypt.go encrypt.go export.go images.go import.go layerinfo.go pull.go push.go tag.go

Version
v1.3.0-beta.1
Published
Aug 9, 2019
Platform
js/wasm
Imports
31 packages
Last checked
5 minutes ago

Tools for package owners.