Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ImageRef = cmdutil.ResourceRef[image.DetailSummary, image.Summary]{ EnvironmentScoped: true, Singular: "image", Plural: "images", IDHint: "the image ID", ListCmd: "arcane images list", GetPath: types.Image, ListPath: types.Images, SearchCandidates: searchImageCandidates, Matches: imageMatches, Label: func(match image.Summary) string { label := match.ID switch { case len(match.RepoTags) > 0: label = match.RepoTags[0] case 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 }, IdentifierOf: func(details image.DetailSummary) string { return details.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 }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.