Documentation ¶
Index ¶
Constants ¶
View Source
const ( BackupTargetSettingName = "backup-target" DefaultDashboardUIURL = "https://releases.rancher.com/harvester-ui/dashboard/v0.3.0-rc2/index.html" )
Variables ¶
View Source
var ( InjectDefaults string APIUIVersion = NewSetting("api-ui-version", "1.1.9") // Please update the HARVESTER_API_UI_VERSION in package/Dockerfile when updating the version here. ServerVersion = NewSetting("server-version", "dev") UIIndex = NewSetting("ui-index", DefaultDashboardUIURL) UIPath = NewSetting("ui-path", "/usr/share/harvester/harvester") UISource = NewSetting("ui-source", "auto") // Options are 'auto', 'external' or 'bundled' VolumeSnapshotClass = NewSetting("volume-snapshot-class", "longhorn") BackupTargetSet = NewSetting(BackupTargetSettingName, InitBackupTargetToString()) UpgradableVersions = NewSetting("upgradable-versions", "") UpgradeCheckerEnabled = NewSetting("upgrade-checker-enabled", "true") UpgradeCheckerURL = NewSetting("upgrade-checker-url", "https://harvester-upgrade-responder.rancher.io/v1/checkupgrade") LogLevel = NewSetting("log-level", "info") // options are info, debug and trace SupportBundleImage = NewSetting("support-bundle-image", "rancher/support-bundle-kit:v0.0.3") SupportBundleImagePullPolicy = NewSetting("support-bundle-image-pull-policy", "IfNotPresent") DefaultStorageClass = NewSetting("default-storage-class", "longhorn") )
Functions ¶
func InitBackupTargetToString ¶
func InitBackupTargetToString() string
func SetProvider ¶
Types ¶
type BackupTarget ¶
type BackupTarget struct { Type TargetType `json:"type"` Endpoint string `json:"endpoint"` AccessKeyID string `json:"accessKeyId"` SecretAccessKey string `json:"secretAccessKey"` BucketName string `json:"bucketName"` BucketRegion string `json:"bucketRegion"` Cert string `json:"cert"` VirtualHostedStyle bool `json:"virtualHostedStyle"` }
type TargetType ¶
type TargetType string
const ( S3BackupType TargetType = "s3" NFSBackupType TargetType = "nfs" )
Click to show internal directories.
Click to hide internal directories.