MCPcopy
hub / github.com/yannh/kubeconform / inMemory

Struct inMemory

pkg/cache/inmemory.go:11–14  ·  view source on GitHub ↗

SchemaCache is a cache for downloaded schemas, so each file is only retrieved once It is different from pkg/registry/http_cache.go in that: - This cache caches the parsed Schemas

Source from the content-addressed store, hash-verified

9// It is different from pkg/registry/http_cache.go in that:
10// - This cache caches the parsed Schemas
11type inMemory struct {
12 sync.RWMutex
13 schemas map[string]any
14}
15
16// New creates a new cache for downloaded schemas
17func NewInMemoryCache() Cache {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected