em

package
v0.0.0-...-34386d6 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 2 Imported by: 4

Documentation

Overview

Package em @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 CenterTypeMap

func CenterTypeMap() map[string]CenterType

func OssTypeMap

func OssTypeMap() map[string]OssType

Types

type CenterType

type CenterType int //代理仓库类型
const (
	Golang CenterType = iota
	Maven
	Docker
	Npm
)

func GetCenterType

func GetCenterType(str string) CenterType

func (CenterType) String

func (p CenterType) String() string

type OssType

type OssType int //代理仓库缓存类型
const (
	Local OssType = iota
	MinioOss
	TencentOss
)

func GetOssType

func GetOssType(str string) OssType

func (OssType) String

func (p OssType) String() string

type UploadInfo

type UploadInfo struct {
	Bucket       string
	Key          string
	ETag         string
	Size         int64
	LastModified time.Time
	Location     string
	VersionID    string

	Expiration       time.Time
	ExpirationRuleID string

	ChecksumCRC32  string
	ChecksumCRC32C string
	ChecksumSHA1   string
	ChecksumSHA256 string

	Bytes []byte
}

Jump to

Keyboard shortcuts

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