MCPcopy
hub / github.com/helm/helm / NewMemory

Function NewMemory

pkg/storage/driver/memory.go:52–56  ·  view source on GitHub ↗

NewMemory initializes a new memory driver.

()

Source from the content-addressed store, hash-verified

50
51// NewMemory initializes a new memory driver.
52func NewMemory() *Memory {
53 m := &Memory{cache: map[string]memReleases{}, namespace: "default"}
54 m.SetLogger(slog.Default().Handler())
55 return m
56}
57
58// SetNamespace sets a specific namespace in which releases will be accessed.
59// An empty string indicates all namespaces (for the list operation)

Callers 15

InitFunction · 0.92
TestStorageCreateFunction · 0.92
TestStorageUpdateFunction · 0.92
TestStorageDeleteFunction · 0.92
TestStorageListFunction · 0.92
TestStorageDeployedFunction · 0.92
TestStorageHistoryFunction · 0.92
TestStorageLastFunction · 0.92

Calls 1

SetLoggerMethod · 0.65

Tested by 15

TestStorageCreateFunction · 0.74
TestStorageUpdateFunction · 0.74
TestStorageDeleteFunction · 0.74
TestStorageListFunction · 0.74
TestStorageDeployedFunction · 0.74
TestStorageHistoryFunction · 0.74
TestStorageLastFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…