[][src]Struct pachyderm::pfs::api_client::ApiClient

pub struct ApiClient<T> { /* fields omitted */ }

Implementations

impl ApiClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> ApiClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn create_repo<'_>(
    &'_ mut self,
    request: impl IntoRequest<CreateRepoRequest>
) -> Result<Response<()>, Status>
[src]

Repo rpcs CreateRepo creates a new repo. An error is returned if the repo already exists.

pub async fn inspect_repo<'_>(
    &'_ mut self,
    request: impl IntoRequest<InspectRepoRequest>
) -> Result<Response<RepoInfo>, Status>
[src]

InspectRepo returns info about a repo.

pub async fn list_repo<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListRepoRequest>
) -> Result<Response<ListRepoResponse>, Status>
[src]

ListRepo returns info about all repos.

pub async fn delete_repo<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteRepoRequest>
) -> Result<Response<()>, Status>
[src]

DeleteRepo deletes a repo.

pub async fn start_commit<'_>(
    &'_ mut self,
    request: impl IntoRequest<StartCommitRequest>
) -> Result<Response<Commit>, Status>
[src]

Commit rpcs StartCommit creates a new write commit from a parent commit.

pub async fn finish_commit<'_>(
    &'_ mut self,
    request: impl IntoRequest<FinishCommitRequest>
) -> Result<Response<()>, Status>
[src]

FinishCommit turns a write commit into a read commit.

pub async fn inspect_commit<'_>(
    &'_ mut self,
    request: impl IntoRequest<InspectCommitRequest>
) -> Result<Response<CommitInfo>, Status>
[src]

InspectCommit returns the info about a commit.

pub async fn list_commit<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListCommitRequest>
) -> Result<Response<CommitInfos>, Status>
[src]

ListCommit returns info about all commits. This is deprecated in favor of ListCommitStream.

pub async fn list_commit_stream<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListCommitRequest>
) -> Result<Response<Streaming<CommitInfo>>, Status>
[src]

ListCommitStream is like ListCommit, but returns its results in a GRPC stream

pub async fn delete_commit<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteCommitRequest>
) -> Result<Response<()>, Status>
[src]

DeleteCommit deletes a commit.

pub async fn flush_commit<'_>(
    &'_ mut self,
    request: impl IntoRequest<FlushCommitRequest>
) -> Result<Response<Streaming<CommitInfo>>, Status>
[src]

FlushCommit waits for downstream commits to finish

pub async fn subscribe_commit<'_>(
    &'_ mut self,
    request: impl IntoRequest<SubscribeCommitRequest>
) -> Result<Response<Streaming<CommitInfo>>, Status>
[src]

SubscribeCommit subscribes for new commits on a given branch

pub async fn build_commit<'_>(
    &'_ mut self,
    request: impl IntoRequest<BuildCommitRequest>
) -> Result<Response<Commit>, Status>
[src]

BuildCommit builds a commit that's backed by the given tree

pub async fn create_branch<'_>(
    &'_ mut self,
    request: impl IntoRequest<CreateBranchRequest>
) -> Result<Response<()>, Status>
[src]

CreateBranch creates a new branch

pub async fn inspect_branch<'_>(
    &'_ mut self,
    request: impl IntoRequest<InspectBranchRequest>
) -> Result<Response<BranchInfo>, Status>
[src]

InspectBranch returns info about a branch.

pub async fn list_branch<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListBranchRequest>
) -> Result<Response<BranchInfos>, Status>
[src]

ListBranch returns info about the heads of branches.

pub async fn delete_branch<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteBranchRequest>
) -> Result<Response<()>, Status>
[src]

DeleteBranch deletes a branch; note that the commits still exist.

pub async fn put_file<'_>(
    &'_ mut self,
    request: impl IntoStreamingRequest<Message = PutFileRequest>
) -> Result<Response<()>, Status>
[src]

File rpcs PutFile writes the specified file to pfs.

pub async fn copy_file<'_>(
    &'_ mut self,
    request: impl IntoRequest<CopyFileRequest>
) -> Result<Response<()>, Status>
[src]

CopyFile copies the contents of one file to another.

pub async fn get_file<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetFileRequest>
) -> Result<Response<Streaming<Vec<u8>>>, Status>
[src]

GetFile returns a byte stream of the contents of the file.

pub async fn inspect_file<'_>(
    &'_ mut self,
    request: impl IntoRequest<InspectFileRequest>
) -> Result<Response<FileInfo>, Status>
[src]

InspectFile returns info about a file.

pub async fn list_file<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListFileRequest>
) -> Result<Response<FileInfos>, Status>
[src]

ListFile returns info about all files. This is deprecated in favor of ListFileStream

pub async fn list_file_stream<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListFileRequest>
) -> Result<Response<Streaming<FileInfo>>, Status>
[src]

ListFileStream is a streaming version of ListFile TODO(msteffen): When the dash has been updated to use ListFileStream, replace ListFile with this RPC (https://github.com/pachyderm/dash/issues/201)

pub async fn walk_file<'_>(
    &'_ mut self,
    request: impl IntoRequest<WalkFileRequest>
) -> Result<Response<Streaming<FileInfo>>, Status>
[src]

WalkFile walks over all the files under a directory, including children of children.

pub async fn glob_file<'_>(
    &'_ mut self,
    request: impl IntoRequest<GlobFileRequest>
) -> Result<Response<FileInfos>, Status>
[src]

GlobFile returns info about all files. This is deprecated in favor of GlobFileStream

pub async fn glob_file_stream<'_>(
    &'_ mut self,
    request: impl IntoRequest<GlobFileRequest>
) -> Result<Response<Streaming<FileInfo>>, Status>
[src]

GlobFileStream is a streaming version of GlobFile TODO(msteffen): When the dash has been updated to use GlobFileStream, replace GlobFile with this RPC (https://github.com/pachyderm/dash/issues/201)

pub async fn diff_file<'_>(
    &'_ mut self,
    request: impl IntoRequest<DiffFileRequest>
) -> Result<Response<DiffFileResponse>, Status>
[src]

DiffFile returns the differences between 2 paths at 2 commits.

pub async fn delete_file<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteFileRequest>
) -> Result<Response<()>, Status>
[src]

DeleteFile deletes a file.

pub async fn delete_all<'_>(
    &'_ mut self,
    request: impl IntoRequest<()>
) -> Result<Response<()>, Status>
[src]

DeleteAll deletes everything

pub async fn fsck<'_>(
    &'_ mut self,
    request: impl IntoRequest<FsckRequest>
) -> Result<Response<Streaming<FsckResponse>>, Status>
[src]

Fsck does a file system consistency check for pfs

pub async fn file_operation_v2<'_>(
    &'_ mut self,
    request: impl IntoStreamingRequest<Message = FileOperationRequestV2>
) -> Result<Response<()>, Status>
[src]

RPCs specific to Pachyderm 2.

pub async fn get_tar_v2<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetTarRequestV2>
) -> Result<Response<Streaming<Vec<u8>>>, Status>
[src]

pub async fn get_tar_conditional_v2<'_>(
    &'_ mut self,
    request: impl IntoStreamingRequest<Message = GetTarConditionalRequestV2>
) -> Result<Response<Streaming<GetTarConditionalResponseV2>>, Status>
[src]

Refer to the GetTarConditionalRequest / GetTarConditionalResponse message definitions for the protocol.

pub async fn list_file_v2<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListFileRequest>
) -> Result<Response<Streaming<FileInfoV2>>, Status>
[src]

pub async fn glob_file_v2<'_>(
    &'_ mut self,
    request: impl IntoRequest<GlobFileRequest>
) -> Result<Response<Streaming<FileInfoV2>>, Status>
[src]

Trait Implementations

impl<T: Clone> Clone for ApiClient<T>[src]

impl<T> Debug for ApiClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for ApiClient<T>

impl<T> Send for ApiClient<T> where
    T: Send

impl<T> Sync for ApiClient<T> where
    T: Sync

impl<T> Unpin for ApiClient<T> where
    T: Unpin

impl<T> !UnwindSafe for ApiClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]