Skip to main content

Module client

Module client 

Source
Expand description

Ergonomic client for the Mesa API.

Provides a directory-style navigation pattern:

use mesa_dev::MesaClient;
use futures::TryStreamExt;

let client = MesaClient::builder()
    .build()?;
let repos: Vec<_> = client.org("my-org").repos().list(None).try_collect().await?;
let branches: Vec<_> = client.org("my-org").repos().at("my-repo").branches().list(None).try_collect().await?;

Structs§

ApiKeysClient
Client for API key management (/{org}/api-keys).
BranchesClient
Client for branch operations (/{org}/{repo}/branches).
ChangeClient
Client for change-based file operations (/{org}/{repo}/changes).
CommitsClient
Client for commit operations (/{org}/{repo}/commits).
ContentClient
Client for content operations (/{org}/{repo}/content).
MesaClient
Top-level Mesa API client.
MesaClientBuilder
Builder for configuring and constructing a MesaClient.
OrgClient
Client scoped to an organization (/{org}).
RepoClient
Client scoped to a specific repository (/{org}/{repo}).
ReposClient
Client for listing and creating repositories (/{org}/repos).
WebhooksClient
Client for webhook operations (/{org}/{repo}/webhooks).

Enums§

BuildError
Error returned when building a MesaClient fails.

Constants§

DEFAULT_GRPC_ENDPOINT
Default gRPC endpoint for the Mesa VCS data plane.