pub struct Config {
pub sps_root: PathBuf,
pub api_base_url: String,
pub artifact_domain: Option<String>,
pub docker_registry_token: Option<String>,
pub docker_registry_basic_auth: Option<String>,
pub github_api_token: Option<String>,
}
Fields§
§sps_root: PathBuf
§api_base_url: String
§artifact_domain: Option<String>
§docker_registry_token: Option<String>
§docker_registry_basic_auth: Option<String>
§github_api_token: Option<String>
Implementations§
Source§impl Config
impl Config
pub fn load() -> Result<Config, SpsError>
pub fn sps_root(&self) -> &Path
pub fn bin_dir(&self) -> PathBuf
pub fn cellar_dir(&self) -> PathBuf
pub fn cask_room_dir(&self) -> PathBuf
pub fn cask_store_dir(&self) -> PathBuf
pub fn opt_dir(&self) -> PathBuf
pub fn taps_dir(&self) -> PathBuf
pub fn cache_dir(&self) -> PathBuf
pub fn logs_dir(&self) -> PathBuf
pub fn tmp_dir(&self) -> PathBuf
pub fn state_dir(&self) -> PathBuf
pub fn man_base_dir(&self) -> PathBuf
pub fn sps_root_marker_path(&self) -> PathBuf
pub fn applications_dir(&self) -> PathBuf
pub fn formula_cellar_dir(&self, formula_name: &str) -> PathBuf
pub fn formula_keg_path(&self, formula_name: &str, version_str: &str) -> PathBuf
pub fn formula_opt_path(&self, formula_name: &str) -> PathBuf
pub fn cask_room_token_path(&self, cask_token: &str) -> PathBuf
pub fn cask_store_token_path(&self, cask_token: &str) -> PathBuf
pub fn cask_store_version_path( &self, cask_token: &str, version_str: &str, ) -> PathBuf
pub fn cask_store_app_path( &self, cask_token: &str, version_str: &str, app_name: &str, ) -> PathBuf
pub fn cask_room_version_path( &self, cask_token: &str, version_str: &str, ) -> PathBuf
pub fn home_dir(&self) -> PathBuf
pub fn get_tap_path(&self, name: &str) -> Option<PathBuf>
pub fn get_formula_path_from_tap( &self, tap_name: &str, formula_name: &str, ) -> Option<PathBuf>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more