gitea: code.gitea.io/gitea/services/mirror Index | Files

package mirror

import "code.gitea.io/gitea/services/mirror"

Index

Package Files

mirror.go

func Address Uses

func Address(m *models.Mirror) string

Address returns mirror address from Git repository config without credentials.

func AddressNoCredentials Uses

func AddressNoCredentials(m *models.Mirror) string

AddressNoCredentials returns mirror address from Git repository config without credentials.

func InitSyncMirrors Uses

func InitSyncMirrors()

InitSyncMirrors initializes a go routine to sync the mirrors

func Password Uses

func Password(m *models.Mirror) string

Password returns the mirror address password

func StartToMirror Uses

func StartToMirror(repoID int64)

StartToMirror adds repoID to mirror queue

func SyncMirrors Uses

func SyncMirrors(ctx context.Context)

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

func Update Uses

func Update(ctx context.Context) error

Update checks and updates mirror repositories.

func UpdateAddress Uses

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

UpdateAddress writes new address to Git repository and database

func Username Uses

func Username(m *models.Mirror) string

Username returns the mirror address username

Package mirror imports 17 packages (graph) and is imported by 22 packages. Updated 2021-01-20. Refresh now. Tools for package owners.