snapshot

package
v2.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 15 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(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 Snapshot

type Snapshot struct {
	Driver   volume.Driver
	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

Snapshot snapshot

func (*Snapshot) Start

func (s *Snapshot) Start() error

Start initialize the snapshot components

func (*Snapshot) Stop

func (s *Snapshot) Stop() error

Stop Stops the snapshotter controllers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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