Documentation ¶
Index ¶
- Constants
- func GetAppInfo(code string) (*sdkentity.AppRegisterInfo, error)
- func RegisterMessageRobot(appCode, robotDesc string) error
- func SendMessage(un *utils.UserNamespace, appCode, content, replyUUID string) error
- type FFmpegOSApi
- type KVCoreApi
- type StorageApi
- func (s StorageApi) Chtimes(path string, atime time.Time, mtime time.Time) error
- func (s StorageApi) EnsureDirExist(ps ...string)
- func (s StorageApi) FileExists(path string) bool
- func (s StorageApi) InodeToFileInfo(inode int64) *sdkdto.FileInfoRes
- func (s StorageApi) InodeToPath(inode int64) string
- func (s StorageApi) InodesToFileInfos(inodes ...int64) map[int64]sdkdto.FileInfoRes
- func (s StorageApi) MkdirAll(path string) error
- func (s StorageApi) Open(path string) (*os.File, *net.UnixConn, string, error)
- func (s StorageApi) OpenFile(path string, flag int, perm os.FileMode) (*os.File, *net.UnixConn, string, error)
- func (s StorageApi) PathToInode(path string) int64
- func (s StorageApi) Remove(path string) error
- func (s StorageApi) Rename(oldPath, newPath string) error
Constants ¶
View Source
const ( KVApiPut = "/put" KVApiDelete = "/delete" KVApiGet = "/value" )
View Source
const ( AppCodeQuery = "appCode" TypeQuery = "type" KeyQuery = "key" ValueQuery = "value" )
View Source
const CoreHTTPPort = 40100
View Source
const LocalhostAddress = "http://10.62.0.1"
View Source
const OSHTTPPort = 40000
View Source
const UnixSocketPrefix = "/siyouyun/unix-socket/"
Variables ¶
This section is empty.
Functions ¶
func GetAppInfo ¶
func RegisterMessageRobot ¶ added in v0.2.20
func SendMessage ¶ added in v0.2.20
func SendMessage(un *utils.UserNamespace, appCode, content, replyUUID string) error
Types ¶
type FFmpegOSApi ¶ added in v0.2.3
type FFmpegOSApi struct { Host string *utils.UserNamespace }
func NewFFmpegOSApi ¶ added in v0.2.3
func NewFFmpegOSApi(un *utils.UserNamespace) *FFmpegOSApi
func (*FFmpegOSApi) GetInfo ¶ added in v0.2.3
func (kv *FFmpegOSApi) GetInfo(parentPath, name string) (*sdkdto.FFProbeInfo, error)
GetInfo GetInfo
type KVCoreApi ¶ added in v0.2.3
type KVCoreApi struct { Host string AppCode string *utils.UserNamespace }
func NewKVCoreApi ¶ added in v0.2.3
func NewKVCoreApi(appCode string, un *utils.UserNamespace) *KVCoreApi
type StorageApi ¶ added in v0.1.21
type StorageApi struct {
// contains filtered or unexported fields
}
func NewStorageApi ¶ added in v0.1.21
func NewStorageApi(un *utils.UserNamespace) *StorageApi
func (StorageApi) EnsureDirExist ¶ added in v0.1.21
func (s StorageApi) EnsureDirExist(ps ...string)
EnsureDirExist 确保目录存在
func (StorageApi) FileExists ¶ added in v0.1.21
func (s StorageApi) FileExists(path string) bool
FileExists 文件是否存在
func (StorageApi) InodeToFileInfo ¶ added in v0.1.21
func (s StorageApi) InodeToFileInfo(inode int64) *sdkdto.FileInfoRes
InodeToFileInfo inode转fileInfo
func (StorageApi) InodeToPath ¶ added in v0.1.21
func (s StorageApi) InodeToPath(inode int64) string
InodeToPath inode转path
func (StorageApi) InodesToFileInfos ¶ added in v0.1.21
func (s StorageApi) InodesToFileInfos(inodes ...int64) map[int64]sdkdto.FileInfoRes
InodesToFileInfos inodes转fileInfos
func (StorageApi) MkdirAll ¶ added in v0.1.21
func (s StorageApi) MkdirAll(path string) error
MkdirAll 递归创建目录
func (StorageApi) OpenFile ¶ added in v0.1.21
func (s StorageApi) OpenFile(path string, flag int, perm os.FileMode) (*os.File, *net.UnixConn, string, error)
OpenFile 打开或创建文件
func (StorageApi) PathToInode ¶ added in v0.1.21
func (s StorageApi) PathToInode(path string) int64
PathToInode path转inode
func (StorageApi) Remove ¶ added in v0.1.21
func (s StorageApi) Remove(path string) error
Remove 删除文件
func (StorageApi) Rename ¶ added in v0.1.21
func (s StorageApi) Rename(oldPath, newPath string) error
Rename 重命名文件
Click to show internal directories.
Click to hide internal directories.