HTTP git server. This service provides a HTTP git server for managing git repositories.
Push pull and clone are supported.
Field |
Type |
Description |
name |
string |
Name of the service. |
version |
1 |
Version of the service. |
Mixin |
Type |
Description |
ConfigLoader |
ConfigLoader |
Config loader mixin for loading configuration. |
Setting |
Type |
Description |
rest |
true |
Enable REST endpoint. |
config |
|
Default init config settings. |
Parameter |
Type |
Description |
req |
object |
HTTP request object. |
res |
object |
HTTP response object. |
Parameter |
Type |
Description |
None |
|
No parameters. |
Parameter |
Type |
Description |
None |
|
No parameters. |
Parameter |
Type |
Description |
id |
string |
Repository ID. |
1. git.repositories.created
Parameter |
Type |
Description |
ctx |
object |
Context object. |
2. git.repositories.updated
Parameter |
Type |
Description |
ctx |
object |
Context object. |
3. git.repositories.removed
Parameter |
Type |
Description |
ctx |
object |
Context object. |
Parameter |
Type |
Description |
None |
|
No parameters. |
Parameter |
Type |
Description |
ctx |
Context |
Context of the request. |
req |
http.IncomingMessage |
HTTP request object. |
res |
http.ServerResponse |
HTTP response object. |
service |
object |
Service object. |
repositoryPath |
string |
Path to the repository. |
Parameter |
Type |
Description |
ctx |
Context |
Context of the request. |
req |
http.IncomingMessage |
HTTP request object. |
res |
http.ServerResponse |
HTTP response object. |
service |
object |
Service object. |
repositoryPath |
string |
Path to the repository. |
Parameter |
Type |
Description |
ctx |
Context |
Context of the request. |
repositoryPath |
string |
Path to the repository. |
head |
string |
Head of the commit. |
Parameter |
Type |
Description |
ctx |
Context |
Context of the request. |
commit |
object |
Commit object. |
Parameter |
Type |
Description |
ctx |
Context |
Context of the request. |
req |
http.IncomingMessage |
HTTP request object. |
res |
http.ServerResponse |
HTTP response object. |
service |
object |
Service object. |
repositoryPath |
string |
Path to the repository. |
Parameter |
Type |
Description |
None |
|
No parameters. |
Parameter |
Type |
Description |
ctx |
Context |
Context of the request. |
repository |
object |
Repository object. |
Parameter |
Type |
Description |
None |
|
No parameters. |
Parameter |
Type |
Description |
None |
|
No parameters. |
Parameter |
Type |
Description |
None |
|
No parameters. |
Commit service. This service provides a commit service for managing commits.
Field |
Type |
Description |
name |
string |
Name of the service. |
version |
1 |
Version of the service. |
Mixin |
Type |
Description |
DbService |
DbService |
Database mixin. |
ConfigLoader |
ConfigLoader |
Config loader mixin for loading configuration. |
Setting |
Type |
Description |
rest |
true |
Enable REST endpoint. |
fields |
object |
Service fields configuration. |
defaultPopulates |
array |
Default populates array. |
scopes |
object |
Service scopes configuration. |
defaultScopes |
array |
Default scopes array. |
config |
|
Default init config settings. |
Field |
Type |
Index |
Required |
repository |
string |
true |
true |
user |
string |
true |
true |
hash |
string |
true |
true |
branch |
string |
true |
false |
Action |
Parameters |
Description |
... No actions defined yet. |
|
|
1. git.repositories.removed
Parameter |
Type |
Description |
ctx |
object |
Context object. |
Parameter |
Type |
Description |
ctx |
object |
Context object. |
Method |
Parameters |
Description |
... No methods defined yet. |
|
|
Parameter |
Type |
Description |
None |
|
No parameters. |
Parameter |
Type |
Description |
None |
|
No parameters. |
Parameter |
Type |
Description |
None |
|
No parameters. |