agent

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: PostgreSQL Imports: 20 Imported by: 0

Documentation

Overview

Package agent is the agent that performs the backup on the computers.

Package agent is the agent that performs the backup on the computers.

Index

Constants

This section is empty.

Variables

View Source
var KEYS string

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Settings *lib.AgentTemplate
	Restic   restic
	// contains filtered or unexported fields
}

Agent command structure

func NewAgent

func NewAgent() *Agent

NewAgent starts a new Manage request

func (*Agent) CmdBackup

func (a *Agent) CmdBackup(paths []string) *Agent

CmdBackup will run the agent command (`a8n-backup agent run`).

func (*Agent) CmdRestic

func (a *Agent) CmdRestic(cmd []string) *Agent

CmdRestic will run the restic command (`a8n-backup agent restic ...`).

func (*Agent) Error

func (a *Agent) Error() error

Errors returns errors present, or nil otherwise.

func (*Agent) ErrorMessage

func (a *Agent) ErrorMessage() string

ErrorMessage returns the error message.

func (*Agent) HasErrors

func (a *Agent) HasErrors() bool

HasErrors returns true if errors are present.

Jump to

Keyboard shortcuts

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