MCPcopy Index your code
hub / github.com/devspace-sh/devspace / NewCache

Function NewCache

pkg/devspace/config/remotecache/loader.go:28–37  ·  view source on GitHub ↗

NewCache generates a new generated config

(configName, secretName string)

Source from the content-addressed store, hash-verified

26
27// NewCache generates a new generated config
28func NewCache(configName, secretName string) *RemoteCache {
29 return &RemoteCache{
30 Vars: make(map[string]string),
31 Deployments: []DeploymentCache{},
32 DevPods: []DevPodCache{},
33 Data: make(map[string]string),
34 secretName: secretName,
35 configName: configName,
36 }
37}
38
39// NewCacheFromSecret loads the cache from secret
40func NewCacheFromSecret(ctx context.Context, client kubectl.Client, secretName string) (*RemoteCache, error) {

Callers 6

TestRenderFunction · 0.92
TestDeployFunction · 0.92
TestPurgeFunction · 0.92
TestDeployFunction · 0.92
NewCacheFromSecretFunction · 0.85
LoadMethod · 0.85

Calls

no outgoing calls

Tested by 4

TestRenderFunction · 0.74
TestDeployFunction · 0.74
TestPurgeFunction · 0.74
TestDeployFunction · 0.74