snap

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package snap describes entities that are capable of performing common snapshot operations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoManager

type RepoManager interface {
	ConnectOrCreateS3(bucketName, pathPrefix string) error
	ConnectOrCreateFilesystem(path string) error
}

RepoManager is an interface that describes connecting to a repository

type Snapshotter

type Snapshotter interface {
	RepoManager
	CreateSnapshot(sourceDir string) (snapID string, err error)
	RestoreSnapshot(snapID string, restoreDir string) error
	DeleteSnapshot(snapID string) error
	ListSnapshots() ([]string, error)
	Run(args ...string) (stdout, stderr string, err error)
}

Snapshotter is an interface that describes methods for taking, restoring, deleting snapshots, and tracking them by a string snapshot ID.

Jump to

Keyboard shortcuts

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