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 {
batch_size: usize,
storage_account: Pubkey,
files: Vec<PathBuf>,
},
}Variants§
ShadowRpcAuth
CreateStorageAccount
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.
Fields
DeleteStorageAccount
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
Cancels the deletion of a storage account enqueued for deletion.
ClaimStake
Redeem tokens afforded to a storage account after reducing storage capacity.
AddStorage
Increase the capacity of a storage account.
Fields
AddImmutableStorage
Increase the immutable storage capacity of a storage account.
Fields
ReduceStorage
Reduce the capacity of a storage account.
Fields
MakeStorageImmutable
Make a storage account immutable. This is irreversible.
GetStorageAccount
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
List all the files in a storage account.
GetText
Get a file, assume it’s text, and print it.
Fields
GetObjectData
Get basic file object data from a storage account file.
Fields
DeleteFile
Delete a file from a storage account.
Fields
EditFile
Has to be the same name as a previously uploaded file
Fields
StoreFiles
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) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
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 subcommandAuto Trait Implementations§
impl Freeze for DriveCommand
impl RefUnwindSafe for DriveCommand
impl Send for DriveCommand
impl Sync for DriveCommand
impl Unpin for DriveCommand
impl UnwindSafe for DriveCommand
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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>
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>
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 more