Documentation ¶
Index ¶
- Constants
- func GetAppInfo(code string) (*sdkdto.AppRegisterInfo, error)
- func RegisterAppMessageRobot(appCode, robotDesc string) error
- func SendMessage(ugn *utils.UserGroupNamespace, appCode, content, replyUUID string) error
- type StorageApi
- func (s StorageApi) Chtimes(path string, atime time.Time, mtime time.Time) error
- func (s StorageApi) EnsureDirExist(path string)
- func (s StorageApi) FileExists(path string) bool
- func (s StorageApi) InodeToFileInfo(inode uint64) *sdkdto.FileInfoRes
- func (s StorageApi) InodeToPath(inode uint64) string
- func (s StorageApi) InodesToFileInfos(inodes ...uint64) map[uint64]*sdkdto.FileInfoRes
- func (s StorageApi) MkdirAll(path string) error
- func (s StorageApi) Open(path string) (*os.File, error)
- func (s StorageApi) OpenAvatarFile(path string) (*os.File, error)
- func (s StorageApi) OpenFile(path string, flag int, perm os.FileMode) (*os.File, error)
- func (s StorageApi) PathToInode(path string) uint64
- func (s StorageApi) Remove(path string) error
- func (s StorageApi) RemoveAll(path string) error
- func (s StorageApi) Rename(oldPath, newPath string) error
Constants ¶
View Source
const ( CoreServiceURL = "http://10.62.0.1:40100/syy" OSServiceURL = "http://10.62.0.1:40000/os" UnixSocketFile = "/siyouyun/unix-socket/syy_os_file.socket" )
Variables ¶
This section is empty.
Functions ¶
func GetAppInfo ¶
func RegisterAppMessageRobot ¶ added in v0.4.16
func SendMessage ¶
func SendMessage(ugn *utils.UserGroupNamespace, appCode, content, replyUUID string) error
Types ¶
type StorageApi ¶
type StorageApi struct {
// contains filtered or unexported fields
}
func NewStorageApi ¶
func NewStorageApi(ugn *utils.UserGroupNamespace) *StorageApi
func (StorageApi) EnsureDirExist ¶
func (s StorageApi) EnsureDirExist(path string)
EnsureDirExist 确保目录存在
func (StorageApi) InodeToFileInfo ¶
func (s StorageApi) InodeToFileInfo(inode uint64) *sdkdto.FileInfoRes
InodeToFileInfo inode转fileInfo
func (StorageApi) InodeToPath ¶
func (s StorageApi) InodeToPath(inode uint64) string
InodeToPath inode转path
func (StorageApi) InodesToFileInfos ¶
func (s StorageApi) InodesToFileInfos(inodes ...uint64) map[uint64]*sdkdto.FileInfoRes
InodesToFileInfos inodes转fileInfos
func (StorageApi) OpenAvatarFile ¶ added in v0.4.13
func (s StorageApi) OpenAvatarFile(path string) (*os.File, error)
OpenAvatarFile 打开替身文件
func (StorageApi) PathToInode ¶
func (s StorageApi) PathToInode(path string) uint64
PathToInode path转inode
func (StorageApi) RemoveAll ¶ added in v0.4.22
func (s StorageApi) RemoveAll(path string) error
RemoveAll 删除文件或文件夹(包括子目录)
Click to show internal directories.
Click to hide internal directories.