Documentation
¶
Index ¶
Constants ¶
const WorkerImageBuildPrefix = "worker-img-build_"
WorkerImageBuildPrefix is the prefix used for all files that are written as part of the storage volume creation process for the worker image.
Variables ¶
This section is empty.
Functions ¶
func GetExecPath ¶ added in v0.2.0
func GetExecPath() string
GetExecPath returns the path to the current binary.
func ReplaceDaemon ¶ added in v0.2.0
func ReplaceDaemon() error
ReplaceDaemon replaces the daemon by re-execing the binary.
Types ¶
type OS ¶
type OS struct {
// Directories
CacheDir string // Cache directory (e.g., /var/cache/migration-manager/)
LogDir string // Log directory (e.g. /var/log/).
RunDir string // Runtime directory (e.g. /run/migration-manager/).
VarDir string // Data directory (e.g. /var/lib/migration-manager/).
UsrDir string // Static directory (e.g. /usr/lib/migration-manager/).
ArtifactDir string // Location of user-supplied files (e.g. /var/lib/migration-manager/artifacts/).
ImageDir string // Location of the worker images (e.g. /usr/share/migration-manager/images/).
DatabaseDir string // Location of the database files (e.g. /var/lib/migration-manager/database/).
ACMEDir string // Location of ACME account files (e.g. /var/cache/migration-manager/acme/).
ConfigFile string // System config yaml file (e.g. /var/lib/migration-manager/config.yml).
// contains filtered or unexported fields
}
OS is a high-level facade for accessing operating-system level functionalities.
func DefaultOS ¶
func DefaultOS() *OS
DefaultOS returns a fresh uninitialized OS instance with default values.
func (*OS) GetUnixSocket ¶
GetUnixSocket returns the full path to the unix.socket file that this daemon is listening on.
func (*OS) LoadWorkerImage ¶
LoadWorkerImage writes the VMWare vix tarball to the worker image. If the worker image does not exist, it is fetched from the current project version's corresponding GitHub release.
func (*OS) WorkerImageExists ¶
WorkerImageExists checks if the worker image and binary exist on the filesystem.