Create new module layout based on Gitea's own
This commit is contained in:
3
src/api/mod.rs
Normal file
3
src/api/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
pub mod packages;
|
||||
pub mod repo;
|
||||
10
src/api/packages.rs
Normal file
10
src/api/packages.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
pub fn list_packages(){}
|
||||
pub fn get_packages(){}
|
||||
pub fn delete_package(){}
|
||||
pub fn list_package_files(){}
|
||||
pub fn get_latest_package_version(){}
|
||||
pub fn link_package(){}
|
||||
pub fn unlink_package(){}
|
||||
pub fn search_packages(){}
|
||||
|
||||
8
src/api/repo.rs
Normal file
8
src/api/repo.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
pub fn get_release(){}
|
||||
pub fn get_latest_release(){}
|
||||
pub fn list_releases(){}
|
||||
pub fn create_release(){}
|
||||
pub fn edit_release(){}
|
||||
pub fn delete_release(){}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
pub mod cli;
|
||||
pub mod api;
|
||||
pub mod structs;
|
||||
|
||||
/// A struct matching a Gitea "Release" entry
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
|
||||
3
src/structs/mod.rs
Normal file
3
src/structs/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
pub mod release;
|
||||
pub mod repo;
|
||||
|
||||
7
src/structs/release.rs
Normal file
7
src/structs/release.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
pub struct Release;
|
||||
|
||||
pub struct CreateReleaseOption;
|
||||
|
||||
pub struct EditReleaseOption;
|
||||
|
||||
4
src/structs/repo.rs
Normal file
4
src/structs/repo.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
pub struct Permission;
|
||||
|
||||
pub struct Repository;
|
||||
Reference in New Issue
Block a user