snapshots

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseAllSnapshots

func CloseAllSnapshots()

func GarbageCollect added in v0.3.0

func GarbageCollect()

Types

type KnownSnapshots

type KnownSnapshots struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*KnownSnapshots) Delete

func (k *KnownSnapshots) Delete(path string) error

func (*KnownSnapshots) Get

func (k *KnownSnapshots) Get(path string) (*WinVSSSnapshot, error)

func (*KnownSnapshots) GetAll

func (k *KnownSnapshots) GetAll() ([]WinVSSSnapshot, error)

func (*KnownSnapshots) Save

func (k *KnownSnapshots) Save(snap *WinVSSSnapshot) error

type WinVSSSnapshot

type WinVSSSnapshot struct {
	SnapshotPath string    `json:"path"`
	Id           string    `json:"vss_id"`
	LastAccessed time.Time `json:"last_accessed"`
	TimeStarted  time.Time `json:"time_started"`
}

func Snapshot

func Snapshot(driveLetter string) (*WinVSSSnapshot, error)

func (*WinVSSSnapshot) Close

func (instance *WinVSSSnapshot) Close()

func (*WinVSSSnapshot) GetTimestamp added in v0.2.0

func (instance *WinVSSSnapshot) GetTimestamp() time.Time

func (*WinVSSSnapshot) UpdateTimestamp

func (instance *WinVSSSnapshot) UpdateTimestamp()

Jump to

Keyboard shortcuts

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