|
|
|
@ -113,26 +113,26 @@ func ParseRemoteAddr(remoteAddr, authUsername, authPassword string) (string, err
|
|
|
|
|
|
|
|
|
|
// RepoSettingForm form for changing repository settings
|
|
|
|
|
type RepoSettingForm struct { |
|
|
|
|
RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"` |
|
|
|
|
Description string `binding:"MaxSize(255)"` |
|
|
|
|
Resources string `binding:"MaxSize(1024)"` |
|
|
|
|
Competences string `binding:"MaxSize(1024)"` |
|
|
|
|
Website string `binding:"ValidUrl;MaxSize(255)"` |
|
|
|
|
LocationCoordinate string |
|
|
|
|
Interval string |
|
|
|
|
MirrorAddress string |
|
|
|
|
MirrorUsername string |
|
|
|
|
MirrorPassword string |
|
|
|
|
LFS bool `form:"mirror_lfs"` |
|
|
|
|
LFSEndpoint string `form:"mirror_lfs_endpoint"` |
|
|
|
|
PushMirrorID string |
|
|
|
|
PushMirrorAddress string |
|
|
|
|
PushMirrorUsername string |
|
|
|
|
PushMirrorPassword string |
|
|
|
|
PushMirrorInterval string |
|
|
|
|
Private bool |
|
|
|
|
Template bool |
|
|
|
|
EnablePrune bool |
|
|
|
|
RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"` |
|
|
|
|
Description string `binding:"MaxSize(255)"` |
|
|
|
|
Resources string `binding:"MaxSize(1024)"` |
|
|
|
|
Competences string `binding:"MaxSize(1024)"` |
|
|
|
|
Website string `binding:"ValidUrl;MaxSize(255)"` |
|
|
|
|
LocationCoordinates string `binding:"MaxSize(1024)"` |
|
|
|
|
Interval string |
|
|
|
|
MirrorAddress string |
|
|
|
|
MirrorUsername string |
|
|
|
|
MirrorPassword string |
|
|
|
|
LFS bool `form:"mirror_lfs"` |
|
|
|
|
LFSEndpoint string `form:"mirror_lfs_endpoint"` |
|
|
|
|
PushMirrorID string |
|
|
|
|
PushMirrorAddress string |
|
|
|
|
PushMirrorUsername string |
|
|
|
|
PushMirrorPassword string |
|
|
|
|
PushMirrorInterval string |
|
|
|
|
Private bool |
|
|
|
|
Template bool |
|
|
|
|
EnablePrune bool |
|
|
|
|
|
|
|
|
|
// Advanced settings
|
|
|
|
|
EnableWiki bool |
|
|
|
|