backuprestore

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0, CC-BY-4.0 Imports: 15 Imported by: 0

Documentation

Overview

Package backuprestore is responsible for create Jenkins master backup and restore it

Index

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

Jump to

Keyboard shortcuts

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