pub struct DeployClient { /* private fields */ }Implementations§
Source§impl DeployClient
impl DeployClient
pub fn new(config: DeployClientConfig) -> Self
pub fn config(&self) -> &DeployClientConfig
pub fn with_token(self, token: impl Into<String>) -> Self
pub async fn login( &mut self, request: &LoginRequest, ) -> DeployResult<LoginResponse>
pub async fn login_ephemeral( &mut self, request: &LoginRequest, ) -> DeployResult<LoginResponse>
pub async fn push_deployment( &self, request: &PushDeploymentRequest, ) -> DeployResult<PushDeploymentResponse>
pub async fn dashboard(&self) -> DeployResult<DashboardResponse>
pub async fn auth_session(&self) -> DeployResult<AuthSessionResponse>
pub async fn agent_detail( &self, agent_name: &str, environment: &str, ) -> DeployResult<AgentDetail>
pub async fn status( &self, environment: &str, agent_name: Option<&str>, ) -> DeployResult<DeploymentStatusResponse>
pub async fn history( &self, environment: &str, agent_name: Option<&str>, ) -> DeployResult<DeploymentHistoryResponse>
pub async fn rollback( &self, deployment_id: &str, ) -> DeployResult<DeploymentStatusResponse>
pub async fn promote( &self, deployment_id: &str, ) -> DeployResult<DeploymentStatusResponse>
pub async fn set_secret(&self, request: &SecretSetRequest) -> DeployResult<()>
pub async fn list_secrets( &self, environment: &str, ) -> DeployResult<SecretListResponse>
pub async fn delete_secret( &self, environment: &str, key: &str, ) -> DeployResult<()>
Auto Trait Implementations§
impl Freeze for DeployClient
impl !RefUnwindSafe for DeployClient
impl Send for DeployClient
impl Sync for DeployClient
impl Unpin for DeployClient
impl UnsafeUnpin for DeployClient
impl !UnwindSafe for DeployClient
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