MCPcopy Create free account
hub / github.com/docker/cli / GetStorageInfo

Method GetStorageInfo

cli/context/store/store.go:208–213  ·  view source on GitHub ↗

GetStorageInfo returns the paths where the Metadata and TLS data are stored for the context.

(contextName string)

Source from the content-addressed store, hash-verified

206// GetStorageInfo returns the paths where the Metadata and TLS data are stored
207// for the context.
208func (s *ContextStore) GetStorageInfo(contextName string) StorageInfo {
209 return StorageInfo{
210 MetadataPath: s.meta.contextDir(contextdirOf(contextName)),
211 TLSPath: s.tls.contextDir(contextName),
212 }
213}
214
215// ValidateContextName checks a context name is valid.
216func ValidateContextName(name string) error {

Callers

nothing calls this directly

Calls 2

contextdirOfFunction · 0.85
contextDirMethod · 0.45

Tested by

no test coverage detected