Documentation ¶
Index ¶
- Constants
- func AttachLoopbackDevice(file string, readonly bool) (string, error)
- func CheckBinaryVersion(binaryName, minVersion string, args []string) error
- func CheckName(name string) error
- func CheckUUID(uuid 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 DetachLoopbackDevice(file, dev string) error
- func EncodeData(v interface{}) (*bytes.Buffer, error)
- func Execute(binary string, args []string) (string, error)
- func ExtractUUIDs(names []string, prefix, suffix string) ([]string, error)
- func GetChecksum(data []byte) string
- func GetFileChecksum(filePath string) (string, error)
- func GetLowerCaseFlag(v interface{}, key string, required bool, err error) (string, error)
- func GetName(v interface{}, key string, required bool, err error) (string, error)
- func GetUUID(v interface{}, key string, required bool, err error) (string, error)
- func ListConfigIDs(path, prefix, suffix string) ([]string, error)
- func LoadConfig(fileName string, v interface{}) error
- func LockFile(fileName string) error
- func MkdirIfNotExists(path string) error
- 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 UnlockFile(fileName string) error
- func ValidateName(name string) bool
- func ValidateUUID(s string) bool
- type Index
- type ObjectOperations
Constants ¶
View Source
const (
PRESERVED_CHECKSUM_LENGTH = 64
)
Variables ¶
This section is empty.
Functions ¶
func CheckBinaryVersion ¶
func CompressData ¶
func CompressData(data []byte) (io.ReadSeeker, error)
func CompressDir ¶
func CompressFile ¶
func ConfigExists ¶
func DecompressAndVerify ¶
func DecompressDir ¶
If sourceFile is inside targetDir, it would be deleted automatically
func DecompressFile ¶
func DetachLoopbackDevice ¶
func EncodeData ¶
func GetChecksum ¶
func GetFileChecksum ¶
func GetLowerCaseFlag ¶
func ListConfigIDs ¶
func LoadConfig ¶
func MkdirIfNotExists ¶
func ObjectConfig ¶
func ObjectDelete ¶
func ObjectDelete(obj interface{}) error
func ObjectExists ¶
func ObjectLoad ¶
func ObjectLoad(obj interface{}) error
func ObjectSave ¶
func ObjectSave(obj interface{}) error
func RemoveConfig ¶
func RequiredMissingError ¶
func SaveConfig ¶
func SliceToMap ¶
func UnlockFile ¶
func ValidateName ¶
func ValidateUUID ¶
Types ¶
type ObjectOperations ¶
Click to show internal directories.
Click to hide internal directories.