# Functions
ActivateLibStorage activates libStorage and returns a possibly mutated context.
AddKnownHost adds unknown host to know_hosts file.
AssertTrustedHost presents the user with a onscreen prompt to accept orreject a host as a trusted, known host.
CreateSelfCert creates a self-signed certificate and a private key pair.
EnvFilePath returns the path to the REX-Ray env file.
EtcFilePath returns the path to a file inside the REX-Ray etc directory with the provided file name.
FindFlagVal looks at the provided list of arguments and attempts to find the value for the specified flag.
GetPrefix gets the root path to the REX-Ray data.
Install executes the system install command.
InstallChownRoot executes the system install command and chowns the target to the root user and group.
InstallDirChownRoot executes the system install command with a -d flag and chowns the target to the root user and group.
IsAddressActive returns a flag indicating whether or not a an address is responding to connection attempts.
IsLocalServerActive returns a flag indicating whether or not a local libStorage is already running.
IsPrefixed determines whether REX-Ray is prefixed.
IsTerminal returns a flag indicating whether or not the provided writer is connected to a terminal device.
LogFile returns a writer to a file inside the REX-Ray log directory with the provided file name.
LogFilePath returns the path to a file inside the REX-Ray log directory with the provided file name.
NewClient returns a new libStorage client.
NewConfig returns a new config object.
NewWriterFor returns an io.Writer that will write data using the provided function.
PidFilePath returns the path to the REX-Ray PID file.
PrintVersion prints the current version information to the provided writer.
ReadPidFile reads the REX-Ray PID from the PID file.
ReadSpecFile reads the REX-Ray host address from the spec file.
RunFilePath returns the path to a file inside the REX-Ray run directory with the provided file name.
ScriptDirPath returns the path to the REX-Ray script directory.
ScriptFilePath returns the path to a file inside the REX-Ray script directory with the provided file name.
SpecFilePath returns the path to the REX-Ray spec file.
StdOutAndLogFile returns a mutltiplexed writer for the current process's stdout descriptor and a REX-Ray log file with the provided name.
ValidateConfig validates a provided configuration file.
WaitUntilLibStorageStopped blocks until libStorage is stopped.
WritePidFile writes the current process ID to the REX-Ray PID file.
WriteSpecFile writes the current host address to the REX-Ray spec file.
# Variables
BinFileDirPath is the full path of the executing binary's parent directory.
BinFileName is the name of the executing binary.
BinFilePath is the full path of the executing binary.
DotDirName is the name of the hidden app directory.
ErrHostDetectionFailed is returned when ActivateLibStorage is invoked and the there is no host specified in the configuration file and no existing host was detected locally.
ErrMissingService occurs when the client configuration is missing the property "libstorage.service" either at the root or as part of a module definition.
InitFileName is the name of the SystemV service's unit file.
InitFilePath is the path to the SystemV service's init script.
PIDFileName is the name of the PID file.
UnitFileName is the name of the SystemD service's unit file.
UnitFilePath is the path to the SystemD service's unit file.