Movatterモバイル変換


[0]ホーム

URL:


mount

package
v1.52.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2025 License:Apache-2.0Imports:1Imported by:20

Details

Repository

github.com/moby/moby

Links

Documentation

Index

Constants

This section is empty.

Variables

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")

typeDriver

type Driver struct {Namestring            `json:",omitempty"`Options map[string]string `json:",omitempty"`}

Driver represents a volume driver.

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

typeVolumeOptions

type VolumeOptions struct {NoCopybool              `json:",omitempty"`Labels       map[string]string `json:",omitempty"`Subpathstring            `json:",omitempty"`DriverConfig *Driver           `json:",omitempty"`}

VolumeOptions represents the options for a mount of type volume.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp