Documentation ¶
Index ¶
- func AESCBCDecode(key, content string) (result []byte, err error)
- func AESCBCEncode(key string, content []byte) (result string, err error)
- func CompareVersion(v1, v2 string) bool
- func Contains(ids []string, id string) bool
- func CreateZipCompress(zipPath, dirPath, fileName string) (err error)
- func DownloadFile(reqParam *NexusReqParam) (err error)
- func GetPath(path string) (newPath string, err error)
- func ListFilesInRepo(reqParam *NexusReqParam) (fileNameList []string, err error)
- func PathExist(path string) (bool, error)
- func ProcNodeSort(nodeIds []string, links [][]string) (nodeIndexMap map[string]int, isLoop bool)
- func RSADecrypt(inputString, rsaPemContent string) (string, error)
- func RSAEncrypt(inputData []byte, rsaPemContent string) (string, error)
- func RSAExtractPubKey(rsaPriPemContent string) (string, error)
- func StringListContains(inputList []string, target string) bool
- func WriteJsonData2File(path string, inter interface{}) (err error)
- type AssetChecksum
- type AssetItem
- type NexusFileParam
- type NexusReqParam
- type NexusUploadFileRet
- type SearchAssetsResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESCBCDecode ¶
len 16 key(means AES-128) + key => len 16 iv
func AESCBCEncode ¶
len 16 key(means AES-128) + key => len 16 iv
func CompareVersion ¶
func CreateZipCompress ¶
func ListFilesInRepo ¶
func ListFilesInRepo(reqParam *NexusReqParam) (fileNameList []string, err error)
ListFilesInRepo 列出 nexus 仓库中特定目录下的所有文件
func ProcNodeSort ¶
func RSADecrypt ¶
func RSAExtractPubKey ¶
func StringListContains ¶
func WriteJsonData2File ¶
Types ¶
type AssetChecksum ¶
type NexusFileParam ¶
type NexusReqParam ¶
type NexusReqParam struct { UserName string `json:"userName"` // 用户名 Password string `json:"password"` // 密码 RepoUrl string `json:"repoUrl"` // repo 的 url: http://127.0.0.1:8081 Repository string `json:"repository"` // repo 名称: test TimeoutSec int64 `json:"timeoutSec"` // 超时时间, 单位:s FileParams []*NexusFileParam `json:"fileParams"` // 文件的参数列表 DirPath string `json:"dirPath"` // 查询文件列表的目录路径: /test/t1 }
type NexusUploadFileRet ¶
type NexusUploadFileRet struct { SourceFilePath string `json:"sourceFilePath"` // 源文件的路径 DestFilePath string `json:"destFilePath"` // 目标文件的路径 StorePath string `json:"storePath"` // 文件存储的地址 }
func UploadFile ¶
func UploadFile(reqParam *NexusReqParam) (result []*NexusUploadFileRet, err error)
UploadFile nexus 上传
type SearchAssetsResp ¶
Click to show internal directories.
Click to hide internal directories.