tools

package
Version: v3.1.0-rc4+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: BSD-3-Clause Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBundle

func CreateBundle(bundlePath string, config *specs.Spec) error

CreateBundle generates a minimal OCI bundle directory with the provided OCI configuration or a default one if there is no configuration

func CreateLoop

func CreateLoop(file *os.File, offset, size uint64) (string, error)

CreateLoop associates a file to loop device and returns path of loop device used

func CreateOverlay

func CreateOverlay(bundlePath string) error

CreateOverlay creates a writable overlay

func DeleteBundle

func DeleteBundle(bundlePath string) error

DeleteBundle ...

func DeleteOverlay

func DeleteOverlay(bundlePath string) error

DeleteOverlay deletes overlay

Types

type RootFs

type RootFs string

RootFs is the default root path for OCI bundle

func (RootFs) Path

func (r RootFs) Path() string

Path returns the root path inside bundle

Jump to

Keyboard shortcuts

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