alpine

package
v0.0.0-...-a6b6bab Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package alpine @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License

Package alpine @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License

Package alpine @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License

Package alpine @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnAlpineCfg

func OnAlpineCfg(str string)

OnAlpineCfg 初始化配置文件

Types

type AlpineConfig

type AlpineConfig struct {
	Mirror string `` /* 158-byte string literal not displayed */
}

func GetAlpineConfig

func GetAlpineConfig() *AlpineConfig

GetAlpineConfig 获取alpine配置的资源文件信息

type AlpineProxy

type AlpineProxy struct {
	Com *storage.Storage //通用工具类
	// contains filtered or unexported fields
}

func Client

func Client(ctx context.Context) *AlpineProxy

Client 仓库连接

func (*AlpineProxy) Get

func (c *AlpineProxy) Get() (u *cacheModel.ObjectsInfo, err error)

Get get/head请求时候入口 最终请求示例: http://mirrors.ustc.edu.cn/alpine/v3.18/main/x86_64/7zip-22.01-r5.apk @param version 版本 @param arch 系统指令类型 @param command 数据分类 @param moduleName 包路径名称

func (*AlpineProxy) GetSyncMirrors

func (c *AlpineProxy) GetSyncMirrors()

GetSyncMirrors 同步官网数据 请求示例: http://mirrors.ustc.edu.cn/alpine/v3.18/main/x86_64/7zip-22.01-r5.apk

Jump to

Keyboard shortcuts

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