Documentation
¶
Index ¶
- Constants
- func GetBool(str string, defValue bool) bool
- func GetIVDPETMFromParamsMap(params map[string]interface{}, logger logrus.FieldLogger) (*ivd.IVDProtectedEntityTypeManager, error)
- func GetS3PETMFromParamsMap(params map[string]interface{}, logger logrus.FieldLogger) (*s3repository.ProtectedEntityTypeManager, error)
- func RetrieveVSLFromVeleroBSLs(params map[string]interface{}, logger logrus.FieldLogger) error
- func RetrieveVcConfigSecret(params map[string]interface{}, logger logrus.FieldLogger) error
Constants ¶
View Source
const ( // Duration at which lease expires on CRs. LeaseDuration = 60 * time.Second // Duration after which leader renews its lease. RenewDeadline = 15 * time.Second // Duration after which non-leader retries to acquire lease. RetryPeriod = 5 * time.Second )
View Source
const ( // The key of SnapshotManager mode for data movement. Specifically, boolean string values are expected. // By default, it is "false". No data movement from local to remote storage if "true" is set. VolumeSnapshotterLocalMode = "LocalMode" // The key of SnapshotManager location VolumeSnapshotterManagerLocation = "SnapshotManagerLocation" // Valid values for the config with the VolumeSnapshotterManagerLocation key VolumeSnapshotterPlugin = "Plugin" VolumeSnapshotterDataServer = "DataServer" )
configuration constants for the volume snapshot plugin
View Source
const ( // Duration after which Reflector resyncs CRs and calls UpdateFunc on each of the existing CRs. ResyncPeriod = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func GetIVDPETMFromParamsMap ¶
func GetIVDPETMFromParamsMap(params map[string]interface{}, logger logrus.FieldLogger) (*ivd.IVDProtectedEntityTypeManager, error)
func GetS3PETMFromParamsMap ¶
func GetS3PETMFromParamsMap(params map[string]interface{}, logger logrus.FieldLogger) (*s3repository.ProtectedEntityTypeManager, error)
func RetrieveVSLFromVeleroBSLs ¶
func RetrieveVSLFromVeleroBSLs(params map[string]interface{}, logger logrus.FieldLogger) error
* Retrieve the Volume Snapshot Location(VSL) as the remote storage location * for the data manager component in plugin from the Backup Storage Locations(BSLs) * of Velero. It will always pick up the first available one.
func RetrieveVcConfigSecret ¶
func RetrieveVcConfigSecret(params map[string]interface{}, logger logrus.FieldLogger) error
* In the CSI setup, VC credential is stored as a secret * under the kube-system namespace.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.