agent

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap added in v0.8.0

func Bootstrap() error

func CheckAndRenewCertificate added in v0.9.2

func CheckAndRenewCertificate() error

func GetStatus

func GetStatus() (string, error)

func GetTLSConfig added in v0.8.0

func GetTLSConfig() (*tls.Config, error)

func ProxmoxHTTPRequest

func ProxmoxHTTPRequest(method, url string, body io.Reader, respBody any) (io.ReadCloser, error)

func SetStatus

func SetStatus(status string) error

Types

type BackupSessionData added in v0.12.8

type BackupSessionData struct {
	Drive        string    `json:"drive"`
	StartTime    time.Time `json:"start_time"`
	NFSStartTime time.Time `json:"nfs_start_time"`
}

type BackupStore added in v0.12.8

type BackupStore struct {
	// contains filtered or unexported fields
}

func NewBackupStore added in v0.12.8

func NewBackupStore() (*BackupStore, error)

func (*BackupStore) ClearAll added in v0.12.10

func (bs *BackupStore) ClearAll() error

func (*BackupStore) EndBackup added in v0.12.8

func (bs *BackupStore) EndBackup(drive string) error

func (*BackupStore) HasActiveBackupForDrive added in v0.12.8

func (bs *BackupStore) HasActiveBackupForDrive(drive string) (bool, error)

func (*BackupStore) HasActiveBackups added in v0.12.8

func (bs *BackupStore) HasActiveBackups() (bool, error)

func (*BackupStore) StartBackup added in v0.12.8

func (bs *BackupStore) StartBackup(drive string) error

func (*BackupStore) StartNFS added in v0.12.8

func (bs *BackupStore) StartNFS(drive string) error

type BootstrapRequest added in v0.8.0

type BootstrapRequest struct {
	Hostname string            `json:"hostname"`
	CSR      string            `json:"csr"`
	Drives   []utils.DriveInfo `json:"drives"`
}

type BootstrapResponse added in v0.8.0

type BootstrapResponse struct {
	Cert string `json:"cert"`
	CA   string `json:"ca"`
}

Directories

Path Synopsis
nfs

Jump to

Keyboard shortcuts

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