snapshot

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 21 Imported by: 6

Documentation

Index

Constants

View Source
const (

	// StorkSnapshotSourceNamespaceAnnotation Annotation used to specify the
	// source of the snapshot when creating a PVC
	StorkSnapshotSourceNamespaceAnnotation = "stork/snapshot-source-namespace"
)

Variables

This section is empty.

Functions

func ExecutePostSnapRule added in v1.4.0

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 added in v1.4.0

func ExecutePreSnapRule(snap *crdv1.VolumeSnapshot, pvcs []v1.PersistentVolumeClaim) (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 GetProvisionerName

func GetProvisionerName() string

GetProvisionerName Gets the name of the provisioner

Types

type Controller

type Controller struct {
	Driver volume.Driver
	// contains filtered or unexported fields
}

Controller Snapshot Controller

func (*Controller) Start

func (c *Controller) Start() error

Start Starts the snapshot controller

func (*Controller) Stop

func (c *Controller) Stop() error

Stop Stops the snapshot controller

Jump to

Keyboard shortcuts

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