Documentation ¶
Index ¶
- func Address(m *models.Mirror) string
- func AddressNoCredentials(m *models.Mirror) string
- func InitSyncMirrors()
- func Password(m *models.Mirror) string
- func SaveAddress(m *models.Mirror, addr string) error
- func StartToMirror(repoID int64)
- func SyncMirrors(ctx context.Context)
- func Update(ctx context.Context)
- 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 SaveAddress ¶
SaveAddress writes new address to Git repository config.
func SyncMirrors ¶
SyncMirrors checks and syncs mirrors. FIXME: graceful: this should be a persistable queue
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.