Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceVolumeBind ¶
type ServiceVolumeBind struct {
Propagation string `yaml:",omitempty"`
}
type ServiceVolumeConfig ¶
type ServiceVolumeConfig struct { Type string `yaml:",omitempty"` Source string `yaml:",omitempty"` Target string `yaml:",omitempty"` ReadOnly bool `mapstructure:"read_only" yaml:"read_only,omitempty"` Consistency string `yaml:",omitempty"` Bind *ServiceVolumeBind `yaml:",omitempty"` Volume *ServiceVolumeVolume `yaml:",omitempty"` Tmpfs *ServiceVolumeTmpfs `yaml:",omitempty"` }
func ParseVolume ¶
func ParseVolume(spec string) (ServiceVolumeConfig, error)
ParseVolume parses a volume spec without any knowledge of the target platform
type ServiceVolumeTmpfs ¶
type ServiceVolumeTmpfs struct {
Size int64 `yaml:",omitempty"`
}
ServiceVolumeTmpfs are options for a service volume of type tmpfs
type ServiceVolumeVolume ¶
type ServiceVolumeVolume struct {
NoCopy bool `mapstructure:"nocopy" yaml:"nocopy,omitempty"`
}
ServiceVolumeVolume are options for a service volume of type volume
Click to show internal directories.
Click to hide internal directories.