pub struct VarpulisClient { /* private fields */ }Expand description
Client for the Varpulis REST API.
Implementations§
Source§impl VarpulisClient
impl VarpulisClient
pub fn new(base_url: &str, api_key: &str) -> Self
Sourcepub async fn deploy_pipeline(
&self,
name: &str,
source: &str,
) -> Result<DeployPipelineResponse, ClientError>
pub async fn deploy_pipeline( &self, name: &str, source: &str, ) -> Result<DeployPipelineResponse, ClientError>
Deploy a pipeline to the remote server.
Sourcepub async fn list_pipelines(&self) -> Result<PipelineListResponse, ClientError>
pub async fn list_pipelines(&self) -> Result<PipelineListResponse, ClientError>
List all pipelines for the authenticated tenant.
Sourcepub async fn delete_pipeline(
&self,
pipeline_id: &str,
) -> Result<(), ClientError>
pub async fn delete_pipeline( &self, pipeline_id: &str, ) -> Result<(), ClientError>
Delete a pipeline by ID.
Sourcepub fn logs_url(&self, pipeline_id: &str) -> String
pub fn logs_url(&self, pipeline_id: &str) -> String
Stream logs for a pipeline via SSE. Returns the URL for SSE connection (caller handles streaming).
Sourcepub async fn get_usage(&self) -> Result<UsageResponse, ClientError>
pub async fn get_usage(&self) -> Result<UsageResponse, ClientError>
Get usage statistics for the authenticated tenant.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VarpulisClient
impl !RefUnwindSafe for VarpulisClient
impl Send for VarpulisClient
impl Sync for VarpulisClient
impl Unpin for VarpulisClient
impl UnsafeUnpin for VarpulisClient
impl !UnwindSafe for VarpulisClient
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more