drop pbs_tools::auth
`pbs_client::connect_to_localhost` now requires the key as optional parameter Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
@ -9,7 +9,6 @@ use proxmox::try_block;
|
||||
use proxmox::api::RpcEnvironmentType;
|
||||
use proxmox::tools::fs::CreateOptions;
|
||||
|
||||
use pbs_tools::auth::private_auth_key;
|
||||
use proxmox_rest_server::{daemon, ApiConfig, RestServer};
|
||||
|
||||
use proxmox_backup::server::auth::default_api_auth;
|
||||
|
@ -7,7 +7,7 @@ use serde_json::{json, Value};
|
||||
use proxmox::api::{api, cli::*, RpcEnvironment};
|
||||
use proxmox::tools::fs::CreateOptions;
|
||||
|
||||
use pbs_client::{connect_to_localhost, display_task_log, view_task_result};
|
||||
use pbs_client::{display_task_log, view_task_result};
|
||||
use pbs_tools::percent_encoding::percent_encode_component;
|
||||
use pbs_tools::json::required_string_param;
|
||||
use pbs_api_types::{
|
||||
@ -17,8 +17,9 @@ use pbs_api_types::{
|
||||
|
||||
use proxmox_rest_server::wait_for_local_worker;
|
||||
|
||||
use proxmox_backup::config;
|
||||
use proxmox_backup::api2;
|
||||
use proxmox_backup::client_helpers::connect_to_localhost;
|
||||
use proxmox_backup::config;
|
||||
|
||||
mod proxmox_backup_manager;
|
||||
use proxmox_backup_manager::*;
|
||||
|
@ -14,7 +14,7 @@ use proxmox::{
|
||||
},
|
||||
};
|
||||
|
||||
use pbs_client::{connect_to_localhost, view_task_result};
|
||||
use pbs_client::view_task_result;
|
||||
use pbs_tools::format::{
|
||||
HumanByte,
|
||||
render_epoch,
|
||||
@ -49,6 +49,7 @@ use proxmox_backup::{
|
||||
proxmox_tape_magic_to_text,
|
||||
},
|
||||
},
|
||||
client_helpers::connect_to_localhost,
|
||||
};
|
||||
|
||||
mod proxmox_tape;
|
||||
|
@ -16,9 +16,11 @@ use proxmox::api::{
|
||||
};
|
||||
|
||||
use pbs_api_types::{PROXMOX_UPID_REGEX, UPID};
|
||||
use pbs_client::{connect_to_localhost, view_task_result};
|
||||
use pbs_client::view_task_result;
|
||||
use proxmox_rest_server::normalize_uri_path;
|
||||
|
||||
use proxmox_backup::client_helpers::connect_to_localhost;
|
||||
|
||||
const PROG_NAME: &str = "proxmox-backup-debug api";
|
||||
const URL_ASCIISET: percent_encoding::AsciiSet = percent_encoding::NON_ALPHANUMERIC.remove(b'/');
|
||||
|
||||
|
@ -3,10 +3,11 @@ use serde_json::Value;
|
||||
|
||||
use proxmox::api::{api, cli::*, RpcEnvironment, ApiHandler};
|
||||
|
||||
use pbs_client::{connect_to_localhost, view_task_result};
|
||||
use pbs_client::view_task_result;
|
||||
use pbs_api_types::{DataStoreConfig, DATASTORE_SCHEMA};
|
||||
|
||||
use proxmox_backup::api2;
|
||||
use proxmox_backup::client_helpers::connect_to_localhost;
|
||||
|
||||
#[api(
|
||||
input: {
|
||||
|
@ -4,9 +4,10 @@ use serde_json::Value;
|
||||
use proxmox::api::{api, cli::*, RpcEnvironment, ApiHandler};
|
||||
|
||||
use pbs_api_types::JOB_ID_SCHEMA;
|
||||
use pbs_client::{connect_to_localhost, view_task_result};
|
||||
use pbs_client::view_task_result;
|
||||
|
||||
use proxmox_backup::api2;
|
||||
use proxmox_backup::client_helpers::connect_to_localhost;
|
||||
|
||||
#[api(
|
||||
input: {
|
||||
|
Reference in New Issue
Block a user