mirror

package
v0.19.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPushMirrorRemote

func AddPushMirrorRemote(ctx context.Context, m *repo_model.PushMirror, addr string) error

AddPushMirrorRemote registers the push mirror remote.

func InitSyncMirrors

func InitSyncMirrors()

InitSyncMirrors initializes a go routine to sync the mirrors

func RemovePushMirrorRemote

func RemovePushMirrorRemote(ctx context.Context, m *repo_model.PushMirror) error

RemovePushMirrorRemote removes the push mirror remote.

func SyncPullMirror

func SyncPullMirror(ctx context.Context, repoID int64) bool

SyncPullMirror starts the sync of the pull mirror and schedules the next run.

func SyncPushMirror

func SyncPushMirror(ctx context.Context, mirrorID int64) bool

SyncPushMirror starts the sync of the push mirror and schedules the next run.

func Update

func Update(ctx context.Context, pullLimit, pushLimit int) error

Update checks and updates mirror repositories.

func UpdateAddress

func UpdateAddress(ctx context.Context, m *repo_model.Mirror, addr string) error

UpdateAddress writes new address to Git repository and database

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL