pub type OwnedGetMachineRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetMachineRequestView<'static>,
>;
pub type OwnedGetMachineResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetMachineResponseView<'static>,
>;
pub type OwnedRunMachineActionRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunMachineActionRequestView<'static>,
>;
pub type OwnedRunMachineActionResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunMachineActionResponseView<
'static,
>,
>;
pub type OwnedGetProjectRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetProjectRequestView<'static>,
>;
pub type OwnedGetProjectResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetProjectResponseView<'static>,
>;
pub type OwnedCreateProjectRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::CreateProjectRequestView<'static>,
>;
pub type OwnedCreateProjectResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::CreateProjectResponseView<'static>,
>;
pub type OwnedDeployProjectRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::DeployProjectRequestView<'static>,
>;
pub type OwnedDeployProjectResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::DeployProjectResponseView<'static>,
>;
pub type OwnedListCommitsRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::ListCommitsRequestView<'static>,
>;
pub type OwnedListCommitsResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::ListCommitsResponseView<'static>,
>;
pub type OwnedRunProjectActionRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunProjectActionRequestView<'static>,
>;
pub type OwnedRunProjectActionResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunProjectActionResponseView<
'static,
>,
>;
pub type OwnedGetOperationRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetOperationRequestView<'static>,
>;
pub type OwnedGetOperationResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetOperationResponseView<'static>,
>;
pub type OwnedQueryHttpTrafficRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::QueryHttpTrafficRequestView<'static>,
>;
pub type OwnedQueryHttpTrafficResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::QueryHttpTrafficResponseView<
'static,
>,
>;
pub type OwnedQueryContainerLogsRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::QueryContainerLogsRequestView<
'static,
>,
>;
pub type OwnedQueryContainerLogsResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::QueryContainerLogsResponseView<
'static,
>,
>;
pub type OwnedRunServiceCommandRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunServiceCommandRequestView<
'static,
>,
>;
pub type OwnedRunServiceCommandResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunServiceCommandResponseView<
'static,
>,
>;
pub type OwnedOpenTerminalRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::OpenTerminalRequestView<'static>,
>;
pub type OwnedOpenTerminalResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::OpenTerminalResponseView<'static>,
>;
pub type OwnedReadPathRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::ReadPathRequestView<'static>,
>;
pub type OwnedReadPathResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::ReadPathResponseView<'static>,
>;
pub type OwnedCreateTransferRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::CreateTransferRequestView<'static>,
>;
pub type OwnedCreateTransferResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::CreateTransferResponseView<'static>,
>;
pub type OwnedGetUploadRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetUploadRequestView<'static>,
>;
pub type OwnedGetUploadResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetUploadResponseView<'static>,
>;
pub type OwnedWatchOperationRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::WatchOperationRequestView<'static>,
>;
pub type OwnedWatchOperationResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::WatchOperationResponseView<'static>,
>;
pub type OwnedTailContainerLogsRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::TailContainerLogsRequestView<
'static,
>,
>;
pub type OwnedTailContainerLogsResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::TailContainerLogsResponseView<
'static,
>,
>;
pub type OwnedTailHttpTrafficRequestView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::TailHttpTrafficRequestView<'static>,
>;
pub type OwnedTailHttpTrafficResponseView = ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::TailHttpTrafficResponseView<'static>,
>;
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::GetMachineResponse>
for crate::proto::pethost::panel::v1::__buffa::view::GetMachineResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::GetMachineResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetMachineResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::RunMachineActionResponse>
for crate::proto::pethost::panel::v1::__buffa::view::RunMachineActionResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::RunMachineActionResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunMachineActionResponseView<
'static,
>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::GetProjectResponse>
for crate::proto::pethost::panel::v1::__buffa::view::GetProjectResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::GetProjectResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetProjectResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::CreateProjectResponse>
for crate::proto::pethost::panel::v1::__buffa::view::CreateProjectResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::CreateProjectResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::CreateProjectResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::DeployProjectResponse>
for crate::proto::pethost::panel::v1::__buffa::view::DeployProjectResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::DeployProjectResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::DeployProjectResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::ListCommitsResponse>
for crate::proto::pethost::panel::v1::__buffa::view::ListCommitsResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::ListCommitsResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::ListCommitsResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::RunProjectActionResponse>
for crate::proto::pethost::panel::v1::__buffa::view::RunProjectActionResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::RunProjectActionResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunProjectActionResponseView<
'static,
>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::GetOperationResponse>
for crate::proto::pethost::panel::v1::__buffa::view::GetOperationResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::GetOperationResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetOperationResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::QueryHttpTrafficResponse>
for crate::proto::pethost::panel::v1::__buffa::view::QueryHttpTrafficResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::QueryHttpTrafficResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::QueryHttpTrafficResponseView<
'static,
>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::QueryContainerLogsResponse,
>
for crate::proto::pethost::panel::v1::__buffa::view::QueryContainerLogsResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::QueryContainerLogsResponse,
>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::QueryContainerLogsResponseView<
'static,
>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::RunServiceCommandResponse>
for crate::proto::pethost::panel::v1::__buffa::view::RunServiceCommandResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::RunServiceCommandResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunServiceCommandResponseView<
'static,
>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::OpenTerminalResponse>
for crate::proto::pethost::panel::v1::__buffa::view::OpenTerminalResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::OpenTerminalResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::OpenTerminalResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::ReadPathResponse>
for crate::proto::pethost::panel::v1::__buffa::view::ReadPathResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::ReadPathResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::ReadPathResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::CreateTransferResponse>
for crate::proto::pethost::panel::v1::__buffa::view::CreateTransferResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::CreateTransferResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::CreateTransferResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::GetUploadResponse>
for crate::proto::pethost::panel::v1::__buffa::view::GetUploadResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::GetUploadResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetUploadResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::WatchOperationResponse>
for crate::proto::pethost::panel::v1::__buffa::view::WatchOperationResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::WatchOperationResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::WatchOperationResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::TailContainerLogsResponse>
for crate::proto::pethost::panel::v1::__buffa::view::TailContainerLogsResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::TailContainerLogsResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::TailContainerLogsResponseView<
'static,
>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::TailHttpTrafficResponse>
for crate::proto::pethost::panel::v1::__buffa::view::TailHttpTrafficResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::pethost::panel::v1::TailHttpTrafficResponse>
for ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::TailHttpTrafficResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
fn encode_segments(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::connectrpc::EncodedBody, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body_segments(
self.reborrow(),
self.bytes(),
codec,
)
}
}
pub const PANEL_SERVICE_SERVICE_NAME: &str = "pethost.panel.v1.PanelService";
pub const PANEL_SERVICE_GET_MACHINE_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/GetMachine",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::NoSideEffects);
pub const PANEL_SERVICE_RUN_MACHINE_ACTION_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/RunMachineAction",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const PANEL_SERVICE_GET_PROJECT_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/GetProject",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::NoSideEffects);
pub const PANEL_SERVICE_CREATE_PROJECT_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/CreateProject",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const PANEL_SERVICE_DEPLOY_PROJECT_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/DeployProject",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const PANEL_SERVICE_LIST_COMMITS_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/ListCommits",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::NoSideEffects);
pub const PANEL_SERVICE_RUN_PROJECT_ACTION_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/RunProjectAction",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const PANEL_SERVICE_GET_OPERATION_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/GetOperation",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::NoSideEffects);
pub const PANEL_SERVICE_QUERY_HTTP_TRAFFIC_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/QueryHttpTraffic",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::NoSideEffects);
pub const PANEL_SERVICE_QUERY_CONTAINER_LOGS_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/QueryContainerLogs",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::NoSideEffects);
pub const PANEL_SERVICE_RUN_SERVICE_COMMAND_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/RunServiceCommand",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const PANEL_SERVICE_OPEN_TERMINAL_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/OpenTerminal",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const PANEL_SERVICE_READ_PATH_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/ReadPath",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::NoSideEffects);
pub const PANEL_SERVICE_CREATE_TRANSFER_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/CreateTransfer",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const PANEL_SERVICE_GET_UPLOAD_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/GetUpload",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::NoSideEffects);
pub const PANEL_SERVICE_WATCH_OPERATION_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/WatchOperation",
::connectrpc::StreamType::ServerStream,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const PANEL_SERVICE_TAIL_CONTAINER_LOGS_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/TailContainerLogs",
::connectrpc::StreamType::ServerStream,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const PANEL_SERVICE_TAIL_HTTP_TRAFFIC_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/pethost.panel.v1.PanelService/TailHttpTraffic",
::connectrpc::StreamType::ServerStream,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
#[allow(clippy::type_complexity)]
pub trait PanelService: Send + Sync + 'static {
fn get_machine<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::GetMachineRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::GetMachineResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn run_machine_action<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::RunMachineActionRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::RunMachineActionResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn get_project<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::GetProjectRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::GetProjectResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn create_project<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::CreateProjectRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::CreateProjectResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn deploy_project<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::DeployProjectRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::DeployProjectResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn list_commits<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::ListCommitsRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::ListCommitsResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn run_project_action<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::RunProjectActionRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::RunProjectActionResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn get_operation<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::GetOperationRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::GetOperationResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn query_http_traffic<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::QueryHttpTrafficRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::QueryHttpTrafficResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn query_container_logs<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::QueryContainerLogsRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::QueryContainerLogsResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn run_service_command<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::RunServiceCommandRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::RunServiceCommandResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn open_terminal<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::OpenTerminalRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::OpenTerminalResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn read_path<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::ReadPathRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::ReadPathResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn create_transfer<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::CreateTransferRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::CreateTransferResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn get_upload<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::GetUploadRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::GetUploadResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn watch_operation(
&self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::WatchOperationRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
::connectrpc::ServiceStream<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::WatchOperationResponse,
> + Send + use<Self>,
>,
>,
> + Send;
fn tail_container_logs(
&self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::TailContainerLogsRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
::connectrpc::ServiceStream<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::TailContainerLogsResponse,
> + Send + use<Self>,
>,
>,
> + Send;
fn tail_http_traffic(
&self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::pethost::panel::v1::TailHttpTrafficRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
::connectrpc::ServiceStream<
impl ::connectrpc::Encodable<
crate::proto::pethost::panel::v1::TailHttpTrafficResponse,
> + Send + use<Self>,
>,
>,
> + Send;
}
pub trait PanelServiceExt: PanelService {
fn register(
self: ::std::sync::Arc<Self>,
router: ::connectrpc::Router,
) -> ::connectrpc::Router;
}
impl<S: PanelService> PanelServiceExt for S {
fn register(
self: ::std::sync::Arc<Self>,
router: ::connectrpc::Router,
) -> ::connectrpc::Router {
router
.route_view_idempotent(
PANEL_SERVICE_SERVICE_NAME,
"GetMachine",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetMachineRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::GetMachineRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.get_machine(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::GetMachineResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_GET_MACHINE_SPEC)
.route_view(
PANEL_SERVICE_SERVICE_NAME,
"RunMachineAction",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunMachineActionRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::RunMachineActionRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.run_machine_action(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::RunMachineActionResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_RUN_MACHINE_ACTION_SPEC)
.route_view_idempotent(
PANEL_SERVICE_SERVICE_NAME,
"GetProject",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetProjectRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::GetProjectRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.get_project(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::GetProjectResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_GET_PROJECT_SPEC)
.route_view(
PANEL_SERVICE_SERVICE_NAME,
"CreateProject",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::CreateProjectRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::CreateProjectRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.create_project(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::CreateProjectResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_CREATE_PROJECT_SPEC)
.route_view(
PANEL_SERVICE_SERVICE_NAME,
"DeployProject",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::DeployProjectRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::DeployProjectRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.deploy_project(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::DeployProjectResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_DEPLOY_PROJECT_SPEC)
.route_view_idempotent(
PANEL_SERVICE_SERVICE_NAME,
"ListCommits",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::ListCommitsRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::ListCommitsRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.list_commits(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::ListCommitsResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_LIST_COMMITS_SPEC)
.route_view(
PANEL_SERVICE_SERVICE_NAME,
"RunProjectAction",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunProjectActionRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::RunProjectActionRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.run_project_action(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::RunProjectActionResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_RUN_PROJECT_ACTION_SPEC)
.route_view_idempotent(
PANEL_SERVICE_SERVICE_NAME,
"GetOperation",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetOperationRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::GetOperationRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.get_operation(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::GetOperationResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_GET_OPERATION_SPEC)
.route_view_idempotent(
PANEL_SERVICE_SERVICE_NAME,
"QueryHttpTraffic",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::QueryHttpTrafficRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::QueryHttpTrafficRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.query_http_traffic(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::QueryHttpTrafficResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_QUERY_HTTP_TRAFFIC_SPEC)
.route_view_idempotent(
PANEL_SERVICE_SERVICE_NAME,
"QueryContainerLogs",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::QueryContainerLogsRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::QueryContainerLogsRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.query_container_logs(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::QueryContainerLogsResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_QUERY_CONTAINER_LOGS_SPEC)
.route_view(
PANEL_SERVICE_SERVICE_NAME,
"RunServiceCommand",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunServiceCommandRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::RunServiceCommandRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.run_service_command(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::RunServiceCommandResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_RUN_SERVICE_COMMAND_SPEC)
.route_view(
PANEL_SERVICE_SERVICE_NAME,
"OpenTerminal",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::OpenTerminalRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::OpenTerminalRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.open_terminal(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::OpenTerminalResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_OPEN_TERMINAL_SPEC)
.route_view_idempotent(
PANEL_SERVICE_SERVICE_NAME,
"ReadPath",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::ReadPathRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::ReadPathRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.read_path(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::ReadPathResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_READ_PATH_SPEC)
.route_view(
PANEL_SERVICE_SERVICE_NAME,
"CreateTransfer",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::CreateTransferRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::CreateTransferRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.create_transfer(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::CreateTransferResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_CREATE_TRANSFER_SPEC)
.route_view_idempotent(
PANEL_SERVICE_SERVICE_NAME,
"GetUpload",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetUploadRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::GetUploadRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.get_upload(ctx, sreq)
.await?
.encode::<
crate::proto::pethost::panel::v1::GetUploadResponse,
>(format)
}
})
},
)
.with_spec(PANEL_SERVICE_GET_UPLOAD_SPEC)
.route_view_server_stream::<
_,
_,
crate::proto::pethost::panel::v1::WatchOperationResponse,
>(
PANEL_SERVICE_SERVICE_NAME,
"WatchOperation",
::connectrpc::view_streaming_handler_fn({
let svc = ::std::sync::Arc::clone(&self);
move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::WatchOperationRequestView<
'static,
>,
>|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::WatchOperationRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.watch_operation(ctx, sreq).await
}
}
}),
)
.with_spec(PANEL_SERVICE_WATCH_OPERATION_SPEC)
.route_view_server_stream::<
_,
_,
crate::proto::pethost::panel::v1::TailContainerLogsResponse,
>(
PANEL_SERVICE_SERVICE_NAME,
"TailContainerLogs",
::connectrpc::view_streaming_handler_fn({
let svc = ::std::sync::Arc::clone(&self);
move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::TailContainerLogsRequestView<
'static,
>,
>|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::TailContainerLogsRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.tail_container_logs(ctx, sreq).await
}
}
}),
)
.with_spec(PANEL_SERVICE_TAIL_CONTAINER_LOGS_SPEC)
.route_view_server_stream::<
_,
_,
crate::proto::pethost::panel::v1::TailHttpTrafficResponse,
>(
PANEL_SERVICE_SERVICE_NAME,
"TailHttpTraffic",
::connectrpc::view_streaming_handler_fn({
let svc = ::std::sync::Arc::clone(&self);
move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::TailHttpTrafficRequestView<
'static,
>,
>|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::TailHttpTrafficRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.tail_http_traffic(ctx, sreq).await
}
}
}),
)
.with_spec(PANEL_SERVICE_TAIL_HTTP_TRAFFIC_SPEC)
}
}
#[doc(hidden)]
pub struct PanelServiceRegisterMarker;
impl<S: PanelService> ::connectrpc::ServiceRegister<PanelServiceRegisterMarker>
for ::std::sync::Arc<S> {
fn register_service(self, router: ::connectrpc::Router) -> ::connectrpc::Router {
<S as PanelServiceExt>::register(self, router)
}
}
pub struct PanelServiceServer<T> {
inner: ::std::sync::Arc<T>,
}
impl<T: PanelService> PanelServiceServer<T> {
pub fn new(service: T) -> Self {
Self {
inner: ::std::sync::Arc::new(service),
}
}
pub fn from_arc(inner: ::std::sync::Arc<T>) -> Self {
Self { inner }
}
}
impl<T> Clone for PanelServiceServer<T> {
fn clone(&self) -> Self {
Self {
inner: ::std::sync::Arc::clone(&self.inner),
}
}
}
impl<T: PanelService> ::connectrpc::Dispatcher for PanelServiceServer<T> {
#[inline]
fn lookup(
&self,
path: &str,
) -> Option<::connectrpc::dispatcher::codegen::MethodDescriptor> {
let method = path.strip_prefix("pethost.panel.v1.PanelService/")?;
match method {
"GetMachine" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(true)
.with_spec(PANEL_SERVICE_GET_MACHINE_SPEC),
)
}
"RunMachineAction" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(PANEL_SERVICE_RUN_MACHINE_ACTION_SPEC),
)
}
"GetProject" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(true)
.with_spec(PANEL_SERVICE_GET_PROJECT_SPEC),
)
}
"CreateProject" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(PANEL_SERVICE_CREATE_PROJECT_SPEC),
)
}
"DeployProject" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(PANEL_SERVICE_DEPLOY_PROJECT_SPEC),
)
}
"ListCommits" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(true)
.with_spec(PANEL_SERVICE_LIST_COMMITS_SPEC),
)
}
"RunProjectAction" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(PANEL_SERVICE_RUN_PROJECT_ACTION_SPEC),
)
}
"GetOperation" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(true)
.with_spec(PANEL_SERVICE_GET_OPERATION_SPEC),
)
}
"QueryHttpTraffic" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(true)
.with_spec(PANEL_SERVICE_QUERY_HTTP_TRAFFIC_SPEC),
)
}
"QueryContainerLogs" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(true)
.with_spec(PANEL_SERVICE_QUERY_CONTAINER_LOGS_SPEC),
)
}
"RunServiceCommand" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(PANEL_SERVICE_RUN_SERVICE_COMMAND_SPEC),
)
}
"OpenTerminal" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(PANEL_SERVICE_OPEN_TERMINAL_SPEC),
)
}
"ReadPath" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(true)
.with_spec(PANEL_SERVICE_READ_PATH_SPEC),
)
}
"CreateTransfer" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(PANEL_SERVICE_CREATE_TRANSFER_SPEC),
)
}
"GetUpload" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(true)
.with_spec(PANEL_SERVICE_GET_UPLOAD_SPEC),
)
}
"WatchOperation" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::server_streaming()
.with_spec(PANEL_SERVICE_WATCH_OPERATION_SPEC),
)
}
"TailContainerLogs" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::server_streaming()
.with_spec(PANEL_SERVICE_TAIL_CONTAINER_LOGS_SPEC),
)
}
"TailHttpTraffic" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::server_streaming()
.with_spec(PANEL_SERVICE_TAIL_HTTP_TRAFFIC_SPEC),
)
}
_ => None,
}
}
fn call_unary(
&self,
path: &str,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::Payload,
format: ::connectrpc::CodecFormat,
) -> ::connectrpc::dispatcher::codegen::UnaryResult {
let Some(method) = path.strip_prefix("pethost.panel.v1.PanelService/") else {
return ::connectrpc::dispatcher::codegen::unimplemented_unary(path);
};
let _ = (&ctx, &request, &format);
match method {
"GetMachine" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::GetMachineRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::GetMachineRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::GetMachineRequest,
>::from_parts(&req, &body);
svc.get_machine(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::GetMachineResponse,
>(format)
})
}
"RunMachineAction" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::RunMachineActionRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::RunMachineActionRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::RunMachineActionRequest,
>::from_parts(&req, &body);
svc.run_machine_action(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::RunMachineActionResponse,
>(format)
})
}
"GetProject" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::GetProjectRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::GetProjectRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::GetProjectRequest,
>::from_parts(&req, &body);
svc.get_project(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::GetProjectResponse,
>(format)
})
}
"CreateProject" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::CreateProjectRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::CreateProjectRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::CreateProjectRequest,
>::from_parts(&req, &body);
svc.create_project(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::CreateProjectResponse,
>(format)
})
}
"DeployProject" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::DeployProjectRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::DeployProjectRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::DeployProjectRequest,
>::from_parts(&req, &body);
svc.deploy_project(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::DeployProjectResponse,
>(format)
})
}
"ListCommits" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::ListCommitsRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::ListCommitsRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::ListCommitsRequest,
>::from_parts(&req, &body);
svc.list_commits(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::ListCommitsResponse,
>(format)
})
}
"RunProjectAction" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::RunProjectActionRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::RunProjectActionRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::RunProjectActionRequest,
>::from_parts(&req, &body);
svc.run_project_action(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::RunProjectActionResponse,
>(format)
})
}
"GetOperation" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::GetOperationRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::GetOperationRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::GetOperationRequest,
>::from_parts(&req, &body);
svc.get_operation(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::GetOperationResponse,
>(format)
})
}
"QueryHttpTraffic" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::QueryHttpTrafficRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::QueryHttpTrafficRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::QueryHttpTrafficRequest,
>::from_parts(&req, &body);
svc.query_http_traffic(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::QueryHttpTrafficResponse,
>(format)
})
}
"QueryContainerLogs" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::QueryContainerLogsRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::QueryContainerLogsRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::QueryContainerLogsRequest,
>::from_parts(&req, &body);
svc.query_container_logs(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::QueryContainerLogsResponse,
>(format)
})
}
"RunServiceCommand" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::RunServiceCommandRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::RunServiceCommandRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::RunServiceCommandRequest,
>::from_parts(&req, &body);
svc.run_service_command(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::RunServiceCommandResponse,
>(format)
})
}
"OpenTerminal" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::OpenTerminalRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::OpenTerminalRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::OpenTerminalRequest,
>::from_parts(&req, &body);
svc.open_terminal(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::OpenTerminalResponse,
>(format)
})
}
"ReadPath" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::ReadPathRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::ReadPathRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::ReadPathRequest,
>::from_parts(&req, &body);
svc.read_path(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::ReadPathResponse,
>(format)
})
}
"CreateTransfer" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::CreateTransferRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::CreateTransferRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::CreateTransferRequest,
>::from_parts(&req, &body);
svc.create_transfer(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::CreateTransferResponse,
>(format)
})
}
"GetUpload" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::GetUploadRequest,
>(request.encoded()?, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::GetUploadRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::GetUploadRequest,
>::from_parts(&req, &body);
svc.get_upload(ctx, req)
.await?
.encode::<
crate::proto::pethost::panel::v1::GetUploadResponse,
>(format)
})
}
_ => ::connectrpc::dispatcher::codegen::unimplemented_unary(path),
}
}
fn call_server_streaming(
&self,
path: &str,
ctx: ::connectrpc::RequestContext,
request: ::buffa::bytes::Bytes,
format: ::connectrpc::CodecFormat,
) -> ::connectrpc::dispatcher::codegen::StreamingResult {
let Some(method) = path.strip_prefix("pethost.panel.v1.PanelService/") else {
return ::connectrpc::dispatcher::codegen::unimplemented_streaming(path);
};
let _ = (&ctx, &request, &format);
match method {
"WatchOperation" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::WatchOperationRequest,
>(request, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::WatchOperationRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::WatchOperationRequest,
>::from_parts(&req, &body);
let resp = svc.watch_operation(ctx, req).await?;
Ok(
resp
.map_body(|s| ::connectrpc::dispatcher::codegen::encode_response_stream::<
crate::proto::pethost::panel::v1::WatchOperationResponse,
_,
_,
>(s, format)),
)
})
}
"TailContainerLogs" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::TailContainerLogsRequest,
>(request, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::TailContainerLogsRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::TailContainerLogsRequest,
>::from_parts(&req, &body);
let resp = svc.tail_container_logs(ctx, req).await?;
Ok(
resp
.map_body(|s| ::connectrpc::dispatcher::codegen::encode_response_stream::<
crate::proto::pethost::panel::v1::TailContainerLogsResponse,
_,
_,
>(s, format)),
)
})
}
"TailHttpTraffic" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::pethost::panel::v1::TailHttpTrafficRequest,
>(request, format)?;
let req: crate::proto::pethost::panel::v1::__buffa::view::TailHttpTrafficRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
ctx.decode_options(),
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::pethost::panel::v1::TailHttpTrafficRequest,
>::from_parts(&req, &body);
let resp = svc.tail_http_traffic(ctx, req).await?;
Ok(
resp
.map_body(|s| ::connectrpc::dispatcher::codegen::encode_response_stream::<
crate::proto::pethost::panel::v1::TailHttpTrafficResponse,
_,
_,
>(s, format)),
)
})
}
_ => ::connectrpc::dispatcher::codegen::unimplemented_streaming(path),
}
}
fn call_client_streaming(
&self,
path: &str,
ctx: ::connectrpc::RequestContext,
requests: ::connectrpc::dispatcher::codegen::RequestStream,
format: ::connectrpc::CodecFormat,
) -> ::connectrpc::dispatcher::codegen::UnaryResult {
let Some(method) = path.strip_prefix("pethost.panel.v1.PanelService/") else {
return ::connectrpc::dispatcher::codegen::unimplemented_unary(path);
};
let _ = (&ctx, &requests, &format);
match method {
_ => ::connectrpc::dispatcher::codegen::unimplemented_unary(path),
}
}
fn call_bidi_streaming(
&self,
path: &str,
ctx: ::connectrpc::RequestContext,
requests: ::connectrpc::dispatcher::codegen::RequestStream,
format: ::connectrpc::CodecFormat,
) -> ::connectrpc::dispatcher::codegen::StreamingResult {
let Some(method) = path.strip_prefix("pethost.panel.v1.PanelService/") else {
return ::connectrpc::dispatcher::codegen::unimplemented_streaming(path);
};
let _ = (&ctx, &requests, &format);
match method {
_ => ::connectrpc::dispatcher::codegen::unimplemented_streaming(path),
}
}
}
#[derive(Clone)]
pub struct PanelServiceClient<T> {
transport: T,
config: ::connectrpc::client::ClientConfig,
}
impl<T> PanelServiceClient<T>
where
T: ::connectrpc::client::ClientTransport,
<T::ResponseBody as ::connectrpc::http_body::Body>::Error: ::std::fmt::Display,
{
pub fn new(transport: T, config: ::connectrpc::client::ClientConfig) -> Self {
Self { transport, config }
}
pub fn config(&self) -> &::connectrpc::client::ClientConfig {
&self.config
}
pub fn config_mut(&mut self) -> &mut ::connectrpc::client::ClientConfig {
&mut self.config
}
pub async fn get_machine(
&self,
request: crate::proto::pethost::panel::v1::GetMachineRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetMachineResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.get_machine_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn get_machine_with_options(
&self,
request: crate::proto::pethost::panel::v1::GetMachineRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetMachineResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_GET_MACHINE_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn run_machine_action(
&self,
request: crate::proto::pethost::panel::v1::RunMachineActionRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunMachineActionResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.run_machine_action_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn run_machine_action_with_options(
&self,
request: crate::proto::pethost::panel::v1::RunMachineActionRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunMachineActionResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_RUN_MACHINE_ACTION_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn get_project(
&self,
request: crate::proto::pethost::panel::v1::GetProjectRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetProjectResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.get_project_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn get_project_with_options(
&self,
request: crate::proto::pethost::panel::v1::GetProjectRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetProjectResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_GET_PROJECT_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn create_project(
&self,
request: crate::proto::pethost::panel::v1::CreateProjectRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::CreateProjectResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.create_project_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn create_project_with_options(
&self,
request: crate::proto::pethost::panel::v1::CreateProjectRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::CreateProjectResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_CREATE_PROJECT_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn deploy_project(
&self,
request: crate::proto::pethost::panel::v1::DeployProjectRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::DeployProjectResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.deploy_project_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn deploy_project_with_options(
&self,
request: crate::proto::pethost::panel::v1::DeployProjectRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::DeployProjectResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_DEPLOY_PROJECT_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn list_commits(
&self,
request: crate::proto::pethost::panel::v1::ListCommitsRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::ListCommitsResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.list_commits_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn list_commits_with_options(
&self,
request: crate::proto::pethost::panel::v1::ListCommitsRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::ListCommitsResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_LIST_COMMITS_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn run_project_action(
&self,
request: crate::proto::pethost::panel::v1::RunProjectActionRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunProjectActionResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.run_project_action_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn run_project_action_with_options(
&self,
request: crate::proto::pethost::panel::v1::RunProjectActionRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunProjectActionResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_RUN_PROJECT_ACTION_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn get_operation(
&self,
request: crate::proto::pethost::panel::v1::GetOperationRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetOperationResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.get_operation_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn get_operation_with_options(
&self,
request: crate::proto::pethost::panel::v1::GetOperationRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetOperationResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_GET_OPERATION_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn query_http_traffic(
&self,
request: crate::proto::pethost::panel::v1::QueryHttpTrafficRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::QueryHttpTrafficResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.query_http_traffic_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn query_http_traffic_with_options(
&self,
request: crate::proto::pethost::panel::v1::QueryHttpTrafficRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::QueryHttpTrafficResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_QUERY_HTTP_TRAFFIC_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn query_container_logs(
&self,
request: crate::proto::pethost::panel::v1::QueryContainerLogsRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::QueryContainerLogsResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.query_container_logs_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn query_container_logs_with_options(
&self,
request: crate::proto::pethost::panel::v1::QueryContainerLogsRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::QueryContainerLogsResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_QUERY_CONTAINER_LOGS_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn run_service_command(
&self,
request: crate::proto::pethost::panel::v1::RunServiceCommandRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunServiceCommandResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.run_service_command_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn run_service_command_with_options(
&self,
request: crate::proto::pethost::panel::v1::RunServiceCommandRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::RunServiceCommandResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_RUN_SERVICE_COMMAND_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn open_terminal(
&self,
request: crate::proto::pethost::panel::v1::OpenTerminalRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::OpenTerminalResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.open_terminal_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn open_terminal_with_options(
&self,
request: crate::proto::pethost::panel::v1::OpenTerminalRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::OpenTerminalResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_OPEN_TERMINAL_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn read_path(
&self,
request: crate::proto::pethost::panel::v1::ReadPathRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::ReadPathResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.read_path_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn read_path_with_options(
&self,
request: crate::proto::pethost::panel::v1::ReadPathRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::ReadPathResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_READ_PATH_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn create_transfer(
&self,
request: crate::proto::pethost::panel::v1::CreateTransferRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::CreateTransferResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.create_transfer_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn create_transfer_with_options(
&self,
request: crate::proto::pethost::panel::v1::CreateTransferRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::CreateTransferResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_CREATE_TRANSFER_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn get_upload(
&self,
request: crate::proto::pethost::panel::v1::GetUploadRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetUploadResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.get_upload_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn get_upload_with_options(
&self,
request: crate::proto::pethost::panel::v1::GetUploadRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::pethost::panel::v1::__buffa::view::GetUploadResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
PANEL_SERVICE_GET_UPLOAD_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn watch_operation(
&self,
request: crate::proto::pethost::panel::v1::WatchOperationRequest,
) -> Result<
::connectrpc::client::ServerStream<
T::ResponseBody,
crate::proto::pethost::panel::v1::__buffa::view::WatchOperationResponseView<
'static,
>,
>,
::connectrpc::ConnectError,
> {
self.watch_operation_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn watch_operation_with_options(
&self,
request: crate::proto::pethost::panel::v1::WatchOperationRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::ServerStream<
T::ResponseBody,
crate::proto::pethost::panel::v1::__buffa::view::WatchOperationResponseView<
'static,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_server_stream(
&self.transport,
&self.config,
PANEL_SERVICE_WATCH_OPERATION_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn tail_container_logs(
&self,
request: crate::proto::pethost::panel::v1::TailContainerLogsRequest,
) -> Result<
::connectrpc::client::ServerStream<
T::ResponseBody,
crate::proto::pethost::panel::v1::__buffa::view::TailContainerLogsResponseView<
'static,
>,
>,
::connectrpc::ConnectError,
> {
self.tail_container_logs_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn tail_container_logs_with_options(
&self,
request: crate::proto::pethost::panel::v1::TailContainerLogsRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::ServerStream<
T::ResponseBody,
crate::proto::pethost::panel::v1::__buffa::view::TailContainerLogsResponseView<
'static,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_server_stream(
&self.transport,
&self.config,
PANEL_SERVICE_TAIL_CONTAINER_LOGS_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
pub async fn tail_http_traffic(
&self,
request: crate::proto::pethost::panel::v1::TailHttpTrafficRequest,
) -> Result<
::connectrpc::client::ServerStream<
T::ResponseBody,
crate::proto::pethost::panel::v1::__buffa::view::TailHttpTrafficResponseView<
'static,
>,
>,
::connectrpc::ConnectError,
> {
self.tail_http_traffic_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn tail_http_traffic_with_options(
&self,
request: crate::proto::pethost::panel::v1::TailHttpTrafficRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::ServerStream<
T::ResponseBody,
crate::proto::pethost::panel::v1::__buffa::view::TailHttpTrafficResponseView<
'static,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_server_stream(
&self.transport,
&self.config,
PANEL_SERVICE_TAIL_HTTP_TRAFFIC_SPEC
.with_origin(::connectrpc::SpecOrigin::Client),
request,
options,
)
.await
}
}