|
|
@ -10,6 +10,7 @@ type CreatePushMirrorOption struct { |
|
|
|
RemoteUsername string `json:"remote_username"` |
|
|
|
RemoteUsername string `json:"remote_username"` |
|
|
|
RemotePassword string `json:"remote_password"` |
|
|
|
RemotePassword string `json:"remote_password"` |
|
|
|
Interval string `json:"interval"` |
|
|
|
Interval string `json:"interval"` |
|
|
|
|
|
|
|
SyncOnCommit bool `json:"sync_on_commit"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// PushMirror represents information of a push mirror
|
|
|
|
// PushMirror represents information of a push mirror
|
|
|
@ -22,4 +23,5 @@ type PushMirror struct { |
|
|
|
LastUpdateUnix string `json:"last_update"` |
|
|
|
LastUpdateUnix string `json:"last_update"` |
|
|
|
LastError string `json:"last_error"` |
|
|
|
LastError string `json:"last_error"` |
|
|
|
Interval string `json:"interval"` |
|
|
|
Interval string `json:"interval"` |
|
|
|
|
|
|
|
SyncOnCommit bool `json:"sync_on_commit"` |
|
|
|
} |
|
|
|
} |
|
|
|