Documentation ¶
Overview ¶
Package mount is a generated protocol buffer package.
It is generated from these files:
pb/moby/mount/mount.proto
It has these top-level messages:
Mount BindOptions VolumeOptions Driver TmpfsOptions
Index ¶
- Variables
- type BindOptions
- type Driver
- type Mount
- func (m *Mount) DeepCopyChecked() (*Mount, []error)
- func (*Mount) Descriptor() ([]byte, []int)
- func (m *Mount) ExportIntoDockerApiType() (tgt mounttypes.Mount)
- func (m *Mount) GetBindOptions() *BindOptions
- func (m *Mount) GetConsistency() string
- func (m *Mount) GetReadOnly() bool
- func (m *Mount) GetSource() string
- func (m *Mount) GetTarget() string
- func (m *Mount) GetTmpfsOptions() *TmpfsOptions
- func (m *Mount) GetType() string
- func (m *Mount) GetVolumeOptions() *VolumeOptions
- func (*Mount) ProtoMessage()
- func (m *Mount) Reset()
- func (m *Mount) String() string
- type TmpfsOptions
- type VolumeOptions
- func (*VolumeOptions) Descriptor() ([]byte, []int)
- func (m *VolumeOptions) GetDriverConfig() *Driver
- func (m *VolumeOptions) GetLabels() map[string]string
- func (m *VolumeOptions) GetNoCopy() bool
- func (*VolumeOptions) ProtoMessage()
- func (m *VolumeOptions) Reset()
- func (m *VolumeOptions) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNilPointer = errors.New("found nil pointer")
)
Functions ¶
This section is empty.
Types ¶
type BindOptions ¶
type BindOptions struct { // Propagation Propagation `json",omitempty"` // Propagation represents the propagation of a mount. // type Propagation string Propagation string `protobuf:"bytes,1,opt,name=propagation,proto3" json:"propagation,omitempty"` }
BindOptions defines options specific to mounts of type "bind". type BindOptions struct
func (*BindOptions) Descriptor ¶
func (*BindOptions) Descriptor() ([]byte, []int)
func (*BindOptions) GetPropagation ¶
func (m *BindOptions) GetPropagation() string
func (*BindOptions) ProtoMessage ¶
func (*BindOptions) ProtoMessage()
func (*BindOptions) Reset ¶
func (m *BindOptions) Reset()
func (*BindOptions) String ¶
func (m *BindOptions) String() string
type Driver ¶
type Driver struct { // Name string `json:",omitempty"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Options map[string]string `json:",omitempty"` Options map[string]string `` /* 148-byte string literal not displayed */ }
Driver represents a volume driver. type Driver struct
func (*Driver) Descriptor ¶
func (*Driver) GetOptions ¶
func (*Driver) ProtoMessage ¶
func (*Driver) ProtoMessage()
type Mount ¶
type Mount struct { // Type Type `json:",omitempty"` Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,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) // Source string `json:",omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // Target string `json:",omitempty"` Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // ReadOnly bool `json:",omitempty"` ReadOnly bool `protobuf:"varint,4,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` // Consistency consistency `json:",omitempty"` // Consistency represents the consistency requirements of a mount. // type Consistency string Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` // BindOptions *BindOptions `json:",omitempty"` BindOptions *BindOptions `protobuf:"bytes,6,opt,name=bind_options,json=bindOptions" json:"bind_options,omitempty"` // VolumeOptions *VolumeOptions `json:",omitempty"` VolumeOptions *VolumeOptions `protobuf:"bytes,7,opt,name=volume_options,json=volumeOptions" json:"volume_options,omitempty"` // TmpfsOptions *TmpfsOptions `json:",omitempty"` TmpfsOptions *TmpfsOptions `protobuf:"bytes,8,opt,name=tmpfs_options,json=tmpfsOptions" json:"tmpfs_options,omitempty"` }
Mount represents a mount (volume). type Mount struct
func ConvertFromDockerApiTypeMount ¶
func ConvertFromDockerApiTypeMount(s mounttypes.Mount) (dst *Mount)
func (*Mount) DeepCopyChecked ¶
func (*Mount) Descriptor ¶
func (*Mount) ExportIntoDockerApiType ¶
func (m *Mount) ExportIntoDockerApiType() (tgt mounttypes.Mount)
func (*Mount) GetBindOptions ¶
func (m *Mount) GetBindOptions() *BindOptions
func (*Mount) GetConsistency ¶
func (*Mount) GetReadOnly ¶
func (*Mount) GetTmpfsOptions ¶
func (m *Mount) GetTmpfsOptions() *TmpfsOptions
func (*Mount) GetVolumeOptions ¶
func (m *Mount) GetVolumeOptions() *VolumeOptions
func (*Mount) ProtoMessage ¶
func (*Mount) ProtoMessage()
type TmpfsOptions ¶
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. // SizeBytes int84 `json:",omitempty"` SizeBytes int64 `protobuf:"varint,1,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"` // Mode of the tmpfs upon creation // Mode os.FileMode `json:",omitempty"` Mode uint32 `protobuf:"varint,2,opt,name=mode,proto3" json:"mode,omitempty"` }
TmpfsOptions defines options specific to mounts of type "tmpfs". type TmpfsOptions struct
func (*TmpfsOptions) Descriptor ¶
func (*TmpfsOptions) Descriptor() ([]byte, []int)
func (*TmpfsOptions) GetMode ¶
func (m *TmpfsOptions) GetMode() uint32
func (*TmpfsOptions) GetSizeBytes ¶
func (m *TmpfsOptions) GetSizeBytes() int64
func (*TmpfsOptions) ProtoMessage ¶
func (*TmpfsOptions) ProtoMessage()
func (*TmpfsOptions) Reset ¶
func (m *TmpfsOptions) Reset()
func (*TmpfsOptions) String ¶
func (m *TmpfsOptions) String() string
type VolumeOptions ¶
type VolumeOptions struct { // NoCopy bool `json:",omitempty"` NoCopy bool `protobuf:"varint,1,opt,name=no_copy,json=noCopy,proto3" json:"no_copy,omitempty"` // Labels map[string]string `json:",omitempty"` Labels map[string]string `` /* 146-byte string literal not displayed */ // DriverConfig *Driver `json:",omitempty"` DriverConfig *Driver `protobuf:"bytes,3,opt,name=driver_config,json=driverConfig" json:"driver_config,omitempty"` }
VolumeOptions represents the options for a mount of type volume. type VolumeOptions struct
func (*VolumeOptions) Descriptor ¶
func (*VolumeOptions) Descriptor() ([]byte, []int)
func (*VolumeOptions) GetDriverConfig ¶
func (m *VolumeOptions) GetDriverConfig() *Driver
func (*VolumeOptions) GetLabels ¶
func (m *VolumeOptions) GetLabels() map[string]string
func (*VolumeOptions) GetNoCopy ¶
func (m *VolumeOptions) GetNoCopy() bool
func (*VolumeOptions) ProtoMessage ¶
func (*VolumeOptions) ProtoMessage()
func (*VolumeOptions) Reset ¶
func (m *VolumeOptions) Reset()
func (*VolumeOptions) String ¶
func (m *VolumeOptions) String() string
Click to show internal directories.
Click to hide internal directories.