Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chroot ¶
type Chroot interface {
// Checks if chroot exists.
Exists() (bool, error)
// Returns a full chroot location path.
FullPath() string
// Checks is chroot looks like a valid chroot.
IsValid() error
// Removes the chroot with all contents.
RemoveAll() error
// Returns a socket file path, if file exists.
SocketPathIfExists() (string, bool, error)
// Returns a socket file path.
SocketPath() string
}
Chroot represents the chroot.
func NewWithLocation ¶
NewWithLocation returns a chroot with the configured location.
type Location ¶
type Location struct {
ChrootBase string
FcBinary string
VMMID string
// contains filtered or unexported fields
}
Location represents the chroot location on disk.
func LocationFromComponents ¶
LocationFromComponents constructs a location using explicit components.
func LocationFromFullPath ¶
LocationFromFullPath deconstructs a full path to the location.
Click to show internal directories.
Click to hide internal directories.