Documentation ¶
Index ¶
- Constants
- func Delete(cfg *Config) error
- func Download(localFilePath string, cfg *Config) error
- func GetSystemBackupURL(name, longhornVersion, backupTarget string) (string, error)
- func ParseSystemBackupURL(systemBackupURL string) (backupTarget, version, name string, err error)
- func Upload(localFilePath string, cfg *Config) error
- type Config
- type Name
- type SystemBackups
- type URI
Constants ¶
View Source
const ( SubDirectory = "system-backups" ConfigFile = "system-backup.cfg" ZipFile = "system-backup.zip" )
Variables ¶
This section is empty.
Functions ¶
func GetSystemBackupURL ¶
func ParseSystemBackupURL ¶
ParseSystemBackupURL parse the URL and return backup target, version and name. An example: s3://bucket@region/path/backupstore/system-backups/v1.4.0/sample-system-backup should return s3://bucket@region/path/, v1.4.0, sample-system-backup, nil
Types ¶
type Config ¶
type Config struct { Name string LonghornVersion string LonghornGitCommit string BackupTargetURL string ManagerImage string EngineImage string CreatedAt time.Time Checksum string }
func LoadConfig ¶
type SystemBackups ¶
func List ¶
func List(destURL string) (SystemBackups, error)
Click to show internal directories.
Click to hide internal directories.