mirror

package
v1.11.7 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 18 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 SaveAddress

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

SaveAddress writes new address to Git repository config.

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)

Update checks and updates mirror repositories.

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