Documentation
¶
Index ¶
- Constants
- func Copy(srcObjName, dstObjName string, requireInfos []string) error
- func CopyPublic(srcObjName, dstObjName string, requireInfos []string) error
- func CopyPublicWithPrefix(srcObjName, dstObjName string, requireInfos []string) error
- func CopyWithPrefix(srcObjName, dstObjName string, requireInfos []string) error
- func DeleteMulti(userId string, objNames ...string) error
- func DeleteMultiWithPrefix(userId string, objNames ...string) error
- func Destroy()
- func Exist(objName, userId string) (bool, error)
- func ExistWithPrefix(objName, userId string) (bool, error)
- func GetUrl(objName, userId string) (string, error)
- func GetUrlWithPrefix(objName, userId string) (string, error)
- func Init(configPrefix, configNamespace, configName, baseUrl string) error
- func ListDir(dirPath, userId string) ([]string, error)
- func ListDirWithPrefix(dirPath, userId string) ([]string, error)
- func Move(srcObjName, dstObjName, userId string, requireInfos []string) error
- func MoveWithPrefix(srcObjName, dstObjName, userId string, requireInfos []string) error
- func ZoomUrl(objName, profess string) (string, error)
- func ZoomUrlWithPrefix(objName, profess string) (string, error)
- type ConfigKey
- type CopyJsonBody
- type DeleteMultiObjJsonBody
- type MoveJsonBody
- type ObjectInfo
- type ZoomUrlJsonBody
Constants ¶
View Source
const TimeoutSec = 30
Variables ¶
This section is empty.
Functions ¶
func CopyPublic ¶
func CopyPublicWithPrefix ¶
func CopyWithPrefix ¶
func DeleteMulti ¶
func DeleteMultiWithPrefix ¶
func ExistWithPrefix ¶
func GetUrlWithPrefix ¶
func ListDirWithPrefix ¶
func MoveWithPrefix ¶
func ZoomUrlWithPrefix ¶
Types ¶
type CopyJsonBody ¶
type CopyJsonBody struct { ConfigKey SrcObjName string `json:"srcObjName" binding:"required"` DstObjName string `json:"dstObjName" binding:"required"` RequireInfos []string `json:"requireInfos"` CreateUserID string `json:"createUserId" assign:"toField:CreateUserID"` OperatorUserName string `json:"operatorUserName" assign:"toField:OperatorUserName"` }
type DeleteMultiObjJsonBody ¶
type MoveJsonBody ¶
type MoveJsonBody struct { ConfigKey SrcObjName string `json:"srcObjName" binding:"required"` DstObjName string `json:"dstObjName" binding:"required"` RequireInfos []string `json:"requireInfos"` UpdateUserID string `json:"updateUserId" assign:"toField:LastUpdateUserID"` OperatorUserName string `json:"operatorUserName" assign:"toField:OperatorUserName"` }
type ObjectInfo ¶
func LsDetails ¶
func LsDetails(dirPath, userId string) ([]ObjectInfo, error)
func LsDetailsWithPrefix ¶
func LsDetailsWithPrefix(dirPath, userId string) ([]ObjectInfo, error)
type ZoomUrlJsonBody ¶
type ZoomUrlJsonBody struct { ConfigKey ObjName string `json:"srcObjName" binding:"required"` Process string `json:"dstObjName" binding:"required"` RequireInfos []string `json:"requireInfos"` CreateUserID string `json:"createUserId" assign:"toField:CreateUserID"` OperatorUserName string `json:"operatorUserName" assign:"toField:OperatorUserName"` }
Click to show internal directories.
Click to hide internal directories.