Documentation ¶
Index ¶
- func FileExists(path string) (bool, error)
- func FilesAreEqual(path1 string, path2 string) (bool, error)
- func ListVmWithEphemeralDisk(localPath string) ([]*v1.VirtualMachineInstance, error)
- func Md5CheckSum(filePath string) ([]byte, error)
- func MockDefaultOwnershipManager()
- func RemoveFile(path string) error
- type OwnershipManager
- type OwnershipManagerInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func ListVmWithEphemeralDisk ¶ added in v0.0.4
func ListVmWithEphemeralDisk(localPath string) ([]*v1.VirtualMachineInstance, error)
Lists all vmis ephemeral disk has local data for
func Md5CheckSum ¶
func RemoveFile ¶
Types ¶
type OwnershipManager ¶ added in v0.23.1
type OwnershipManager struct {
// contains filtered or unexported fields
}
func (*OwnershipManager) SetFileOwnership ¶ added in v0.23.1
func (om *OwnershipManager) SetFileOwnership(file string) error
type OwnershipManagerInterface ¶ added in v0.23.1
var DefaultOwnershipManager OwnershipManagerInterface = &OwnershipManager{user: "qemu"}
TODO this should be part of structs, instead of a global
Click to show internal directories.
Click to hide internal directories.