Documentation ¶
Index ¶
- func AddPushMirrorRemote(m *models.PushMirror, addr string) error
- func AddPushMirrorToQueue(mirrorID int64)
- func InitSyncMirrors()
- func RemovePushMirrorRemote(m *models.PushMirror) error
- func StartToMirror(repoID int64)
- func SyncPullMirror(ctx context.Context, repoID int64) bool
- func SyncPushMirror(ctx context.Context, mirrorID int64) bool
- func Update(ctx context.Context) error
- func UpdateAddress(m *models.Mirror, addr string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPushMirrorRemote ¶ added in v1.15.0
func AddPushMirrorRemote(m *models.PushMirror, addr string) error
AddPushMirrorRemote registers the push mirror remote.
func AddPushMirrorToQueue ¶ added in v1.15.0
func AddPushMirrorToQueue(mirrorID int64)
AddPushMirrorToQueue adds the push mirror to the queue
func InitSyncMirrors ¶
func InitSyncMirrors()
InitSyncMirrors initializes a go routine to sync the mirrors
func RemovePushMirrorRemote ¶ added in v1.15.0
func RemovePushMirrorRemote(m *models.PushMirror) error
RemovePushMirrorRemote removes the push mirror remote.
func SyncPullMirror ¶ added in v1.15.0
SyncPullMirror starts the sync of the pull mirror and schedules the next run.
func SyncPushMirror ¶ added in v1.15.0
SyncPushMirror starts the sync of the push mirror and schedules the next run.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.