Documentation ¶
Index ¶
- Constants
- func InitMeta(metadbIp string, metadbPort int, ...) error
- type MysqlDriver
- func (db *MysqlDriver) DeleteFileMetaInfoV1(path string) error
- func (db *MysqlDriver) DeleteFileMetaInfoV2(path string) error
- func (db *MysqlDriver) ExtractDirectoryAndFile(path string) (string, string)
- func (db *MysqlDriver) GetDescendantPath(path string) ([]string, error)
- func (db *MysqlDriver) GetDirectoryInfo(path string) ([]string, error)
- func (db *MysqlDriver) GetFileMetaInfo(path string, detail bool) ([]*MetaInfoValue, error)
- func (db *MysqlDriver) GetFragmentMetaInfo(path string, index, start, end uint64) (*MetaInfoValue, error)
- func (db *MysqlDriver) HandleDirectory(path string, opcode int16) error
- func (db *MysqlDriver) MoveFile(sourcePath, destPath string) error
- func (db *MysqlDriver) StoreMetaInfoV1(metaInfo *MetaInfo) error
- func (db *MysqlDriver) StoreMetaInfoV2(metaInfo *MetaInfo) error
Constants ¶
View Source
const ( ADDFILE = 1 DELFILE = 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MysqlDriver ¶
type MysqlDriver struct { }
func (*MysqlDriver) DeleteFileMetaInfoV1 ¶
func (db *MysqlDriver) DeleteFileMetaInfoV1(path string) error
func (*MysqlDriver) DeleteFileMetaInfoV2 ¶
func (db *MysqlDriver) DeleteFileMetaInfoV2(path string) error
func (*MysqlDriver) ExtractDirectoryAndFile ¶
func (db *MysqlDriver) ExtractDirectoryAndFile(path string) (string, string)
path: repositories/username/ubuntu/tag_v2 key: DIRECTORY_repositories/username/ubuntu value: tag_v2
func (*MysqlDriver) GetDescendantPath ¶
func (db *MysqlDriver) GetDescendantPath(path string) ([]string, error)
func (*MysqlDriver) GetDirectoryInfo ¶
func (db *MysqlDriver) GetDirectoryInfo(path string) ([]string, error)
func (*MysqlDriver) GetFileMetaInfo ¶
func (db *MysqlDriver) GetFileMetaInfo(path string, detail bool) ([]*MetaInfoValue, error)
[(Index0, Start0, End0, IsLast0), (Index1, Start1, End1, IsLast1)]
func (*MysqlDriver) GetFragmentMetaInfo ¶
func (db *MysqlDriver) GetFragmentMetaInfo(path string, index, start, end uint64) (*MetaInfoValue, error)
func (*MysqlDriver) HandleDirectory ¶
func (db *MysqlDriver) HandleDirectory(path string, opcode int16) error
repositories/username/ubuntu/tag_v2
func (*MysqlDriver) MoveFile ¶
func (db *MysqlDriver) MoveFile(sourcePath, destPath string) error
func (*MysqlDriver) StoreMetaInfoV1 ¶
func (db *MysqlDriver) StoreMetaInfoV1(metaInfo *MetaInfo) error
func (*MysqlDriver) StoreMetaInfoV2 ¶
func (db *MysqlDriver) StoreMetaInfoV2(metaInfo *MetaInfo) error
Click to show internal directories.
Click to hide internal directories.