idresolver

package
v1.13.2-0...-c0b64be Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

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