Documentation ¶
Index ¶
- Constants
- func BundleUser(bundlePath, user string) (u *user.User, err error)
- func CreateLoop(file *os.File, offset, size uint64) (string, io.Closer, error)
- func CreateOverlay(bundlePath string) error
- func CreateOverlayTmpfs(bundlePath string, sizeMiB int, allowSetuid bool) (string, error)
- func DeleteBundle(bundlePath string) error
- func DeleteOverlay(bundlePath string) error
- func DeleteOverlayTmpfs(bundlePath, olDir string) error
- func GenerateBundleConfig(bundlePath string, config *specs.Spec) (*generate.Generator, error)
- func SaveBundleConfig(bundlePath string, g *generate.Generator) error
- type Config
- type RootFs
- type Volumes
Constants ¶
const RunScript = "/.singularity.d/actions/run"
RunScript is the default process argument
Variables ¶
This section is empty.
Functions ¶
func BundleUser ¶
BundleUser returns a user struct for the specified user, from the bundle passwd file.
func CreateLoop ¶
CreateLoop associates a file to loop device and returns path of loop device used and a closer to close the loop device
func CreateOverlay ¶
CreateOverlay creates a writable overlay using a directory inside the OCI bundle.
func CreateOverlayTmpfs ¶
CreateOverlay creates a writable overlay using tmpfs.
func DeleteBundle ¶
DeleteBundle deletes bundle directory
func DeleteOverlay ¶
DeleteOverlay deletes an overlay previously created using a directory inside the OCI bundle.
func DeleteOverlayTmpfs ¶
DeleteOverlayTmpfs deletes an overlay previously created using tmpfs.
func GenerateBundleConfig ¶
GenerateBundleConfig generates a minimal OCI bundle directory with the provided OCI configuration or a default one if there is no configuration