MCPcopy Index your code
hub / github.com/docker/cli / getImportContentType

Function getImportContentType

cli/context/store/store.go:344–351  ·  view source on GitHub ↗
(r *bufio.Reader)

Source from the content-addressed store, hash-verified

342)
343
344func getImportContentType(r *bufio.Reader) (string, error) {
345 head, err := r.Peek(512)
346 if err != nil && err != io.EOF {
347 return "", err
348 }
349
350 return http.DetectContentType(head), nil
351}
352
353// Import imports an exported context into a store
354func Import(name string, s Writer, reader io.Reader) error {

Callers 3

ImportFunction · 0.85
TestImportZipFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestImportZipFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…