mount

package
v0.0.0-...-f4cebfc Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Driver) GetName

func (m *Driver) GetName() string

func (*Driver) GetOptions

func (m *Driver) GetOptions() map[string]string

func (*Driver) ProtoMessage

func (*Driver) ProtoMessage()

func (*Driver) Reset

func (m *Driver) Reset()

func (*Driver) String

func (m *Driver) String() string

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 (m *Mount) DeepCopyChecked() (*Mount, []error)

func (*Mount) Descriptor

func (*Mount) Descriptor() ([]byte, []int)

func (*Mount) ExportIntoDockerApiType

func (m *Mount) ExportIntoDockerApiType() (tgt mounttypes.Mount)

func (*Mount) GetBindOptions

func (m *Mount) GetBindOptions() *BindOptions

func (*Mount) GetConsistency

func (m *Mount) GetConsistency() string

func (*Mount) GetReadOnly

func (m *Mount) GetReadOnly() bool

func (*Mount) GetSource

func (m *Mount) GetSource() string

func (*Mount) GetTarget

func (m *Mount) GetTarget() string

func (*Mount) GetTmpfsOptions

func (m *Mount) GetTmpfsOptions() *TmpfsOptions

func (*Mount) GetType

func (m *Mount) GetType() string

func (*Mount) GetVolumeOptions

func (m *Mount) GetVolumeOptions() *VolumeOptions

func (*Mount) ProtoMessage

func (*Mount) ProtoMessage()

func (*Mount) Reset

func (m *Mount) Reset()

func (*Mount) String

func (m *Mount) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL