Documentation
¶
Overview ¶
zeplic main package
ZEPLIC is an application to manage ZFS datasets. It establishes a connection with the syslog system service, make a synchronisation with Consul, reads the dataset configuration of a JSON file and execute ZFS functions:
Get a dataset, get a list of snapshots, create a snapshot, delete it, create a clone, roll back snapshot, send a snapshot...
Directories
¶
Path | Synopsis |
---|---|
Package config contains: local.go - server.go - signal.go - syslog.go - version.go Local reads and extracts the information JSON configuration file Package config contains: local.go - server.go - signal.go - syslog.go - version.go Server keeps the struct of server json file and extracts all data Package config contains: local.go - server.go - signal.go - syslog.go - version.go Signal gets the process ID of zeplic and sends to the process SIGTERM/SIGHUP Package config contains: local.go - server.go - signal.go - syslog.go - version.go Syslog establishes a new connection with the syslog daemon and writes in the log file, all messages return by the functions Package config contains: local.go - server.go - signal.go - syslog.go - version.go Version gets the commit version and date of last zeplic build
|
Package config contains: local.go - server.go - signal.go - syslog.go - version.go Local reads and extracts the information JSON configuration file Package config contains: local.go - server.go - signal.go - syslog.go - version.go Server keeps the struct of server json file and extracts all data Package config contains: local.go - server.go - signal.go - syslog.go - version.go Signal gets the process ID of zeplic and sends to the process SIGTERM/SIGHUP Package config contains: local.go - server.go - signal.go - syslog.go - version.go Syslog establishes a new connection with the syslog daemon and writes in the log file, all messages return by the functions Package config contains: local.go - server.go - signal.go - syslog.go - version.go Version gets the commit version and date of last zeplic build |
Package director contains: actions.go - agent.go - director.go - slave.go Actions provides the functions to resolve the action to do Package director contains: actions.go - agent.go - director.go - slave.go Agent executes the orders received from director Package director contains: actions.go - agent.go - director.go - slave.go Director sends an order to the agent Make orders from synchronisation between nodes Package director contains: agent.go - consul.go - director.go - server.go - slave.go Slave receives a snapshot from agent
|
Package director contains: actions.go - agent.go - director.go - slave.go Actions provides the functions to resolve the action to do Package director contains: actions.go - agent.go - director.go - slave.go Agent executes the orders received from director Package director contains: actions.go - agent.go - director.go - slave.go Director sends an order to the agent Make orders from synchronisation between nodes Package director contains: agent.go - consul.go - director.go - server.go - slave.go Slave receives a snapshot from agent |
Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Cleaner removes all keys with the flag #NotWritten and #deleted at the datacenter indicated Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Consul get the status of a Consul member and provides the functions to put or delete a KV pair Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Functions to destroy a snapshot Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Runner provides all ZFS functions to manage the datasets and backups Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Snapshot provides the functions to get the properties of snapshots Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Sync writes a check KV to synchronize zeplic and resynchronize all pairs Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Functions to create a snapshot Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Tracker searchs in local datasets
|
Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Cleaner removes all keys with the flag #NotWritten and #deleted at the datacenter indicated Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Consul get the status of a Consul member and provides the functions to put or delete a KV pair Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Functions to destroy a snapshot Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Runner provides all ZFS functions to manage the datasets and backups Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Snapshot provides the functions to get the properties of snapshots Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Sync writes a check KV to synchronize zeplic and resynchronize all pairs Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Functions to create a snapshot Package lib contains: cleaner.go - consul.go - destroy.go - runner.go - snapshot.go - sync.go - take.go - tracker.go Tracker searchs in local datasets |
sniplets
|
|
Package tools contains: calendar.go - cron.go - substrings.go Format provides the functions to analyze the name, the number and the lenght of months Package tools contains: calendar.go - cron.go - substrings.go Cron provides the functions to extract the information of JSON crontab Returns human readable format Package tools contains: calendar.go - cron.go - substrings.go Functions to get substrings Sort a list of snapshots
|
Package tools contains: calendar.go - cron.go - substrings.go Format provides the functions to analyze the name, the number and the lenght of months Package tools contains: calendar.go - cron.go - substrings.go Cron provides the functions to extract the information of JSON crontab Returns human readable format Package tools contains: calendar.go - cron.go - substrings.go Functions to get substrings Sort a list of snapshots |
Click to show internal directories.
Click to hide internal directories.