Documentation
¶
Index ¶
- Constants
- Variables
- func Clients() (kubernetes.Interface, versioned.Interface)
- func CreateBackup(c versioned.Interface, backupName, nameSpace, resourceType string) (*v1beta1.Backup, error)
- func CreateBackupSpecResource(c versioned.Interface, ...) (*v1beta1.Backup, error)
- func CreateRestore(c versioned.Interface, restoreName, backupName, backupNS, restoreNS string) (*v1beta1.Restore, error)
- func CreateRestoreWithPrefix(c versioned.Interface, ...) (*v1beta1.Restore, error)
- func DeleteBackup(c versioned.Interface, backupName string) error
- func DeleteRestore(c versioned.Interface, restoreName string) error
- func NewBackup(name string, ns string, objType string) *kahuapi.Backup
- func NewBackupSpecResource(name string, ns string, objType, objName string) *kahuapi.Backup
- func NewRestore(name, nsRestore, nsBackup, backupName string) *kahuapi.Restore
- func NewRestoreWithPrefix(name, nsRestore, nsBackup, backupName, prefix string) *kahuapi.Restore
- func WaitForBackupCreate(c versioned.Interface, backupName string) error
- func WaitForBackupDelete(c versioned.Interface, backupName string) error
- func WaitForRestoreCreate(c versioned.Interface, restoreName string) error
- func WaitForRestoreDelete(c versioned.Interface, restoreName string) error
Constants ¶
View Source
const ( AgentBaseName = "controller-manager" PollInterval = 2 * time.Second PollTimeout = 30 * time.Second )
Variables ¶
View Source
var BackupNameSpace string = util.GenerateUniqueName("backup")
View Source
var RestoreNameSpace string = util.GenerateUniqueName("restore")
Functions ¶
func CreateBackup ¶
func CreateBackupSpecResource ¶ added in v1.0.1
func CreateRestore ¶
func CreateRestoreWithPrefix ¶
func NewBackupSpecResource ¶ added in v1.0.1
func NewRestore ¶
func NewRestoreWithPrefix ¶
func WaitForRestoreCreate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.