Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DqliteSocket is the configurable location of the dqlite socket. DqliteSocket = "DQLITE_SOCKET" // StateDir is the location of the daemon state directory. StateDir = "STATE_DIR" // SchemaUpdate is the path to the schema update to run. SchemaUpdate = "SCHEMA_UPDATE" // SocketGroup is the configurable group of the socket. SocketGroup = "SOCKET_GROUP" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OS ¶
type OS struct { StateDir string DatabaseDir string TrustDir string CertificatesDir string LogFile string }
OS contains fields and methods for interacting with the state directory.
func (*OS) ClusterCert ¶
ClusterCert gets the local cluster certificate from the state directory.
func (*OS) ControlSocket ¶
ControlSocket returns the full path to the control.socket file that this daemon is listening on.
func (*OS) ControlSocketPath ¶
ControlSocketPath returns the filesystem path to the control socket.
func (*OS) DatabasePath ¶
DatabasePath returns the path of the database file managed by dqlite.
func (*OS) IsControlSocketPresent ¶
IsControlSocketPresent determines if the control socket is present and accessible.
type Watcher ¶
Watcher represents an fsnotify watcher.
func NewWatcher ¶
NewWatcher returns a watcher listening for fsnotify events down the given dir.
Click to show internal directories.
Click to hide internal directories.