Documentation ¶
Overview ¶
Note: this file is unused right now, but it describes how we could auto-correct our mountns. The problem is with the `atomfs mount` command, we need to propagate the mount to the right place, back outside of the atomfs mountns. Need better ideas on how to do this.
Index ¶
- func BuildMoleculeFromOCI(opts MountOCIOpts) (types.Molecule, error)
- func UnmountOCI(opts MountOCIOpts) error
- type Instance
- func (atomfs *Instance) Close() error
- func (atomfs *Instance) CopyMolecule(dest string, src string) (types.Molecule, error)
- func (atomfs *Instance) CreateAtom(name string, atomType types.AtomType, content io.Reader) (types.Atom, error)
- func (atomfs *Instance) CreateAtomFromOCIBlob(blob *casext.Blob) (types.Atom, error)
- func (atomfs *Instance) CreateMolecule(name string, atoms []types.Atom) (types.Molecule, error)
- func (atomfs *Instance) CreateMoleculeFromOCITag(oci casext.Engine, name string) (types.Molecule, error)
- func (atomfs *Instance) DeleteMolecule(name string) error
- func (atomfs *Instance) DumpDB() io.ReadCloser
- func (atomfs *Instance) FSCK() ([]string, error)
- func (atomfs *Instance) GC(dryRun bool) error
- func (atomfs *Instance) GetAtoms() ([]types.Atom, error)
- func (atomfs *Instance) GetAtomsByHash() (map[string]types.Atom, error)
- func (atomfs *Instance) GetMolecule(name string) (types.Molecule, error)
- func (atomfs *Instance) Mount(molecule string, target string, writable bool) error
- func (atomfs *Instance) RenameMolecule(old, new_ string) error
- func (atomfs *Instance) SlurpOCI(location string) error
- func (atomfs *Instance) Umount(target string) error
- type MountOCIOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMoleculeFromOCI ¶
func BuildMoleculeFromOCI(opts MountOCIOpts) (types.Molecule, error)
func UnmountOCI ¶
func UnmountOCI(opts MountOCIOpts) error
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) CopyMolecule ¶
CopyMolecule simply duplicates a molecule's configuration under a new name. This is equivalent to a "snapshot" operation under other filesystems.
func (*Instance) CreateAtom ¶
func (*Instance) CreateAtomFromOCIBlob ¶
func (*Instance) CreateMolecule ¶
func (*Instance) CreateMoleculeFromOCITag ¶
func (*Instance) DeleteMolecule ¶
func (*Instance) DumpDB ¶
func (atomfs *Instance) DumpDB() io.ReadCloser
DumpDB() dumps the underlying sqlite3 db for inspection.
func (*Instance) GC ¶
GC does a garbage collection of atomfs, deleting any unused atoms, and any files in the atom directory that aren't in the database.
func (*Instance) GetAtomsByHash ¶
func (*Instance) GetMolecule ¶
func (*Instance) RenameMolecule ¶
type MountOCIOpts ¶
type MountOCIOpts struct { OCIDir string MetadataPath string Tag string Target string Writable bool }
func (MountOCIOpts) AtomsPath ¶
func (c MountOCIOpts) AtomsPath(parts ...string) string
func (MountOCIOpts) MountedAtomsPath ¶
func (c MountOCIOpts) MountedAtomsPath(parts ...string) string
func (MountOCIOpts) OverlayDirsPath ¶
func (c MountOCIOpts) OverlayDirsPath(parts ...string) string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.