use crate::lfs; pub use crate::lfs::types::*; use crate::service::GitService; use crate::share::errors::GitError; impl GitService { pub async fn lfs_batch( &self, _space_name: String, _repo_name: String, _req: LfsBatchRequest, ) -> Result { Err(GitError::Unimplemented( "LFS object transfer is served by KenShell", )) } #[allow(clippy::too_many_arguments)] pub async fn lfs_upload( &self, _space_name: String, _repo_name: String, _caller: i64, _oid: String, _size: i64, _content_type: Option, _body: Vec, ) -> Result { Err(GitError::Unimplemented( "LFS object upload is served by KenShell", )) } #[allow(clippy::too_many_arguments)] pub async fn lfs_upload_stream( &self, _space_name: String, _repo_name: String, _caller: i64, _oid: String, _size: i64, _content_type: Option, _reader: R, ) -> Result where R: tokio::io::AsyncRead + Unpin + Send, { Err(GitError::Unimplemented( "LFS object upload is served by KenShell", )) } pub async fn lfs_download_to( &self, _space_name: String, _repo_name: String, _oid: String, _writer: &mut W, ) -> Result where W: tokio::io::AsyncWrite + Send + Unpin, { Err(GitError::Unimplemented( "LFS object download is served by KenShell", )) } pub async fn lfs_verify( &self, _space_name: String, _repo_name: String, _req: LfsVerifyRequest, ) -> Result<(), GitError> { Err(GitError::Unimplemented( "LFS object verification is served by KenShell", )) } pub async fn lfs_download( &self, _space_name: String, _repo_name: String, _oid: String, ) -> Result, GitError> { Err(GitError::Unimplemented( "LFS object download is served by KenShell", )) } pub async fn lfs_lock( &self, space_name: String, repo_name: String, owner: i64, path: String, oid: Option, ) -> Result { lfs::create_lock(self, space_name, repo_name, owner, path, oid).await } pub async fn lfs_unlock( &self, space_name: String, repo_name: String, owner: i64, path: String, force: bool, ) -> Result<(), GitError> { lfs::unlock(self, space_name, repo_name, owner, path, force).await } pub async fn lfs_unlock_by_id( &self, space_name: String, repo_name: String, owner: i64, lock_id: String, force: bool, ) -> Result<(), GitError> { lfs::unlock_by_id(self, space_name, repo_name, owner, lock_id, force).await } pub async fn lfs_list_locks( &self, space_name: String, repo_name: String, cursor: Option, limit: u64, ) -> Result { lfs::list_locks(self, space_name, repo_name, cursor, limit).await } pub async fn lfs_verify_locks( &self, space_name: String, repo_name: String, caller: i64, limit: u64, ) -> Result { lfs::verify_locks(self, space_name, repo_name, caller, limit).await } pub async fn lfs_cleanup_unreferenced( &self, _space_name: String, _repo_name: String, ) -> Result { Err(GitError::Unimplemented("LFS cleanup is served by KenShell")) } }