prebackup

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConditionPreBackupPodsReady is True if Deployments for all Container definitions were created and are ready
	ConditionPreBackupPodsReady k8upv1alpha1.ConditionType = "PreBackupPodsReady"

	// ReasonNoPreBackupPodsFound is given when no PreBackupPods are found in the same namespace
	ReasonNoPreBackupPodsFound k8upv1alpha1.ConditionReason = "NoPreBackupPodsFound"
	// ReasonWaiting is given when PreBackupPods are waiting to be started
	ReasonWaiting k8upv1alpha1.ConditionReason = "Waiting"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PreBackup

type PreBackup struct {
	job.Config
}

PreBackup defines a preBackup.

func NewPrebackup

func NewPrebackup(config job.Config) *PreBackup

NewPrebackup returns a new PreBackup. Although it is not a direct job that is being triggered, it takes the same config type as the other job types.

func (*PreBackup) Start

func (p *PreBackup) Start() error

Start will start the defined pods as deployments.

func (*PreBackup) Stop

func (p *PreBackup) Stop()

Stop will remove the deployments.

Jump to

Keyboard shortcuts

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