proxmox-rest-server: fix spelling errors
This commit is contained in:
parent
2194bc59c8
commit
b914b94773
|
@ -41,7 +41,7 @@ impl ApiConfig {
|
||||||
///
|
///
|
||||||
/// `env_type` - The environment type.
|
/// `env_type` - The environment type.
|
||||||
///
|
///
|
||||||
/// `api_auth` - The Authentification handler
|
/// `api_auth` - The Authentication handler
|
||||||
///
|
///
|
||||||
/// `get_index_fn` - callback to generate the root page
|
/// `get_index_fn` - callback to generate the root page
|
||||||
/// (index). Please note that this fuctions gets a reference to
|
/// (index). Please note that this fuctions gets a reference to
|
||||||
|
@ -217,9 +217,9 @@ impl ApiConfig {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Enable the authentification log feature
|
/// Enable the authentication log feature
|
||||||
///
|
///
|
||||||
/// When enabled, all authentification requests are logged to the
|
/// When enabled, all authentication requests are logged to the
|
||||||
/// specified file. This function also registers a
|
/// specified file. This function also registers a
|
||||||
/// `api-auth-log-reopen` command one the [CommandSocket].
|
/// `api-auth-log-reopen` command one the [CommandSocket].
|
||||||
pub fn enable_auth_log<P>(
|
pub fn enable_auth_log<P>(
|
||||||
|
|
|
@ -5,13 +5,12 @@
|
||||||
//!
|
//!
|
||||||
//! ## Features
|
//! ## Features
|
||||||
//!
|
//!
|
||||||
//! * HTTP and HTTP2
|
|
||||||
//! * highly threaded code, uses Rust async
|
//! * highly threaded code, uses Rust async
|
||||||
//! * static API definitions using schemas
|
//! * static API definitions using schemas
|
||||||
//! * restartable systemd daemons using `systemd_notify`
|
//! * restartable systemd daemons using `systemd_notify`
|
||||||
//! * support for long running worker tasks (threads or async tokio tasks)
|
//! * support for long running worker tasks (threads or async tokio tasks)
|
||||||
//! * supports separate access and authentification log files
|
//! * supports separate access and authentication log files
|
||||||
//! * separate control socket to trigger management operations
|
//! * extra control socket to trigger management operations
|
||||||
//! - logfile rotation
|
//! - logfile rotation
|
||||||
//! - worker task management
|
//! - worker task management
|
||||||
//! * generic interface to authenticate user
|
//! * generic interface to authenticate user
|
||||||
|
@ -57,7 +56,7 @@ pub use worker_task::*;
|
||||||
mod h2service;
|
mod h2service;
|
||||||
pub use h2service::*;
|
pub use h2service::*;
|
||||||
|
|
||||||
/// Authentification Error
|
/// Authentication Error
|
||||||
pub enum AuthError {
|
pub enum AuthError {
|
||||||
Generic(Error),
|
Generic(Error),
|
||||||
NoData,
|
NoData,
|
||||||
|
@ -69,7 +68,7 @@ impl From<Error> for AuthError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// User Authentification trait
|
/// User Authentication trait
|
||||||
pub trait ApiAuth {
|
pub trait ApiAuth {
|
||||||
/// Extract user credentials from headers and check them.
|
/// Extract user credentials from headers and check them.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue