Documentation ¶
Overview ¶
Package utils @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License
Package utils @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License
Index ¶
- func CheckAuth(ctx context.Context) bool
- func CloseFile(f http.File)
- func CloseResponse(response *http.Response)
- func GenerateHash(file string) error
- func GetRepository(ctx context.Context, mavenConfig *config.MavenConfig, libName string) (repository *config.Repository, err error)
- func ReadRemote(ctx context.Context, repository *config.Repository, jarPath string) *http.Response
- func SaveFile(localFilePath string, data []byte) error
- func TouchFile(file string, hash string, bytes []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRepository ¶
func GetRepository(ctx context.Context, mavenConfig *config.MavenConfig, libName string) (repository *config.Repository, err error)
func ReadRemote ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.