idresolver

package
v27.3.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 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(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.

Jump to

Keyboard shortcuts

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