mirror

package
v1.14.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(m *models.Mirror) string

Address returns mirror address from Git repository config without credentials.

func AddressNoCredentials

func AddressNoCredentials(m *models.Mirror) string

AddressNoCredentials returns mirror address from Git repository config without credentials.

func InitSyncMirrors

func InitSyncMirrors()

InitSyncMirrors initializes a go routine to sync the mirrors

func Password

func Password(m *models.Mirror) string

Password returns the mirror address password

func StartToMirror

func StartToMirror(repoID int64)

StartToMirror adds repoID to mirror queue

func SyncMirrors

func SyncMirrors(ctx context.Context)

SyncMirrors checks and syncs mirrors. FIXME: graceful: this should be a persistable queue

func Update

func Update(ctx context.Context) error

Update checks and updates mirror repositories.

func UpdateAddress

func UpdateAddress(m *models.Mirror, addr string) error

UpdateAddress writes new address to Git repository and database

func Username

func Username(m *models.Mirror) string

Username returns the mirror address username

Types

This section is empty.

Jump to

Keyboard shortcuts

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