Documentation ¶
Index ¶
- func Address(m *models.Mirror) string
- func AddressNoCredentials(m *models.Mirror) string
- func InitSyncMirrors()
- func Password(m *models.Mirror) string
- func StartToMirror(repoID int64)
- func SyncMirrors(ctx context.Context)
- func Update(ctx context.Context) error
- func UpdateAddress(m *models.Mirror, addr string) error
- func Username(m *models.Mirror) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressNoCredentials ¶
AddressNoCredentials returns mirror address from Git repository config without credentials.
func InitSyncMirrors ¶
func InitSyncMirrors()
InitSyncMirrors initializes a go routine to sync the mirrors
func SyncMirrors ¶
SyncMirrors checks and syncs mirrors. FIXME: graceful: this should be a persistable queue
func UpdateAddress ¶ added in v1.12.5
UpdateAddress writes new address to Git repository and database
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.