utils

package
v0.0.0-...-deab390 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(ctx context.Context) bool

func CloseFile

func CloseFile(f http.File)

func CloseResponse

func CloseResponse(response *http.Response)

func GenerateHash

func GenerateHash(file string) error

func GetRepository

func GetRepository(ctx context.Context, mavenConfig *config.MavenConfig, libName string) (repository *config.Repository, err error)

func ReadRemote

func ReadRemote(ctx context.Context, repository *config.Repository, jarPath string) *http.Response

func SaveFile

func SaveFile(localFilePath string, data []byte) error

func TouchFile

func TouchFile(file string, hash string, bytes []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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