Enum shadow_drive_cli::command::drive::DriveCommand
source · pub enum DriveCommand {
Show 17 variants
ShadowRpcAuth,
CreateStorageAccount {
name: String,
size: Byte,
},
DeleteStorageAccount {
storage_account: Pubkey,
},
CancelDeleteStorageAccount {
storage_account: Pubkey,
},
ClaimStake {
storage_account: Pubkey,
},
AddStorage {
storage_account: Pubkey,
size: Byte,
},
AddImmutableStorage {
storage_account: Pubkey,
size: Byte,
},
ReduceStorage {
storage_account: Pubkey,
size: Byte,
},
MakeStorageImmutable {
storage_account: Pubkey,
},
GetStorageAccount {
storage_account: Pubkey,
},
GetStorageAccounts {
owner: Option<Pubkey>,
},
ListFiles {
storage_account: Pubkey,
},
GetText {
storage_account: Pubkey,
filename: String,
},
GetObjectData {
storage_account: Pubkey,
file: String,
},
DeleteFile {
storage_account: Pubkey,
filename: String,
},
EditFile {
storage_account: Pubkey,
path: PathBuf,
},
StoreFiles {
storage_account: Pubkey,
files: Vec<PathBuf>,
},
}Variants§
ShadowRpcAuth
CreateStorageAccount
Fields
Create an account on which to store data. Storage accounts can be globally, irreversibly marked immutable for a one-time fee. Otherwise, files can be added or deleted from them, and space rented indefinitely.
DeleteStorageAccount
Fields
storage_account: PubkeyThe account to delete
Queues a storage account for deletion. While the request is still enqueued and not yet carried out, a cancellation can be made (see cancel-delete-storage-account subcommand).
CancelDeleteStorageAccount
Fields
storage_account: PubkeyThe account for which to cancel deletion.
Cancels the deletion of a storage account enqueued for deletion.
ClaimStake
Fields
storage_account: PubkeyThe account whose stake to claim.
Redeem tokens afforded to a storage account after reducing storage capacity.
AddStorage
Fields
storage_account: PubkeyStorage account to modify
Increase the capacity of a storage account.
AddImmutableStorage
Fields
storage_account: PubkeyStorage account to modify
Increase the immutable storage capacity of a storage account.
ReduceStorage
Fields
storage_account: PubkeyStorage account to modify
Reduce the capacity of a storage account.
MakeStorageImmutable
Fields
storage_account: PubkeyStorage account to be marked immutable
Make a storage account immutable. This is irreversible.
GetStorageAccount
Fields
storage_account: PubkeyAccount whose metadata will be fetched.
Fetch the metadata pertaining to a storage account.
GetStorageAccounts
Fetch a list of storage accounts owned by a particular pubkey. If no owner is provided, the configured signer is used.
ListFiles
Fields
storage_account: PubkeyStorage account whose files to list.
List all the files in a storage account.
GetText
Fields
storage_account: PubkeyStorage account where the file is located.
Get a file, assume it’s text, and print it.
GetObjectData
Fields
storage_account: PubkeyStorage account where the file is located.
Get basic file object data from a storage account file.
DeleteFile
Fields
storage_account: PubkeyStorage account where the file to delete is located.
Delete a file from a storage account.
EditFile
Fields
storage_account: PubkeyStorage account where the file to edit is located.
Has to be the same name as a previously uploaded file
StoreFiles
Fields
storage_account: PubkeyThe storage account on which to upload the files
Upload one or more files to a storage account.
Implementations§
Trait Implementations§
source§impl CommandFactory for DriveCommand
impl CommandFactory for DriveCommand
source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
CommandFactory::command_for_updatesource§impl Debug for DriveCommand
impl Debug for DriveCommand
source§impl FromArgMatches for DriveCommand
impl FromArgMatches for DriveCommand
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches to self.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches to self.source§impl Parser for DriveCommand
impl Parser for DriveCommand
source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§impl Subcommand for DriveCommand
impl Subcommand for DriveCommand
source§fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
source§fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand