rb

package module
v0.0.0-...-1a2fbf7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2014 License: GPL-3.0 Imports: 2 Imported by: 1

README

shared

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostAddFolderParams

type HostAddFolderParams struct {
	Auth     HostAuth
	Path     string
	Interval time.Duration
}

type HostAuth

type HostAuth struct {
	HostId       string
	Token        string
	AgentVersion string
}

type HostBackup

type HostBackup struct {
	FolderId string
	BackupId string
	Size     string
}

type HostCommitBackupParams

type HostCommitBackupParams struct {
	Auth        HostAuth
	FolderId    string
	BackupId    string
	RsyncOutput string
}

type HostFolder

type HostFolder struct {
	Path         string
	LastBackupId string
}

type HostGetBackupParams

type HostGetBackupParams struct {
	Auth     HostAuth
	BackupId string
}

type HostGetBackupResult

type HostGetBackupResult struct {
	RsyncUrl       string
	SshFingerprint string
	Plugin         TaskPlugin
	Success        bool
}

type HostGetBackupsParams

type HostGetBackupsParams struct {
	Auth     HostAuth
	FolderId string
}

type HostGetBackupsResult

type HostGetBackupsResult struct {
	Backups []HostBackup
	Success bool
}

type HostGetFoldersParams

type HostGetFoldersParams struct {
	Auth HostAuth
}

type HostGetFoldersResult

type HostGetFoldersResult struct {
	Folders []HostFolder
	Success bool
}

type HostGetTasksParams

type HostGetTasksParams struct {
	Auth HostAuth
}

type HostGetTasksResult

type HostGetTasksResult struct {
	Tasks   []Task
	Success bool
}

type HostInitParams

type HostInitParams struct {
	Token        string
	Hostname     string
	AgentVersion string
}

type HostLogBackupParams

type HostLogBackupParams struct {
	Auth        HostAuth
	FolderId    string
	BackupId    string
	RsyncArgs   []string
	RsyncStdout string
	RsyncStderr string
	ExecError   string
	Path        string
	StatError   string
}

type HostOpResult

type HostOpResult struct {
	Success bool
}

type HostRegisterParams

type HostRegisterParams struct {
	Auth      HostAuth
	PublicKey string
}

type HostTrackMetricsParams

type HostTrackMetricsParams struct {
	Auth               HostAuth
	Hostname           string
	Mem                sigar.Mem
	Swap               sigar.Swap
	Uptime             sigar.Uptime
	CpuList            sigar.CpuList
	LoadAverage        sigar.LoadAverage
	FileSystemList     sigar.FileSystemList
	FileSystemUsage    map[string]sigar.FileSystemUsage
	DiskStats          []sigar.DiskStats
	NetworkUtilization sigar.NetworkUtilization
}

type Task

type Task struct {
	Plugin         TaskPlugin
	Local          string
	Remote         string
	Args           []string
	FolderId       string
	BackupId       string
	SshFingerprint string
}

type TaskPlugin

type TaskPlugin struct {
	Name    string
	Version string
	Options map[string]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL