pub struct GcsClient { /* private fields */ }Expand description
Minimal GCS client using the JSON API. Authenticates via service account JWT.
Implementations§
Source§impl GcsClient
impl GcsClient
Sourcepub fn new(bucket: String, service_account_json: &str) -> Result<Self, GcsError>
pub fn new(bucket: String, service_account_json: &str) -> Result<Self, GcsError>
Create a new GCS client from a bucket name and service account JSON string.
Sourcepub async fn list_skill_names(&self) -> Result<Vec<String>, GcsError>
pub async fn list_skill_names(&self) -> Result<Vec<String>, GcsError>
List top-level “directories” (prefixes) in the bucket.
Returns skill names like ["fal-generate", "compliance-screening", ...].
Sourcepub async fn list_objects(&self, prefix: &str) -> Result<Vec<String>, GcsError>
pub async fn list_objects(&self, prefix: &str) -> Result<Vec<String>, GcsError>
List all objects under a prefix (recursive).
Returns relative paths like ["SKILL.md", "skill.toml", "scripts/generate.sh"].
Auto Trait Implementations§
impl !Freeze for GcsClient
impl !RefUnwindSafe for GcsClient
impl Send for GcsClient
impl Sync for GcsClient
impl Unpin for GcsClient
impl UnsafeUnpin for GcsClient
impl !UnwindSafe for GcsClient
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