Documentation
¶
Overview ¶
Package imageref contains shared image-reference parsing operations.
Index ¶
- Constants
- func IsUpdateCheckDisabled(labels map[string]string) bool
- func ParseUpdateLookup(imageRef string) (originalRef, tag string, repositoryCandidates map[string]struct{}, ok bool)
- func PullAsTag(ctx context.Context, dockerClient *client.Client, pulled, selected string, ...) error
- func UpdatePolicyKey(imageRef string, labels map[string]string) string
Constants ¶
const ( // UpdateCheckLabel opts a container or service out of update checks and // notifications. Automatic installation is governed separately by the // updater label and the UI exclusion list. UpdateCheckLabel = "com.getarcaneapp.arcane.update-check" // LocalBuildRegistry is Arcane's reserved registry host for locally built image tags. LocalBuildRegistry = "arcane.local" )
Variables ¶
This section is empty.
Functions ¶
func IsUpdateCheckDisabled ¶ added in v2.14.0
IsUpdateCheckDisabled reports whether labels opt the resource out of update monitoring. Checks stay enabled unless the value parses as false.
func ParseUpdateLookup ¶
func ParseUpdateLookup(imageRef string) (originalRef, tag string, repositoryCandidates map[string]struct{}, ok bool)
ParseUpdateLookup normalizes an image reference into the repository and tag candidates used to match persisted update records.
func PullAsTag ¶ added in v2.16.1
func PullAsTag(ctx context.Context, dockerClient *client.Client, pulled, selected string, pull func(context.Context) error) error
PullAsTag runs pull for the immutable pulled reference, tags it as selected, and verifies the tag resolves to the pulled image. Both must name the same repository. A digest name the pull added to RepoTags (containerd image store) is removed so only the selected tag remains.
func UpdatePolicyKey ¶ added in v2.11.0
UpdatePolicyKey identifies the configured reference, selection policy, and monitoring eligibility a stored check result belongs to. Automatic installation eligibility is deliberately not part of the key.
Types ¶
This section is empty.