agent

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 18 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 BackupStatus added in v0.8.0

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

BackupStatus manages the state of ongoing backups

func GetBackupStatus added in v0.8.0

func GetBackupStatus() *BackupStatus

GetBackupStatus returns the singleton instance of BackupStatus

func (*BackupStatus) EndBackup added in v0.8.0

func (bs *BackupStatus) EndBackup(drive string)

EndBackup marks a backup as completed for a given drive

func (*BackupStatus) HasActiveBackups added in v0.8.0

func (bs *BackupStatus) HasActiveBackups() bool

HasActiveBackups checks if there are any ongoing backups

func (*BackupStatus) StartBackup added in v0.8.0

func (bs *BackupStatus) StartBackup(drive string)

StartBackup marks a backup as started for a given drive

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