backuphandler

package module
v0.0.0-...-3febccf Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

README

repository-template

new repository template

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(pod, container, namespace, filename string) error

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

Pop method returns the first item in the backup queue

Jump to

Keyboard shortcuts

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