Expand description
SSH-client for sending signing requests.
This module provides Signstar client. The client is used to connect to a Signstar host and request signatures for given files.
Β§Examples
use signstar_request_signature::Request;
use signstar_request_signature::ssh::client::ConnectConfig;
let options = ConnectConfig::from_first_system_config()?;
let mut session = options.connect("user").await?;
let request = Request::for_file("package")?;
let response = session.send(&request).await?;
// process responseStructsΒ§
- Connect
Config - Connection configuration for sending a signature request.
- Connect
Options - Connection options for sending a signature request.
- KeyValidator π
- Validator for a hostβs SSH keys and a list of
known_hostsentries. - Session
- An open session with a host that can be used to send multiple signing requests.
- Signstar
Host - The connection to a Signstar system a specific user can use.
EnumsΒ§
- Error
- SSH communication error.
ConstantsΒ§
- DEFAULT_
CONFIG - The default config file below β/usr/β.
- ETC_
OVERRIDE_ CONFIG - The override config file below β/etc/β.
- RUN_
OVERRIDE_ CONFIG - The override config file below β/run/β.
FunctionsΒ§
- deserialize_
entries π - validate_
host_ πids - Ensures, that each
host_idin aConnectConfigis defined. - validate_
host_ πport_ uniqueness - Ensures, that each host:port combination is unique.
- validate_
known_ πhosts_ consistency - Ensures, that the
known_hostsentries are unique perhost:portcombinations. - validate_
ssh_ πpublic_ key_ consistency - Ensures, that SSH public keys are unique per user.
Type AliasesΒ§
- Result π