Documentation ¶
Index ¶
- Variables
- type Filesystem
- type OSFilesystem
- type Volume
- func (v *Volume) Create(r volume.Request) volume.Response
- func (v *Volume) Get(volume.Request) volume.Response
- func (v *Volume) List(volume.Request) volume.Response
- func (v *Volume) Mount(r volume.Request) volume.Response
- func (v *Volume) Path(r volume.Request) volume.Response
- func (v *Volume) Remove(r volume.Request) volume.Response
- func (v *Volume) Unmount(r volume.Request) volume.Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultFStype = "ext4" DefaultMountOptions = []string{"discard", "defaults"} HostFilesystem = "/rootfs/" MountNamespace = "/rootfs/proc/1/ns/mnt" CGroupFilename = "/proc/1/cgroup" )
View Source
var WaitStatusTimeout = 100 * time.Second
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
type Filesystem interface { afero.Fs Mount(source string, target string) error Unmount(target string) error Format(source string) error }
func NewFilesystem ¶
func NewFilesystem() Filesystem
type OSFilesystem ¶
func (*OSFilesystem) Format ¶
func (fs *OSFilesystem) Format(source string) error
func (*OSFilesystem) Unmount ¶
func (fs *OSFilesystem) Unmount(target string) error
Click to show internal directories.
Click to hide internal directories.