mountutil

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bind   = "bind"
	Volume = "volume"
	Tmpfs  = "tmpfs"
	Npipe  = "npipe"
)
View Source
const (
	DefaultMountType = ""

	DefaultPropagationMode = ""
)

Variables

View Source
var ErrVolumeTargetIsRoot = errors.New("invalid specification: destination can't be '/'")

Functions

func UnprivilegedMountFlags added in v2.0.5

func UnprivilegedMountFlags(path string) ([]string, error)

Types

type Processed

type Processed struct {
	Type            string
	Mount           specs.Mount
	Name            string // name
	AnonymousVolume string // anonymous volume name
	Mode            string
	Opts            []oci.SpecOpts
}

func ProcessFlagMount added in v2.0.5

func ProcessFlagMount(s string, volStore volumestore.VolumeStore) (*Processed, error)

func ProcessFlagTmpfs added in v2.0.5

func ProcessFlagTmpfs(s string) (*Processed, error)

func ProcessFlagV

func ProcessFlagV(s string, volStore volumestore.VolumeStore, createDir bool) (*Processed, error)

Directories

Path Synopsis
Package volumestore allows manipulating containers' volumes.
Package volumestore allows manipulating containers' volumes.

Jump to

Keyboard shortcuts

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