Documentation ¶
Index ¶
- Variables
- func EnsureDir(dir string) error
- func GetMountNSName() (string, error)
- func PathExists(d string) bool
- func ReplacePathSeparators(p string) string
- func RuntimeDir(metadir string) string
- func Umount(dest string) error
- func UmountWithMetadir(dest, metadirArg string) error
- type Molecule
- type MountOCIOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var OverlayMountOptions = "index=off,xino=on,userxattr"
View Source
var TestOverrideRuntimeDirKey = "ATOMFS_TEST_RUN_DIR"
Functions ¶
func GetMountNSName ¶ added in v1.1.2
func PathExists ¶ added in v1.1.2
func ReplacePathSeparators ¶ added in v1.1.2
remove dir separators to make one dir name. It is OK that this can't be cleanly backed out, we don't need it to
func RuntimeDir ¶ added in v1.1.2
Allow overriding runtime dir for tests so we can assert empty dirs, etc.
func UmountWithMetadir ¶ added in v1.1.3
Types ¶
type Molecule ¶
type Molecule struct { // Atoms is the list of atoms in this Molecule. The first element in // this list is the top most layer in the overlayfs. Atoms []ispec.Descriptor // contains filtered or unexported fields }
func BuildMoleculeFromOCI ¶
func BuildMoleculeFromOCI(opts MountOCIOpts) (Molecule, error)
func (Molecule) MetadataPath ¶ added in v1.1.2
type MountOCIOpts ¶
type MountOCIOpts struct { OCIDir string Tag string Target string AddWriteableOverlay bool WriteableOverlayPath string AllowMissingVerityData bool MetadataDir string }
func (MountOCIOpts) AtomsPath ¶
func (c MountOCIOpts) AtomsPath(parts ...string) string
func (MountOCIOpts) WriteToFile ¶ added in v1.1.2
func (c MountOCIOpts) WriteToFile(filename string) error
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
This package is a small go "library" (read: exec wrapper) around the mksquashfs binary that provides some useful primitives.
|
This package is a small go "library" (read: exec wrapper) around the mksquashfs binary that provides some useful primitives. |
Click to show internal directories.
Click to hide internal directories.