package idresolver

import "github.com/docker/cli/cli/command/idresolver"

Index

Types

type IDResolver

type IDResolver struct {
	// contains filtered or unexported fields
}

IDResolver provides ID to Name resolution.

func New

func New(apiClient client.APIClient, noResolve bool) *IDResolver

New creates a new IDResolver.

func (*IDResolver) Resolve

func (r *IDResolver) Resolve(ctx context.Context, t any, id string) (string, error)

Resolve will attempt to resolve an ID to a Name by querying the manager. Results are stored into a cache. If the `-n` flag is used in the command-line, resolution is disabled.

Source Files

idresolver.go

Version
v27.4.0-rc.1+incompatible
Published
Nov 14, 2024
Platform
linux/amd64
Imports
5 packages
Last checked
15 seconds ago

Tools for package owners.