pub enum Command {
Show 15 variants
TenantCreate {
name: String,
retention: Option<String>,
},
TenantList,
TenantSetRetention {
id: String,
retention: String,
},
TenantRemove {
id: String,
force: bool,
override_holds: bool,
},
TenantSetMetadata {
id: String,
metadata: String,
},
StorageMoveObjects,
ExportParquet {
tenant: String,
to: String,
since: Option<String>,
until: Option<String>,
},
KeyCreate {
owner: Owner,
label: String,
},
KeyList {
tenant: Option<String>,
},
KeyRevoke {
id: String,
},
AuditExport {
log: Log,
since: Option<i64>,
},
RekeyTenant {
id: String,
},
RekeyMaster {
new_master: PathBuf,
},
Check,
Backup {
to: PathBuf,
},
}Expand description
A command, as written on the command line.
Variants§
TenantCreate
TenantList
TenantSetRetention
retention is a period, or default for the server’s.
TenantRemove
TenantSetMetadata
metadata is none, counts or full.
StorageMoveObjects
Moves every tenant’s sealed objects from the data directory to the
bucket storage.objects = "s3" names. Runs only while no server
does.
ExportParquet
Writes the tenant’s kept versions as Parquet files to to, a
directory or an s3://bucket/prefix, beside a running server.
since and until are RFC 3339 times.
KeyCreate
KeyList
KeyRevoke
AuditExport
RekeyTenant
Rotates a tenant’s key.
RekeyMaster
Rotates the master key to the one in new_master.
Check
Examines every tenant and reports what needs attention.
Backup
Writes a consistent copy of the data directory to to, which must
not exist, beside a running server.
Implementations§
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.