Documentation
¶
Index ¶
- Constants
- func Chroot(path string) error
- func DropCapabilities(keep map[int]struct{}) error
- func DropCapabilitiesForJournalExport() error
- func GetFilesystem(ctx context.Context, path string, runner utils.CommandRunner) (filesystem string, err error)
- func GetFilesystemForPath(path string) (fstype string, err error)
Constants ¶
View Source
const FilesystemTemporary = "tmpfs"
FilesystemTemporary defines the tmpfs filesystem
Variables ¶
This section is empty.
Functions ¶
func DropCapabilities ¶
DropCapabilities drops all capabilities except those specified with keep from the current process
func DropCapabilitiesForJournalExport ¶
func DropCapabilitiesForJournalExport() error
DropCapabilitiesForJournalExport drops capabilities except those required to export a systemd journal
func GetFilesystem ¶
func GetFilesystem(ctx context.Context, path string, runner utils.CommandRunner) (filesystem string, err error)
GetFilesystem detects the filesystem on device specified with path
func GetFilesystemForPath ¶
GetFilesystemForPath returns the filesystem type for given path. It does not verify whether the path actually exists
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
package auditlog implements support for manipulating kernel audit system
|
package auditlog implements support for manipulating kernel audit system |
Package environ implements utilities for managing host environment during an operation
|
Package environ implements utilities for managing host environment during an operation |
package service implements helpers for working with systemd services
|
package service implements helpers for working with systemd services |
package signals implements support for managing interrupt signals
|
package signals implements support for managing interrupt signals |
Click to show internal directories.
Click to hide internal directories.