Documentation ¶
Overview ¶
Package backuprestore is responsible for create Jenkins master backup and restore it
Index ¶
- type BackupAndRestore
- func (bar *BackupAndRestore) Backup(setBackupDoneBeforePodDeletion bool) error
- func (bar *BackupAndRestore) EnsureBackupTrigger() error
- func (bar *BackupAndRestore) IsBackupTriggerEnabled() bool
- func (bar *BackupAndRestore) Restore(jenkinsClient jenkinsclient.Jenkins) error
- func (bar *BackupAndRestore) StopBackupTrigger()
- func (bar *BackupAndRestore) Validate() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupAndRestore ¶
type BackupAndRestore struct { configuration.Configuration // contains filtered or unexported fields }
BackupAndRestore represents Jenkins backup and restore client
func New ¶
func New(configuration configuration.Configuration, logger logr.Logger) *BackupAndRestore
New returns Jenkins backup and restore client
func (*BackupAndRestore) Backup ¶
func (bar *BackupAndRestore) Backup(setBackupDoneBeforePodDeletion bool) error
Backup performs Jenkins backup operation
func (*BackupAndRestore) EnsureBackupTrigger ¶
func (bar *BackupAndRestore) EnsureBackupTrigger() error
EnsureBackupTrigger creates or update trigger which update CR to make backup
func (*BackupAndRestore) IsBackupTriggerEnabled ¶
func (bar *BackupAndRestore) IsBackupTriggerEnabled() bool
IsBackupTriggerEnabled returns true if the backup trigger is enabled
func (*BackupAndRestore) Restore ¶
func (bar *BackupAndRestore) Restore(jenkinsClient jenkinsclient.Jenkins) error
Restore performs Jenkins restore backup operation
func (*BackupAndRestore) StopBackupTrigger ¶
func (bar *BackupAndRestore) StopBackupTrigger()
StopBackupTrigger stops trigger which update CR to make backup
func (*BackupAndRestore) Validate ¶
func (bar *BackupAndRestore) Validate() []string
Validate validates backup and restore configuration
Click to show internal directories.
Click to hide internal directories.