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(client client.APIClient, noResolve bool) *IDResolver

New creates a new IDResolver.

func (*IDResolver) Resolve

func (r *IDResolver) Resolve(ctx context.Context, t interface{}, 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
v24.0.1+incompatible
Published
May 19, 2023
Platform
windows/amd64
Imports
5 packages
Last checked
5 seconds ago

Tools for package owners.