ephemeraldiskutils

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) (bool, error)

func ListVmWithEphemeralDisk added in v0.0.4

func ListVmWithEphemeralDisk(localPath string) ([]*v1.VirtualMachineInstance, error)

Lists all vmis ephemeral disk has local data for

func MockDefaultOwnershipManager added in v0.23.1

func MockDefaultOwnershipManager()

For testing

func RemoveFilesIfExist added in v0.39.0

func RemoveFilesIfExist(paths ...string) error

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

type OwnershipManagerInterface interface {
	SetFileOwnership(file string) error
}
var DefaultOwnershipManager OwnershipManagerInterface = &OwnershipManager{user: "qemu"}

TODO this should be part of structs, instead of a global

Jump to

Keyboard shortcuts

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