images

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ImageRef = cmdutil.ResourceRef[image.DetailSummary, image.Summary]{
	Singular:         "image",
	Plural:           "images",
	IDHint:           "the image ID",
	ListCmd:          "arcane images list",
	GetPath:          types.Image,
	ListPath:         types.Images,
	SearchCandidates: searchImageCandidatesInternal,
	Matches:          imageMatches,
	Label: func(match image.Summary) string {
		label := match.ID
		if len(match.RepoTags) > 0 {
			label = match.RepoTags[0]
		} else if match.Repo != "" && match.Tag != "" {
			label = match.Repo + ":" + match.Tag
		}
		return fmt.Sprintf("%s (%s)", label, match.ID)
	},
	Promote: func(match image.Summary) *image.DetailSummary {
		return &image.DetailSummary{
			ID:               match.ID,
			RepoTags:         match.RepoTags,
			RepoDigests:      match.RepoDigests,
			PinnedReferences: match.PinnedReferences,
			Size:             match.Size,
		}
	},
	IDOf: func(match image.Summary) string { return match.ID },
	Validate: func(details image.DetailSummary, identifier string) error {
		if details.ID == "" {
			return fmt.Errorf("image lookup for %q returned empty ID", identifier)
		}
		return nil
	},
}
View Source
var ImagesCmd = &cobra.Command{
	Use:     "images",
	Aliases: []string{"image", "i"},
	Short:   "Manage images",
}

ImagesCmd is the parent command for image operations

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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