kahu

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 CreateBackup(c versioned.Interface, backupName, nameSpace, resourceType string) (*v1beta1.Backup, error)

func CreateBackupSpecResource added in v1.0.1

func CreateBackupSpecResource(c versioned.Interface, backupName, nameSpace, resourceType, resourceName string) (*v1beta1.Backup, error)

func CreateRestore

func CreateRestore(c versioned.Interface, restoreName, backupName, backupNS, restoreNS string) (*v1beta1.Restore, error)

func CreateRestoreWithPrefix

func CreateRestoreWithPrefix(c versioned.Interface, restoreName, prefix, backupName, backupNS, restoreNS string) (*v1beta1.Restore, error)

func DeleteBackup

func DeleteBackup(c versioned.Interface, backupName string) error

func DeleteRestore

func DeleteRestore(c versioned.Interface, restoreName string) error

func NewBackup

func NewBackup(name string, ns string, objType string) *kahuapi.Backup

func NewBackupSpecResource added in v1.0.1

func NewBackupSpecResource(name string, ns string, objType, objName string) *kahuapi.Backup

func NewRestore

func NewRestore(name, nsRestore, nsBackup, backupName string) *kahuapi.Restore

func NewRestoreWithPrefix

func NewRestoreWithPrefix(name, nsRestore, nsBackup, backupName, prefix string) *kahuapi.Restore

func WaitForBackupCreate

func WaitForBackupCreate(c versioned.Interface, backupName string) error

func WaitForBackupDelete

func WaitForBackupDelete(c versioned.Interface, backupName string) error

func WaitForRestoreCreate

func WaitForRestoreCreate(c versioned.Interface, restoreName string) error

func WaitForRestoreDelete

func WaitForRestoreDelete(c versioned.Interface, restoreName string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL