MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / getVolume

Function getVolume

compose/compose.go:380–396  ·  view source on GitHub ↗
(vol string)

Source from the content-addressed store, hash-verified

378}
379
380func getVolume(vol string) volume {
381 s := strings.Split(vol, ":")
382 srcDir := s[0]
383 dstDir := s[1]
384 readOnly := len(s) > 2 && s[2] == "ro"
385 volType := "volume"
386 if isBindMount(srcDir) {
387 volType = "bind"
388 }
389 return volume{
390 Type: volType,
391 Source: srcDir,
392 Target: dstDir,
393 ReadOnly: readOnly,
394 }
395
396}
397
398func getJaeger(version int) service {
399 if version == 2 {

Callers 2

getZeroFunction · 0.85
getAlphaFunction · 0.85

Calls 1

isBindMountFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…