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

Function volumes

cli/compose/loader/full-struct_test.go:433–506  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431}
432
433func volumes() map[string]types.VolumeConfig {
434 return map[string]types.VolumeConfig{
435 "some-volume": {},
436 "other-volume": {
437 Driver: "flocker",
438 DriverOpts: map[string]string{
439 "foo": "bar",
440 "baz": "1",
441 },
442 Labels: map[string]string{
443 "foo": "bar",
444 },
445 },
446 "another-volume": {
447 Name: "user_specified_name",
448 Driver: "vsphere",
449 DriverOpts: map[string]string{
450 "foo": "bar",
451 "baz": "1",
452 },
453 },
454 "external-volume": {
455 Name: "external-volume",
456 External: types.External{External: true},
457 },
458 "other-external-volume": {
459 Name: "my-cool-volume",
460 External: types.External{External: true},
461 },
462 "external-volume3": {
463 Name: "this-is-volume3",
464 External: types.External{External: true},
465 Extras: map[string]any{
466 "x-bar": "baz",
467 "x-foo": "bar",
468 },
469 },
470 "cluster-volume": {
471 Driver: "my-csi-driver",
472 Spec: &types.ClusterVolumeSpec{
473 Group: "mygroup",
474 AccessMode: &types.AccessMode{
475 Scope: "single",
476 Sharing: "none",
477 BlockVolume: &types.BlockVolume{},
478 },
479 AccessibilityRequirements: &types.TopologyRequirement{
480 Requisite: []types.Topology{
481 {
482 Segments: types.Mapping{"region": "R1", "zone": "Z1"},
483 },
484 {
485 Segments: types.Mapping{"region": "R1", "zone": "Z2"},
486 },
487 },
488 Preferred: []types.Topology{
489 {
490 Segments: types.Mapping{"region": "R1", "zone": "Z1"},

Callers 1

fullExampleConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…