mirror

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 17 Imported by: 4

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 added in v1.12.5

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