resolver

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCombinedResolver

func NewCombinedResolver(clientConfig *rest.Config, httpClient *http.Client) (resolver.SchemaResolver, error)

NewCombinedResolver creates a new schema resolver that can resolve both core and client types.

Types

type TTLCachedSchemaResolver

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

TTLCachedSchemaResolver caches schemas with LRU eviction and time-based expiration

func NewTTLCachedSchemaResolver

func NewTTLCachedSchemaResolver(
	delegate resolver.SchemaResolver,
	maxSize int,
	ttl time.Duration,
) *TTLCachedSchemaResolver

NewTTLCachedSchemaResolver creates a new TTLCachedSchemaResolver with LRU+TTL caching

func (*TTLCachedSchemaResolver) ResolveSchema

func (c *TTLCachedSchemaResolver) ResolveSchema(gvk schema.GroupVersionKind) (*spec.Schema, error)

ResolveSchema resolves the schema for the given GroupVersionKind, using the cache if possible. If multiple concurrent requests for the same GVK are made, they will be deduplicated.

Jump to

Keyboard shortcuts

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