Documentation ¶
Index ¶
- Variables
- func GenerateMirrorListByPredefined(osType int) (mirrors []string)
- func GetFullMirrorURL(mirror Define.UrlWithAlias) string
- func GetGeoMirrorUrlsByMode(mode int) (mirrors []string)
- func GetMirrorURLByAliases(osType int, alias string) string
- func GetPredefinedConfiguration(proxyMode int) (string, *regexp.Regexp)
- func GetUbuntuMirrorUrlsByGeo() (mirrors []string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var BUILDIN_ALPINE_MIRRORS = GenerateMirrorListByPredefined(Define.TYPE_LINUX_DISTROS_ALPINE)
View Source
var BUILDIN_CENTOS_MIRRORS = GenerateMirrorListByPredefined(Define.TYPE_LINUX_DISTROS_CENTOS)
View Source
var BUILDIN_DEBIAN_MIRRORS = GenerateMirrorListByPredefined(Define.TYPE_LINUX_DISTROS_DEBIAN)
View Source
var BUILDIN_UBUNTU_MIRRORS = GenerateMirrorListByPredefined(Define.TYPE_LINUX_DISTROS_UBUNTU)
View Source
var BUILDIN_UBUNTU_PORTS_MIRRORS = GenerateMirrorListByPredefined(Define.TYPE_LINUX_DISTROS_UBUNTU_PORTS)
Functions ¶
func GetFullMirrorURL ¶
func GetFullMirrorURL(mirror Define.UrlWithAlias) string
func GetGeoMirrorUrlsByMode ¶
func GetMirrorURLByAliases ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.