gateway

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

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 GetAppInfo(code string) (*entity.AppRegisterInfo, error)

Types

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) Chtimes added in v0.1.25

func (s StorageApi) Chtimes(path string, atime time.Time, mtime time.Time) error

Chtimes 修改文件时间

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) *dto.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]dto.FileInfoRes

InodesToFileInfos inodes转fileInfos

func (StorageApi) MkdirAll added in v0.1.21

func (s StorageApi) MkdirAll(path string) error

MkdirAll 递归创建目录

func (StorageApi) Open added in v0.1.21

func (s StorageApi) Open(path string) (*os.File, *net.UnixConn, string, error)

Open 打开文件

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 重命名文件

Jump to

Keyboard shortcuts

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