Enum iroh_blobs::cli::BlobCommands
source · pub enum BlobCommands {
Add {
source: BlobSource,
options: BlobAddOptions,
},
Get {
ticket: TicketOrHash,
address: Vec<SocketAddr>,
relay_url: Option<RelayUrl>,
recursive: Option<bool>,
override_addresses: bool,
node: Option<PublicKey>,
out: Option<OutputTarget>,
stable: bool,
tag: Option<String>,
queued: bool,
},
Export {
hash: Hash,
out: OutputTarget,
recursive: bool,
stable: bool,
},
List(ListCommands),
Validate {
verbose: u8,
repair: bool,
},
ConsistencyCheck {
verbose: u8,
repair: bool,
},
Delete(DeleteCommands),
Share {
hash: Hash,
addr_options: AddrInfoOptions,
recursive: bool,
debug: bool,
},
}
cli
only.Expand description
Subcommands for the blob command.
Variants§
Add
Add data from PATH to the running node.
Fields
source: BlobSource
Path to a file or folder.
If set to STDIN
, the data will be read from stdin.
options: BlobAddOptions
Get
Download data to the running node’s database and provide it.
In addition to downloading the data, you can also specify an optional output directory where the data will be exported to after it has been downloaded.
Fields
ticket: TicketOrHash
Ticket or Hash to use.
address: Vec<SocketAddr>
Additional socket address to use to contact the node. Can be used multiple times.
out: Option<OutputTarget>
Directory or file in which to save the file(s).
If set to STDOUT
the output will be redirected to stdout.
If not specified, the data will only be stored internally.
Export
Export a blob from the internal blob store to the local filesystem.
Fields
out: OutputTarget
Directory or file in which to save the file(s).
If set to STDOUT
the output will be redirected to stdout.
List(ListCommands)
List available content on the node.
Validate
Validate hashes on the running node.
Fields
ConsistencyCheck
Perform a database consistency check on the running node.
Fields
Delete(DeleteCommands)
Delete content on the node.
Get a ticket to share this blob.
Implementations§
Trait Implementations§
source§impl Clone for BlobCommands
impl Clone for BlobCommands
source§fn clone(&self) -> BlobCommands
fn clone(&self) -> BlobCommands
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BlobCommands
impl Debug for BlobCommands
source§impl FromArgMatches for BlobCommands
impl FromArgMatches for BlobCommands
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 Subcommand for BlobCommands
impl Subcommand for BlobCommands
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moresource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommand