Documentation ¶
Index ¶
Constants ¶
View Source
const ( PageCurrent = "page" PageSize = "pageSize" )
Variables ¶
View Source
var ReadBufPool = sync.Pool{ New: func() interface{} { b := make([]byte, 1024) return &b }, }
ReadBufPool 读取缓冲池
Functions ¶
func GetAIServiceURL ¶ added in v0.7.7
func GetAIServiceURL() string
func GetCoreServiceURL ¶ added in v0.7.7
func GetCoreServiceURL() string
func GetMilvusServiceURL ¶ added in v0.7.7
func GetMilvusServiceURL() string
func GetNatsServiceURL ¶ added in v0.7.7
func GetNatsServiceURL() string
func GetOSServiceURL ¶ added in v0.7.7
func GetOSServiceURL() string
Types ¶
type Pagination ¶
func NewPaginationFromIris ¶
func NewPaginationFromIris(ctx iris.Context) *Pagination
type StorageType ¶ added in v0.8.0
type StorageType string
const ( RawDisk StorageType = "raw-disk" USB StorageType = "usb" Baiduyun StorageType = "baiduyun" CommonOSS StorageType = "oss" AliyunOSS StorageType = "aliyun-oss" TencentOSS StorageType = "tencent-oss" SambaClient StorageType = "smb-client" UFSMeta StorageType = "pool-meta" UFSRaw StorageType = "pool-raw" UFSSandbox StorageType = "pool-sandbox" Snapshot StorageType = "pool-snapshot" Trash StorageType = "pool-trash" Webdav StorageType = "webdav" FTP StorageType = "ftp" )
func (StorageType) IsSiyouyunStorage ¶ added in v0.8.0
func (t StorageType) IsSiyouyunStorage() bool
func (StorageType) String ¶ added in v0.8.0
func (t StorageType) String() string
type UFI ¶ added in v0.8.0
type UFI struct { StorageType StorageType `json:"storageType"` UUID string `json:"uuid"` FullPath string `json:"fullPath"` // contains filtered or unexported fields }
UFI Uniform Resource Identifier
func NewUFI ¶ added in v0.8.0
func NewUFI(storageType StorageType, uuid string, fullPath string) *UFI
func NewUFIFromSerialize ¶ added in v0.8.2
type UFIProtocol ¶ added in v0.8.0
type UFIProtocol string
const (
UFIv1 UFIProtocol = "ufi"
)
func (UFIProtocol) String ¶ added in v0.8.0
func (U UFIProtocol) String() string
type UserGroupNamespace ¶
type UserGroupNamespace struct { Username string `json:"username"` // 用户名 GroupName string `json:"groupname"` // 组名 Namespace string `json:"namespace"` // 命名空间 }
func NewUserGroupNamespace ¶
func NewUserGroupNamespace(username, groupname, namespace string) *UserGroupNamespace
func NewUserNamespaceFromIris ¶
func NewUserNamespaceFromIris(ctx iris.Context) *UserGroupNamespace
func (*UserGroupNamespace) GetRealPrefix ¶ added in v0.5.4
func (ugn *UserGroupNamespace) GetRealPrefix(poolName string) string
func (*UserGroupNamespace) SchemaName ¶ added in v0.9.0
func (ugn *UserGroupNamespace) SchemaName() string
func (*UserGroupNamespace) String ¶
func (ugn *UserGroupNamespace) String() string
Click to show internal directories.
Click to hide internal directories.