Commit graph

10 commits

Author SHA1 Message Date
31fd0f0c51
chore: clippy lints 2022-07-15 20:59:32 +05:30
fe8bd2fb26
fix & chore: handle hostname/URL cleaning within trait implementation
SUMMARY
    Renamed function parameters from "hostname" to "url" wherever a
    url::Url is received

    db_core::get_hostname is renamed to db_core::clean_url, better
    describing its new implementation

    forge_core::get_hostname is renamed to forge_core::get_url to better
    describe its new implementation

URL PROCESSING METHODS

    federate/federate-core
	Parses URL and returns only the hostname

    db/db-core
	Parses URL, cleans it by removing path and query parameters and
	returns the end result
2022-07-15 20:52:47 +05:30
dat-adi
a65115bfeb fix: Refactored grammatical errors 2022-07-05 14:05:57 +05:30
76cd9a0fd6
feat: def interface to check if repository exists 2022-06-04 21:29:59 +05:30
e2cf9460e5
feat: def interface to check if user exists 2022-06-04 20:45:01 +05:30
0d0f5270fd
feat: def forge_exists interface 2022-06-03 23:10:31 +05:30
52cd757ca7
feat: explicitly mention cargo entry points 2022-05-23 18:54:55 +05:30
f78a331e9c feat: retrun latest archive in tar() 2022-05-19 18:19:37 +05:30
519855a7c3
feat: mv write_util out of Federate trait for allowing creation of trait objs 2022-05-17 20:11:35 +05:30
95ca4fb1d3
feat: define interfaces to enable file-based federation mechanisms
DESCRIPTION
    <BASE_DIR>/forge.example.com/:
	This directory contains all data related to a particular forge instance running
	at forge.example.com

    <BASE_DIR>/forge.example.com/forgeinfo:
	This file contains metadata pertaining to a forge.

	The file format and file name is left to the discretion of the
	implementer.

    <BASE_DIR>/forge.example.com/john/:
	This directory contains all data related to a user named "john"
	on forge instance at forge.example.com.

    <BASE_DIR>/forge.example.com/john/userinfo:
	This file contains all metadata related to a user named "john"
	on forge instance at forge.example.com.

	The file format and file name is left to the discretion of the
	implementer.

    <BASE_DIR>/forge.example.com/john/repo-foo/:
	This directory contains all data related to a repository named
	"repo-foo" owned by user "john" on forge instance at
	forge.example.com.

    <BASE_DIR>/forge.example.com/john/repo-foo/repo-info:
	This file contains all metadata related to a repository named
	"repo-foo" owned by user "john" on forge instance at
	forge.example.com.

	The file format and file name is left to the discretion of the
	implementer.
2022-05-17 19:42:23 +05:30