idresolver

package
v0.0.0-...-c7aab3e Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 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