rule

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecutePostSnapRule

func ExecutePostSnapRule(pvcs []v1.PersistentVolumeClaim, snap *crdv1.VolumeSnapshot) error

ExecutePostSnapRule executes the post snapshot rule for the given snapshot. pvcs is a list of PVCs that are associated with the snapshot

func ExecutePreSnapRule

func ExecutePreSnapRule(pvcs []v1.PersistentVolumeClaim, snap *crdv1.VolumeSnapshot) (chan bool, error)

ExecutePreSnapRule executes the pre snapshot rule. pvcs is a list of PVCs that are associated with the snapshot. It returns a channel which the caller can trigger to delete the termination of background commands

func PerformRuleRecovery

func PerformRuleRecovery() error

PerformRuleRecovery terminates potential background commands running pods for the given snapshot

func ValidateSnapRule

func ValidateSnapRule(snap *crdv1.VolumeSnapshot) error

ValidateSnapRule validates the rules if they are present in the given snapshot's annotations

Types

This section is empty.

Jump to

Keyboard shortcuts

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