Skip to main content

libgrite_cli/
snapshot.rs

1use crate::context::GriteContext;
2use crate::types::*;
3use libgrite_core::GriteError;
4
5/// Create a snapshot.
6pub fn snapshot_create(
7    ctx: &GriteContext,
8    _opts: &SnapshotCreateOptions,
9) -> Result<SnapshotCreateResult, GriteError> {
10    let _ = ctx;
11    todo!("snapshot_create not yet implemented in library")
12}
13
14/// List snapshots.
15pub fn snapshot_list(
16    ctx: &GriteContext,
17    _opts: &SnapshotListOptions,
18) -> Result<SnapshotListResult, GriteError> {
19    let _ = ctx;
20    todo!("snapshot_list not yet implemented in library")
21}
22
23/// Garbage-collect snapshots.
24pub fn snapshot_gc(
25    ctx: &GriteContext,
26    _opts: &SnapshotGcOptions,
27) -> Result<SnapshotGcResult, GriteError> {
28    let _ = ctx;
29    todo!("snapshot_gc not yet implemented in library")
30}