Documentation
¶
Index ¶
- Constants
- Variables
- func ConfigPath() string
- func GenerateClientKey(path string) error
- func InitHost(backend *rpc.Client, userToken string, agentVersion string) (hostAuth *rb.HostAuth, err error)
- func NewBackend(backendAddr string) (*rpc.Client, error)
- func PluginUrl() string
- func PublicKeyPath() string
- func RemoveCrontab() error
- func WriteConfig(c *Config, configPath string) error
- func WriteCrontab() error
- type Agent
- func (a *Agent) AddFolder(path string) error
- func (a *Agent) GetBackup(backupId string) error
- func (a *Agent) GetFolders() error
- func (a *Agent) Register(publicKey string) error
- func (a *Agent) Restore(backupId string, dest string) error
- func (a *Agent) RestorePlugin(pluginName string, backupId string) error
- func (a *Agent) RunTasks() error
- func (a *Agent) TrackMetrics() error
- type Client
- type Config
- type Job
- type Plugin
- type TaskResult
Constants ¶
View Source
const KeyPath = "/etc/rollbackup/id_rsa"
View Source
const RollbackupCA = `` /* 1143-byte string literal not displayed */
Variables ¶
View Source
var PluginBase = "/usr/share/rollbackup"
Functions ¶
func ConfigPath ¶
func ConfigPath() string
func GenerateClientKey ¶
func PublicKeyPath ¶
func PublicKeyPath() string
func RemoveCrontab ¶
func RemoveCrontab() error
func WriteConfig ¶
func WriteCrontab ¶
func WriteCrontab() error
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) GetFolders ¶
func (*Agent) RestorePlugin ¶
func (*Agent) TrackMetrics ¶
type Config ¶
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.