toolkit

package
v0.0.0-...-96490c8 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package toolkit @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketInfo

func BucketInfo(ctx context.Context) (*marshal.BucketInfo, error)

BucketInfo 查询缓存路径信息

func GetAuthDecode

func GetAuthDecode(authorization string) (user, pwd string, err error)

GetAuthDecode 解密用户字符串

func GetAuthEncode

func GetAuthEncode(user, pwd string) string

GetAuthEncode 加密用户字符串

func GetLibNames

func GetLibNames(ctx context.Context) (libs map[string]string, err error)

GetLibNames 获取已配置的仓库名称信息 最终请求示例:http://127.0.0.1:10010/v1.api/maven/getRepository

func GetMirrors

func GetMirrors(ctx context.Context) (mirrors []string, err error)

GetMirrors 获取配置的镜像地址

func GetSyncMirrors

func GetSyncMirrors(ctx context.Context)

GetSyncMirrors 同步官网数据

func OnConfig

func OnConfig(str string)

OnConfig 初始化配置参数信息到内存

Types

This section is empty.

Jump to

Keyboard shortcuts

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