osm_sdk

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

README

osm-sdk

osm服务的sdk

Documentation

Index

Constants

View Source
const TimeoutSec = 30

Variables

This section is empty.

Functions

func Copy

func Copy(srcObjName, dstObjName string, requireInfos []string) error

func CopyPublic

func CopyPublic(srcObjName, dstObjName string, requireInfos []string) error

func CopyPublicWithPrefix

func CopyPublicWithPrefix(srcObjName, dstObjName string, requireInfos []string) error

func CopyWithPrefix

func CopyWithPrefix(srcObjName, dstObjName string, requireInfos []string) error

func DeleteMulti

func DeleteMulti(userId string, objNames ...string) error

func DeleteMultiWithPrefix

func DeleteMultiWithPrefix(userId string, objNames ...string) error

func Destroy

func Destroy()

func Exist

func Exist(objName, userId string) (bool, error)

func ExistWithPrefix

func ExistWithPrefix(objName, userId string) (bool, error)

func GetUrl

func GetUrl(objName, userId string) (string, error)

func GetUrlWithPrefix

func GetUrlWithPrefix(objName, userId string) (string, error)

func Init

func Init(configPrefix, configNamespace, configName, baseUrl string) error

func ListDir

func ListDir(dirPath, userId string) ([]string, error)

func ListDirWithPrefix

func ListDirWithPrefix(dirPath, userId string) ([]string, error)

func Move

func Move(srcObjName, dstObjName, userId string, requireInfos []string) error

func MoveWithPrefix

func MoveWithPrefix(srcObjName, dstObjName, userId string, requireInfos []string) error

func ZoomUrl

func ZoomUrl(objName, profess string) (string, error)

func ZoomUrlWithPrefix

func ZoomUrlWithPrefix(objName, profess string) (string, error)

Types

type ConfigKey

type ConfigKey struct {
	Namespace string `json:"namespace" form:"namespace" binding:"required"`
	Name      string `json:"name" form:"name" binding:"required"`
}

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 DeleteMultiObjJsonBody struct {
	ConfigKey
	ObjNames         []string `json:"objNames" binding:"required"`
	UserID           string   `json:"userId"`
	OperatorUserName string   `json:"operatorUserName" assign:"toField:OperatorUserName"`
}

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

type ObjectInfo struct {
	Key  string
	Type string
	Size int64
}

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"`
}

Jump to

Keyboard shortcuts

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