Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
Copy function allows the copying of files to and from pods. Similar to "kubectl cp" in implementation The function accepts, pod, container, namespace and name of file to be copied as arguments and returns and error
func NewBackupService ¶
func NewBackupService(logger *log.Logger) backupservice.Service
NewBackupService returns the Backup Service service implementation.
func NewRestoreService ¶
func NewRestoreService(logger *log.Logger) restoreservice.Service
NewRestoreService returns the Restore Service service implementation.
Types ¶
type BackupQueue ¶
type BackupQueue struct {
// contains filtered or unexported fields
}
BackupQueue holds a slice of backups to be ran
func (*BackupQueue) Add ¶
func (r *BackupQueue) Add(backup *backupservice.Backupresult)
Add method adds a backup requests to the backup queue
func (*BackupQueue) Pop ¶
func (r *BackupQueue) Pop() *backupservice.Backupresult
Pop method returns the first item in the backup queue
Source Files ¶
Click to show internal directories.
Click to hide internal directories.