Versions in this module Expand all Collapse all v0 v0.7.1 Apr 20, 2023 v0.7.0 Mar 14, 2023 Changes in this version + const AWSAccessKeyID + const AWSSecretAccessKey + const DeleteDataOutputSpaceFreed + const PasswordIncorrect + const PhaseOpString + const RepoBucket + const RepoDoesNotExist + const ResticCommand + const ResticPassword + const ResticRepository + func BackupCommandByID(s3Endpoint, ak, sk, repository, encryptionKey, clusterID, pathToBackup string) string + func BackupCommandByTag(...) string + func DoesRepoExist(output string) bool + func ForgetCommandByTag(s3Endpoint, ak, sk, repository, encryptionKey, clusterID, tag string) string + func GeneratePassword() string + func InitCommand(s3Endpoint, ak, sk, repository, encryptionKey, clusterID string) string + func IsPasswordIncorrect(output string) bool + func LatestSnapshotsCommand(s3Endpoint, ak, sk, repository, encryptionKey, clusterID string) string + func ParseResticSizeStringBytes(sizeStr string) int64 + func PruneCommand(s3Endpoint, ak, sk, repository, encryptionKey, clusterID string) string + func RestoreCommandByID(...) string + func RestoreCommandByTag(...) string + func SnapshotIDFromBackupLog(output string) string + func SnapshotIDFromSnapshotLog(output string) ([]string, error) + func SnapshotStatsFromBackupLog(output string) (fileCount string, backupSize string, phySize string) + func SnapshotsCommand(s3Endpoint, ak, sk, repository, encryptionKey, clusterID string) string + func SnapshotsCommandByTag(s3Endpoint, ak, sk, repository, encryptionKey, clusterID, tag string) string + func SpaceFreedFromPruneLog(output string) string + type Output struct + Key string + Value string + func Parse(l string) (*Output, error) + func UnmarshalOutput(opString string) (*Output, error) + type ResticClient struct + func NewResticClient(s3Endpoint, ak, sk, encryptionKey string, kubeclient kubernetes.Interface) (*ResticClient, error) + func (r *ResticClient) BackupData(repository, pathToBackup, backupTag string, updateEventFunc func(float64)) (int64, error) + func (r *ResticClient) CheckIfRepoIsReachable(repository string) error + func (r *ResticClient) CheckSnapshotExist(repository string) (bool, error) + func (r *ResticClient) DeleteDataByTag(repository string, deleteTag string, reclaimSpace bool) (map[string]interface{}, error) + func (r *ResticClient) GetOrCreateRepository(repository string) error + func (r *ResticClient) PruneData(repository string) (string, error) + func (r *ResticClient) RestoreData(repository, pathToRestore, backupTag string) (map[string]interface{}, error)