Struct Client

Source
pub struct Client {}

Implementations§

Source§

impl Client

Source

pub fn cache(&self, key: &str) -> Result<Cache, Error>

Source

pub fn devbox(&self) -> Result<Devbox, Error>

Source

pub fn devenv(&self) -> Result<Devenv, Error>

Source

pub fn directory(&self, path: &str) -> Result<Directory, Error>

Source

pub fn envhub(&self) -> Result<Envhub, Error>

Source

pub fn file(&self, path: &str) -> Result<File, Error>

Source

pub fn flox(&self) -> Result<Flox, Error>

Source

pub fn git(&self, url: &str) -> Result<Git, Error>

Source

pub fn http(&self, url: &str) -> Result<File, Error>

Source

pub fn mise(&self) -> Result<Mise, Error>

Source

pub fn hermit(&self) -> Result<Hermit, Error>

Source

pub fn nix(&self, args: NixArgs) -> Result<Nix, Error>

Source

pub fn pipeline(&self, name: &str) -> Result<Pipeline, Error>

Source

pub fn pixi(&self) -> Result<Pixi, Error>

Source

pub fn pkgx(&self) -> Result<Pkgx, Error>

Source

pub fn proto(&self) -> Result<Proto, Error>

Source

pub fn get_env(&self, key: &str) -> Result<String, Error>

Source

pub fn has_env(&self, key: &str) -> Result<bool, Error>

Source

pub fn set_envs(&self, envs: Vec<(String, String)>) -> Result<(), Error>

Source

pub fn remove_env(&self, key: &str) -> Result<(), Error>

Source

pub fn get_os(&self) -> Result<String, Error>

Source

pub fn get_arch(&self) -> Result<String, Error>

Source

pub fn call( &self, url: &str, func: &str, args: Vec<&str>, ) -> Result<String, Error>

Source

pub fn google_secret_manager( &self, project: &str, google_credentials_file: &str, ) -> Result<SecretManager, Error>

Source

pub fn aws_secrets_manager( &self, region: &str, access_key_id: &str, secret_access_key: &str, ) -> Result<SecretManager, Error>

Source

pub fn azure_keyvault( &self, client_id: &str, client_secret: &str, tenant_id: &str, keyvault_name: &str, keyvault_url: &str, ) -> Result<SecretManager, Error>

Source

pub fn hashicorp_vault( &self, address: &str, token: &str, cacert: Option<&str>, ) -> Result<SecretManager, Error>

Source

pub fn set_secret(&self, name: &str, value: &str) -> Result<Secret, Error>

Auto Trait Implementations§

§

impl Freeze for Client

§

impl RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl UnwindSafe for Client

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.