Show metadata properties with info CLI command, check if file exists

This commit is contained in:
timvisee 2018-04-02 21:52:17 +02:00
parent 349e62ed1c
commit a7827197a7
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2
7 changed files with 142 additions and 10 deletions

View file

@ -52,6 +52,11 @@ impl Metadata {
&self.name
}
/// Get the file MIME type.
pub fn mime(&self) -> &str {
&self.mime
}
/// Get the input vector
// TODO: use an input vector length from a constant
pub fn iv(&self) -> [u8; 12] {

View file

@ -133,6 +133,11 @@ impl RemoteFile {
))
}
/// Get the file ID.
pub fn id(&self) -> &str {
&self.id
}
/// Get the raw secret.
pub fn secret_raw(&self) -> &Vec<u8> {
// A secret must have been set