agent

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap added in v0.26.0

func Bootstrap() error

func CheckAndRenewCertificate added in v0.26.0

func CheckAndRenewCertificate() error

func GetTLSConfig added in v0.26.0

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

func ProxmoxHTTPRequest added in v0.26.0

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

Types

type BackupSessionData added in v0.26.0

type BackupSessionData struct {
	JobId     string    `json:"job_id"`
	StartTime time.Time `json:"start_time"`
}

type BackupStore added in v0.26.0

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

func NewBackupStore added in v0.26.0

func NewBackupStore() (*BackupStore, error)

func (*BackupStore) ClearAll added in v0.26.0

func (bs *BackupStore) ClearAll() error

func (*BackupStore) EndBackup added in v0.26.0

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

func (*BackupStore) HasActiveBackupForJob added in v0.26.0

func (bs *BackupStore) HasActiveBackupForJob(job string) (bool, error)

func (*BackupStore) HasActiveBackups added in v0.26.0

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

func (*BackupStore) StartBackup added in v0.26.0

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

type BootstrapRequest added in v0.26.0

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

type BootstrapResponse added in v0.26.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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