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.
Click to show internal directories.
Click to hide internal directories.