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

Method GetTLSData

cli/context/store/store.go:202–204  ·  view source on GitHub ↗

GetTLSData reads, and returns the content of the given fileName for an endpoint. It returns an errdefs.ErrNotFound if the file was not found.

(contextName, endpointName, fileName string)

Source from the content-addressed store, hash-verified

200// GetTLSData reads, and returns the content of the given fileName for an endpoint.
201// It returns an errdefs.ErrNotFound if the file was not found.
202func (s *ContextStore) GetTLSData(contextName, endpointName, fileName string) ([]byte, error) {
203 return s.tls.getData(contextName, endpointName, fileName)
204}
205
206// GetStorageInfo returns the paths where the Metadata and TLS data are stored
207// for the context.

Callers

nothing calls this directly

Calls 1

getDataMethod · 0.80

Tested by

no test coverage detected