ostrya-remote
Ostrya [n. a botanical genus within the family Betulaceae, commonly known as ironwood tree] is a pure-Rust, async implementation of the ostree repository system, written from scratch.
The wire codec and the client sessions of the ostrya push and pull.
A caller pushes a local directory as a commit that the server makes with
push_tree, or its own objects with a PushSession. A PullSession reads the summary and the ref listings of a remote. The
crate has no repository knowledge, and it compiles on Linux, macOS, and Windows.
With the s3 feature, the s3 module signs S3 requests, reads the
settings and the credentials of an S3 endpoint, and holds the client of a
bucket repository. PullSession::connect opens a pull session to an S3
endpoint, over HTTP with a fetcher that signs each request.
API documentation: https://docs.rs/ostrya-remote
Entry points
Endpoint::parsereads an ssh or HTTP address into anEndpoint.push_treepushes a local directory to an endpoint as one server commit.scan_treechecks the options of a tree push and scans the directory, for a writer that makes the commit itself.PushSession::connectopens a push session to an endpoint.PushSession::preparechecks an endpoint before the session opens.PushSession::over_streamopens a push session over a pair of byte streams.PullSession::connectopens the session of a pull to an endpoint.StreamSession::connectopens a stream session over ssh.StreamSession::check_command_linechecks the ssh command line of a pull before the session opens.Erroris the error of each fallible operation.
Modules
proto: the wire format and its codec.session: the push and pull sessions, their progress, and the one-way stream.transport: the endpoints, the addresses, and the ssh and HTTP transports.tree: the walk and the hash of a local directory.s3(features3): S3 request signing, the settings and credentials of an S3 endpoint, the address of a bucket repository, and the bucket client.
Features
smol(default): thesmolbackend ofostrya-rtfor the ssh and HTTP transports.tokio: thetokiobackend ofostrya-rtfor the ssh and HTTP transports.s3: thes3module, which signs S3 requests with AWS Signature Version 4, reads the AWS credentials, and holds the bucket client.
Examples
use ;
let endpoint = parse?;
let opts = TreePushOptions ;
let outcome = push_tree.await?;
println!;