Versions in this module Expand all Collapse all v0 v0.6.0 Jun 14, 2019 Changes in this version + const BLOCK_DEV_NAME + const FILE_STAT_FORMAT_MAJOR_MINOR + const FILE_STAT_FORMAT_SIZE + const FILE_STAT_FORMAT_TYPE + const FILE_TYPE_BLOCKDEVICE + const FILE_TYPE_DIRECTORY + const FILE_TYPE_REGULAR + const IMAGE_FILE_NAME + const MOUNT_BINARY + const NSENTER_BINARY + const PRESERVED_CHECKSUM_LENGTH + const UMOUNT_BINARY + func AttachLoopbackDevice(file string, readonly bool) (string, error) + func CheckBinaryVersion(binaryName, minVersion string, args []string) error + func CheckName(name string) error + func CompressData(data []byte) (io.ReadSeeker, error) + func CompressDir(sourceDir, targetFile string) error + func CompressFile(filePath string) error + func ConfigExists(fileName string) bool + func Copy(src, dst string) error + func DecompressAndVerify(src io.Reader, checksum string) (io.Reader, error) + func DecompressDir(sourceFile, targetDir string) error + func DecompressFile(filePath string) error + func DetachAnyLoopbackDevice(file string) error + func DetachLoopbackDevice(file, dev string) error + func EncodeData(v interface{}) (*bytes.Buffer, error) + func Execute(binary string, args []string) (string, error) + func ExtractNames(names []string, prefix, suffix string) ([]string, error) + func Freeze(mountpoint string) error + func GenerateName(prefix string) string + func GetChecksum(data []byte) string + func GetFieldFromOpts(name string, opts map[string]string) (string, error) + func GetFileChecksum(filePath string) (string, error) + func GetFlag(v interface{}, key string, required bool, err error) (string, error) + func GetName(v interface{}, key string, required bool, err error) (string, error) + func InitMountNamespace(fd string) error + func InitTimeout(timeout string) + func IsNotExistsError(err error) bool + func ListConfigIDs(root, prefix, suffix string) ([]string, error) + func ListLoopbackDevice(file string) ([]string, error) + func LoadConfig(fileName string, v interface{}) error + func LockFile(fileName string) (*os.File, error) + func MkdirIfNotExists(path string) error + func MountPointPrepareBlockDevice(mp string, dev string) error + func MountPointPrepareImageFile(mp string, size int64) error + func MountPointRemoveFile(file string) error + func NewUUID() string + func Now() string + func ObjectConfig(obj interface{}) (string, error) + func ObjectDelete(obj interface{}) error + func ObjectExists(obj interface{}) (bool, error) + func ObjectLoad(obj interface{}) error + func ObjectSave(obj interface{}) error + func ParseSize(size string) (int64, error) + func RemoveConfig(fileName string) error + func RequiredMissingError(name string) error + func SaveConfig(fileName string, v interface{}) error + func SliceToMap(slices []string) map[string]string + func Sync() error + func UnFreeze(mountpoint string) error + func UnescapeURL(url string) string + func UnlockFile(f *os.File) error + func ValidNetworkAddr(addr string) bool + func ValidateName(name string) bool + func VolumeMount(v interface{}, mountPoint string, remount bool) (string, error) + func VolumeMountPointDirectoryCreate(v interface{}, dirName string) error + func VolumeMountPointDirectoryRemove(v interface{}, dirName string) error + func VolumeMountPointFileExists(v interface{}, file string, expectType string) bool + func VolumeUmount(v interface{}) error + type Index struct + func NewIndex() *Index + func (idx *Index) Add(key, value string) error + func (idx *Index) Delete(key string) error + func (idx *Index) Get(key string) string + type ObjectOperations interface + ConfigFile func() (string, error) + type VolumeHelper interface + GenerateDefaultMountPoint func() string + GetDevice func() (string, error) + GetMountOpts func() []string