Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func GetEphemeralBackingSourceBlockDevices ¶ added in v0.47.0
func RemoveFilesIfExist ¶ added in v0.39.0
Types ¶
type MockOwnershipManagerInterface ¶ added in v0.52.0
type MockOwnershipManagerInterface struct {
// contains filtered or unexported fields
}
Mock of OwnershipManagerInterface interface
func NewMockOwnershipManagerInterface ¶ added in v0.52.0
func NewMockOwnershipManagerInterface(ctrl *gomock.Controller) *MockOwnershipManagerInterface
func (*MockOwnershipManagerInterface) EXPECT ¶ added in v0.52.0
func (_m *MockOwnershipManagerInterface) EXPECT() *_MockOwnershipManagerInterfaceRecorder
func (*MockOwnershipManagerInterface) SetFileOwnership ¶ added in v0.52.0
func (_m *MockOwnershipManagerInterface) SetFileOwnership(file *safepath.Path) error
func (*MockOwnershipManagerInterface) UnsafeSetFileOwnership ¶ added in v0.55.1
func (_m *MockOwnershipManagerInterface) UnsafeSetFileOwnership(file string) error
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 *safepath.Path) error
func (*OwnershipManager) UnsafeSetFileOwnership ¶ added in v0.49.1
func (om *OwnershipManager) UnsafeSetFileOwnership(file string) error
type OwnershipManagerInterface ¶ added in v0.23.1
type OwnershipManagerInterface interface { // Deprecated: UnsafeSetFileOwnership should not be used. Use SetFileOwnership instead. UnsafeSetFileOwnership(file string) error SetFileOwnership(file *safepath.Path) error }
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.