toolkit

package
v0.0.0-...-52e4a05 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 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

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

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

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

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 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 GolangBucketInfo

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

GolangBucketInfo 查询缓存路径信息

func GolangOnConfig

func GolangOnConfig(str string)

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

func MavenBucketInfo

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

MavenBucketInfo 查询缓存路径信息

func MavenOnConfig

func MavenOnConfig(str string)

MavenOnConfig 更新golang配置的资源文件信息

func NpmBucketInfo

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

NpmBucketInfo 查询缓存路径信息

func NpmOnConfig

func NpmOnConfig(str string)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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