Documentation ¶
Index ¶
- Constants
- func CreateRKE1Snapshot(client *rancher.Client, clusterName string) ([]management.EtcdBackup, error)
- func CreateRKE2K3SSnapshot(client *rancher.Client, clusterName string) ([]rancherv1.SteveAPIObject, error)
- func RestoreRKE1Snapshot(client *rancher.Client, clusterName string, ...) error
- func RestoreRKE2K3SSnapshot(client *rancher.Client, snapshotRestore *rkev1.ETCDSnapshotRestore, ...) error
Constants ¶
View Source
const ( ProvisioningSteveResouceType = "provisioning.cattle.io.cluster" SnapshotSteveResourceType = "rke.cattle.io.etcdsnapshot" SnapshotClusterNameLabel = "rke.cattle.io/cluster-name" )
Variables ¶
This section is empty.
Functions ¶
func CreateRKE1Snapshot ¶
func CreateRKE1Snapshot(client *rancher.Client, clusterName string) ([]management.EtcdBackup, error)
CreateRKE1Snapshot is a helper function to create a snapshot on an RKE1 cluster. Returns error if any.
func CreateRKE2K3SSnapshot ¶
func CreateRKE2K3SSnapshot(client *rancher.Client, clusterName string) ([]rancherv1.SteveAPIObject, error)
CreateRKE2K3SSnapshot is a helper function to create a snapshot on an RKE2 or k3s cluster. returns the list of snapshots and an error, if any.
func RestoreRKE1Snapshot ¶
func RestoreRKE1Snapshot(client *rancher.Client, clusterName string, snapshotRestore *management.RestoreFromEtcdBackupInput) error
RestoreRKE1Snapshot is a helper function to restore a snapshot on an RKE1 cluster. Returns error if any.
func RestoreRKE2K3SSnapshot ¶
func RestoreRKE2K3SSnapshot(client *rancher.Client, snapshotRestore *rkev1.ETCDSnapshotRestore, clusterName string) error
RestoreRKE2K3SSnapshot is a helper function to restore a snapshot on an RKE2 or k3s cluster. Returns error if any.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.