mount
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
var Propagations = []Propagation{PropagationRPrivate,PropagationPrivate,PropagationRShared,PropagationShared,PropagationRSlave,PropagationSlave,}
Propagations is the list of all valid mount propagations
Functions¶
This section is empty.
Types¶
typeBindOptions¶
type BindOptions struct {PropagationPropagation `json:",omitempty"`NonRecursivebool `json:",omitempty"`CreateMountpointbool `json:",omitempty"`// ReadOnlyNonRecursive makes the mount non-recursively read-only, but still leaves the mount recursive// (unless NonRecursive is set to true in conjunction).ReadOnlyNonRecursivebool `json:",omitempty"`// ReadOnlyForceRecursive raises an error if the mount cannot be made recursively read-only.ReadOnlyForceRecursivebool `json:",omitempty"`}BindOptions defines options specific to mounts of type "bind".
typeClusterOptions¶
type ClusterOptions struct {}ClusterOptions specifies options for a Cluster volume.
typeConsistency¶
type Consistencystring
Consistency represents the consistency requirements of a mount.
const (// ConsistencyFull guarantees bind mount-like consistencyConsistencyFullConsistency = "consistent"// ConsistencyCached mounts can cache read data and FS structureConsistencyCachedConsistency = "cached"// ConsistencyDelegated mounts can cache read and written data and structureConsistencyDelegatedConsistency = "delegated"// ConsistencyDefault provides "consistent" behavior unless overriddenConsistencyDefaultConsistency = "default")
typeImageOptions¶
type ImageOptions struct {Subpathstring `json:",omitempty"`}typeMount¶
type Mount struct {TypeType `json:",omitempty"`// Source specifies the name of the mount. Depending on mount type, this// may be a volume name or a host path, or even ignored.// Source is not supported for tmpfs (must be an empty value)Sourcestring `json:",omitempty"`Targetstring `json:",omitempty"`ReadOnlybool `json:",omitempty"`// attempts recursive read-only if possibleConsistencyConsistency `json:",omitempty"`BindOptions *BindOptions `json:",omitempty"`VolumeOptions *VolumeOptions `json:",omitempty"`ImageOptions *ImageOptions `json:",omitempty"`TmpfsOptions *TmpfsOptions `json:",omitempty"`ClusterOptions *ClusterOptions `json:",omitempty"`}Mount represents a mount (volume).
typePropagation¶
type Propagationstring
Propagation represents the propagation of a mount.
const (// PropagationRPrivate RPRIVATEPropagationRPrivatePropagation = "rprivate"// PropagationPrivate PRIVATEPropagationPrivatePropagation = "private"// PropagationRShared RSHAREDPropagationRSharedPropagation = "rshared"// PropagationShared SHAREDPropagationSharedPropagation = "shared"// PropagationRSlave RSLAVEPropagationRSlavePropagation = "rslave"// PropagationSlave SLAVEPropagationSlavePropagation = "slave")
typeTmpfsOptions¶
type TmpfsOptions struct {// Size sets the size of the tmpfs, in bytes.//// This will be converted to an operating system specific value// depending on the host. For example, on linux, it will be converted to// use a 'k', 'm' or 'g' syntax. BSD, though not widely supported with// docker, uses a straight byte value.//// Percentages are not supported.SizeBytesint64 `json:",omitempty"`// Mode of the tmpfs upon creationModeos.FileMode `json:",omitempty"`// Options to be passed to the tmpfs mount. An array of arrays. Flag// options should be provided as 1-length arrays. Other types should be// provided as 2-length arrays, where the first item is the key and the// second the value.Options [][]string `json:",omitempty"`}TmpfsOptions defines options specific to mounts of type "tmpfs".
typeType¶
type Typestring
Type represents the type of a mount.
const (// TypeBind is the type for mounting host dirTypeBindType = "bind"// TypeVolume is the type for remote storage volumesTypeVolumeType = "volume"// TypeTmpfs is the type for mounting tmpfsTypeTmpfsType = "tmpfs"// TypeNamedPipe is the type for mounting Windows named pipesTypeNamedPipeType = "npipe"// TypeCluster is the type for Swarm Cluster Volumes.TypeClusterType = "cluster"// TypeImage is the type for mounting another image's filesystemTypeImageType = "image")
Type constants