| @@ -6,8 +6,8 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/async" | "gitlink.org.cn/cloudream/common/pkgs/async" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type AccessStatEventChan = async.UnboundChannel[AccessStatEvent] | type AccessStatEventChan = async.UnboundChannel[AccessStatEvent] | ||||
| @@ -6,7 +6,7 @@ import ( | |||||
| "time" | "time" | ||||
| "github.com/jedib0t/go-pretty/v6/table" | "github.com/jedib0t/go-pretty/v6/table" | ||||
| cdssdk "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| cdssdk "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| func BucketListUserBuckets(ctx CommandContext) error { | func BucketListUserBuckets(ctx CommandContext) error { | ||||
| @@ -5,7 +5,7 @@ import ( | |||||
| "fmt" | "fmt" | ||||
| "time" | "time" | ||||
| cdssdk "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| cdssdk "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| func CacheMovePackage(ctx CommandContext, packageID cdssdk.PackageID, stgID cdssdk.StorageID) error { | func CacheMovePackage(ctx CommandContext, packageID cdssdk.PackageID, stgID cdssdk.StorageID) error { | ||||
| @@ -2,7 +2,7 @@ package cmdline | |||||
| import ( | import ( | ||||
| "github.com/spf13/cobra" | "github.com/spf13/cobra" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/services" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/services" | |||||
| ) | ) | ||||
| type CommandContext struct { | type CommandContext struct { | ||||
| @@ -7,7 +7,7 @@ import ( | |||||
| "github.com/samber/lo" | "github.com/samber/lo" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/distlock" | "gitlink.org.cn/cloudream/common/pkgs/distlock" | ||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/distlock/lockprovider" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/distlock/lockprovider" | |||||
| ) | ) | ||||
| // DistLockLock 尝试获取分布式锁。 | // DistLockLock 尝试获取分布式锁。 | ||||
| @@ -12,9 +12,9 @@ import ( | |||||
| "github.com/inhies/go-bytesize" | "github.com/inhies/go-bytesize" | ||||
| "github.com/spf13/cobra" | "github.com/spf13/cobra" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/config" | |||||
| cdssdk "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/iterator" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/config" | |||||
| cdssdk "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/iterator" | |||||
| ) | ) | ||||
| func init() { | func init() { | ||||
| @@ -8,7 +8,7 @@ import ( | |||||
| "time" | "time" | ||||
| "github.com/spf13/cobra" | "github.com/spf13/cobra" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| func init() { | func init() { | ||||
| @@ -8,7 +8,7 @@ import ( | |||||
| "github.com/jedib0t/go-pretty/v6/table" | "github.com/jedib0t/go-pretty/v6/table" | ||||
| "github.com/spf13/cobra" | "github.com/spf13/cobra" | ||||
| cdssdk "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| cdssdk "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| func init() { | func init() { | ||||
| @@ -5,8 +5,8 @@ import ( | |||||
| "os" | "os" | ||||
| "github.com/spf13/cobra" | "github.com/spf13/cobra" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/config" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/config" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gorm.io/driver/mysql" | "gorm.io/driver/mysql" | ||||
| "gorm.io/gorm" | "gorm.io/gorm" | ||||
| ) | ) | ||||
| @@ -10,7 +10,7 @@ import ( | |||||
| "github.com/jedib0t/go-pretty/v6/table" | "github.com/jedib0t/go-pretty/v6/table" | ||||
| "github.com/spf13/cobra" | "github.com/spf13/cobra" | ||||
| cdssdk "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| cdssdk "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| func init() { | func init() { | ||||
| @@ -7,7 +7,7 @@ import ( | |||||
| "path/filepath" | "path/filepath" | ||||
| "time" | "time" | ||||
| cdssdk "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| cdssdk "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| // 必须添加的命令函数,用于处理对象上传。 | // 必须添加的命令函数,用于处理对象上传。 | ||||
| @@ -9,8 +9,8 @@ import ( | |||||
| "time" | "time" | ||||
| "github.com/jedib0t/go-pretty/v6/table" | "github.com/jedib0t/go-pretty/v6/table" | ||||
| cdssdk "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/iterator" | |||||
| cdssdk "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/iterator" | |||||
| ) | ) | ||||
| // PackageListBucketPackages 列出指定存储桶中的所有包裹。 | // PackageListBucketPackages 列出指定存储桶中的所有包裹。 | ||||
| @@ -12,7 +12,7 @@ import ( | |||||
| "github.com/spf13/cobra" | "github.com/spf13/cobra" | ||||
| "gitlink.org.cn/cloudream/common/consts/errorcode" | "gitlink.org.cn/cloudream/common/consts/errorcode" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/mq" | "gitlink.org.cn/cloudream/common/pkgs/mq" | ||||
| cdssdk "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| cdssdk "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| func init() { | func init() { | ||||
| @@ -7,22 +7,22 @@ import ( | |||||
| "github.com/spf13/cobra" | "github.com/spf13/cobra" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/accessstat" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/config" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/http" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/metacache" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/services" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/uploader" | |||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| "gitlink.org.cn/cloudream/storage2/common/models/datamap" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/connectivity" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/distlock" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/storage/pool" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/sysevent" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/accessstat" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/config" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/http" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/metacache" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/services" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/uploader" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/models/datamap" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/connectivity" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/distlock" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/storage/pool" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/sysevent" | |||||
| ) | ) | ||||
| // 初始化函数,将ServeHTTP命令注册到命令列表中。 | // 初始化函数,将ServeHTTP命令注册到命令列表中。 | ||||
| @@ -7,8 +7,8 @@ import ( | |||||
| "github.com/spf13/cobra" | "github.com/spf13/cobra" | ||||
| "gitlink.org.cn/cloudream/common/utils/serder" | "gitlink.org.cn/cloudream/common/utils/serder" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/config" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/sysevent" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/config" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/sysevent" | |||||
| ) | ) | ||||
| func init() { | func init() { | ||||
| @@ -11,10 +11,10 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | ||||
| cdssdk "gitlink.org.cn/cloudream/common/sdks/storage" | cdssdk "gitlink.org.cn/cloudream/common/sdks/storage" | ||||
| "gitlink.org.cn/cloudream/common/utils/math2" | "gitlink.org.cn/cloudream/common/utils/math2" | ||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2/parser" | |||||
| coormq "gitlink.org.cn/cloudream/storage2/common/pkgs/mq/coordinator" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2/parser" | |||||
| coormq "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/mq/coordinator" | |||||
| ) | ) | ||||
| func init() { | func init() { | ||||
| @@ -8,23 +8,23 @@ import ( | |||||
| "github.com/spf13/cobra" | "github.com/spf13/cobra" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/accessstat" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/config" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/http" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/metacache" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/vfstest" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/services" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/uploader" | |||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| "gitlink.org.cn/cloudream/storage2/common/models/datamap" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/connectivity" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/distlock" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/storage/pool" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/sysevent" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/accessstat" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/config" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/http" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/metacache" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/vfstest" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/services" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/uploader" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/models/datamap" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/connectivity" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/distlock" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/storage/pool" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/sysevent" | |||||
| ) | ) | ||||
| // 初始化函数,将ServeHTTP命令注册到命令列表中。 | // 初始化函数,将ServeHTTP命令注册到命令列表中。 | ||||
| @@ -5,14 +5,14 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/mq" | "gitlink.org.cn/cloudream/common/pkgs/mq" | ||||
| "gitlink.org.cn/cloudream/common/utils/config" | "gitlink.org.cn/cloudream/common/utils/config" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/http" | |||||
| mntcfg "gitlink.org.cn/cloudream/storage2/client/internal/mount/config" | |||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/connectivity" | |||||
| hubrpc "gitlink.org.cn/cloudream/storage2/common/pkgs/grpc/hub" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/http" | |||||
| mntcfg "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/config" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/connectivity" | |||||
| hubrpc "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/grpc/hub" | |||||
| ) | ) | ||||
| type Config struct { | type Config struct { | ||||
| @@ -4,7 +4,7 @@ import ( | |||||
| "fmt" | "fmt" | ||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gorm.io/gorm" | "gorm.io/gorm" | ||||
| ) | ) | ||||
| @@ -10,7 +10,7 @@ import ( | |||||
| "gorm.io/gorm/clause" | "gorm.io/gorm/clause" | ||||
| "gitlink.org.cn/cloudream/common/utils/sort2" | "gitlink.org.cn/cloudream/common/utils/sort2" | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type ObjectDB struct { | type ObjectDB struct { | ||||
| @@ -1,7 +1,7 @@ | |||||
| package db | package db | ||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gorm.io/gorm" | "gorm.io/gorm" | ||||
| "gorm.io/gorm/clause" | "gorm.io/gorm/clause" | ||||
| ) | ) | ||||
| @@ -1,7 +1,7 @@ | |||||
| package db | package db | ||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gorm.io/gorm/clause" | "gorm.io/gorm/clause" | ||||
| ) | ) | ||||
| @@ -4,7 +4,7 @@ import ( | |||||
| "fmt" | "fmt" | ||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gorm.io/gorm" | "gorm.io/gorm" | ||||
| ) | ) | ||||
| @@ -1,7 +1,7 @@ | |||||
| package db | package db | ||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gorm.io/gorm" | "gorm.io/gorm" | ||||
| "gorm.io/gorm/clause" | "gorm.io/gorm/clause" | ||||
| ) | ) | ||||
| @@ -3,7 +3,7 @@ package db | |||||
| import ( | import ( | ||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gorm.io/gorm/clause" | "gorm.io/gorm/clause" | ||||
| ) | ) | ||||
| @@ -1,7 +1,7 @@ | |||||
| package db | package db | ||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type UserSpaceDB struct { | type UserSpaceDB struct { | ||||
| @@ -6,11 +6,11 @@ import ( | |||||
| lru "github.com/hashicorp/golang-lru/v2" | lru "github.com/hashicorp/golang-lru/v2" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/iterator" | "gitlink.org.cn/cloudream/common/pkgs/iterator" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/connectivity" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/storage/pool" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/connectivity" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/storage/pool" | |||||
| ) | ) | ||||
| const ( | const ( | ||||
| @@ -11,14 +11,14 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/utils/io2" | "gitlink.org.cn/cloudream/common/utils/io2" | ||||
| "gitlink.org.cn/cloudream/common/utils/math2" | "gitlink.org.cn/cloudream/common/utils/math2" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/distlock" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2/parser" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/iterator" | |||||
| cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/distlock" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2/parser" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/iterator" | |||||
| cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| type downloadSpaceInfo struct { | type downloadSpaceInfo struct { | ||||
| @@ -8,7 +8,7 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/common/utils/io2" | "gitlink.org.cn/cloudream/common/utils/io2" | ||||
| "gitlink.org.cn/cloudream/common/utils/math2" | "gitlink.org.cn/cloudream/common/utils/math2" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader/strategy" | |||||
| ) | ) | ||||
| func (iter *DownloadObjectIterator) downloadLRCReconstruct(req downloadReqeust2, strg strategy.LRCReconstructStrategy) (io.ReadCloser, error) { | func (iter *DownloadObjectIterator) downloadLRCReconstruct(req downloadReqeust2, strg strategy.LRCReconstructStrategy) (io.ReadCloser, error) { | ||||
| @@ -9,9 +9,9 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/iterator" | "gitlink.org.cn/cloudream/common/pkgs/iterator" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/common/utils/math2" | "gitlink.org.cn/cloudream/common/utils/math2" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitchlrc" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitchlrc/parser" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitchlrc" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitchlrc/parser" | |||||
| ) | ) | ||||
| type LRCStripIterator struct { | type LRCStripIterator struct { | ||||
| @@ -10,10 +10,10 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/bitmap" | "gitlink.org.cn/cloudream/common/pkgs/bitmap" | ||||
| "gitlink.org.cn/cloudream/common/utils/math2" | "gitlink.org.cn/cloudream/common/utils/math2" | ||||
| "gitlink.org.cn/cloudream/common/utils/sort2" | "gitlink.org.cn/cloudream/common/utils/sort2" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/metacache" | |||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/consts" | |||||
| cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/metacache" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/consts" | |||||
| cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| type Request struct { | type Request struct { | ||||
| @@ -9,9 +9,9 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/iterator" | "gitlink.org.cn/cloudream/common/pkgs/iterator" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/common/utils/math2" | "gitlink.org.cn/cloudream/common/utils/math2" | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2/parser" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2/parser" | |||||
| ) | ) | ||||
| type downloadBlock struct { | type downloadBlock struct { | ||||
| @@ -8,7 +8,7 @@ import ( | |||||
| "github.com/gin-gonic/gin" | "github.com/gin-gonic/gin" | ||||
| "gitlink.org.cn/cloudream/common/consts/errorcode" | "gitlink.org.cn/cloudream/common/consts/errorcode" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| cliapi "gitlink.org.cn/cloudream/storage2/client/sdk/api" | |||||
| cliapi "gitlink.org.cn/cloudream/jcs-pub/client/sdk/api" | |||||
| ) | ) | ||||
| type BucketService struct { | type BucketService struct { | ||||
| @@ -8,8 +8,8 @@ import ( | |||||
| "github.com/gin-gonic/gin" | "github.com/gin-gonic/gin" | ||||
| "gitlink.org.cn/cloudream/common/consts/errorcode" | "gitlink.org.cn/cloudream/common/consts/errorcode" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| cdssdk "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| cdsapi "gitlink.org.cn/cloudream/storage2/client/sdk/api" | |||||
| cdssdk "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| cdsapi "gitlink.org.cn/cloudream/jcs-pub/client/sdk/api" | |||||
| ) | ) | ||||
| type CacheService struct { | type CacheService struct { | ||||
| @@ -1,6 +1,6 @@ | |||||
| package http | package http | ||||
| import "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| import "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| type Config struct { | type Config struct { | ||||
| Enabled bool `json:"enabled"` | Enabled bool `json:"enabled"` | ||||
| @@ -6,7 +6,7 @@ import ( | |||||
| "github.com/gin-gonic/gin" | "github.com/gin-gonic/gin" | ||||
| "gitlink.org.cn/cloudream/common/consts/errorcode" | "gitlink.org.cn/cloudream/common/consts/errorcode" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| cliapi "gitlink.org.cn/cloudream/storage2/client/sdk/api" | |||||
| cliapi "gitlink.org.cn/cloudream/jcs-pub/client/sdk/api" | |||||
| ) | ) | ||||
| type MountService struct { | type MountService struct { | ||||
| @@ -13,9 +13,9 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/consts/errorcode" | "gitlink.org.cn/cloudream/common/consts/errorcode" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/common/utils/math2" | "gitlink.org.cn/cloudream/common/utils/math2" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader" | |||||
| cliapi "gitlink.org.cn/cloudream/storage2/client/sdk/api" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader" | |||||
| cliapi "gitlink.org.cn/cloudream/jcs-pub/client/sdk/api" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type ObjectService struct { | type ObjectService struct { | ||||
| @@ -10,8 +10,8 @@ import ( | |||||
| "github.com/gin-gonic/gin" | "github.com/gin-gonic/gin" | ||||
| "gitlink.org.cn/cloudream/common/consts/errorcode" | "gitlink.org.cn/cloudream/common/consts/errorcode" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| cliapi "gitlink.org.cn/cloudream/storage2/client/sdk/api" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| cliapi "gitlink.org.cn/cloudream/jcs-pub/client/sdk/api" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| // PackageService 包服务,负责处理包相关的HTTP请求。 | // PackageService 包服务,负责处理包相关的HTTP请求。 | ||||
| @@ -12,8 +12,8 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/consts/errorcode" | "gitlink.org.cn/cloudream/common/consts/errorcode" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/common/utils/math2" | "gitlink.org.cn/cloudream/common/utils/math2" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader" | |||||
| cliapi "gitlink.org.cn/cloudream/storage2/client/sdk/api" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader" | |||||
| cliapi "gitlink.org.cn/cloudream/jcs-pub/client/sdk/api" | |||||
| ) | ) | ||||
| type PresignedService struct { | type PresignedService struct { | ||||
| @@ -7,8 +7,8 @@ import ( | |||||
| "github.com/gin-gonic/gin" | "github.com/gin-gonic/gin" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/async" | "gitlink.org.cn/cloudream/common/pkgs/async" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/services" | |||||
| cliapi "gitlink.org.cn/cloudream/storage2/client/sdk/api" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/services" | |||||
| cliapi "gitlink.org.cn/cloudream/jcs-pub/client/sdk/api" | |||||
| ) | ) | ||||
| type ServerEventChan = async.UnboundChannel[ServerEvent] | type ServerEventChan = async.UnboundChannel[ServerEvent] | ||||
| @@ -8,7 +8,7 @@ import ( | |||||
| "github.com/samber/lo" | "github.com/samber/lo" | ||||
| "gitlink.org.cn/cloudream/common/consts/errorcode" | "gitlink.org.cn/cloudream/common/consts/errorcode" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type TempService struct { | type TempService struct { | ||||
| @@ -7,7 +7,7 @@ import ( | |||||
| "github.com/gin-gonic/gin" | "github.com/gin-gonic/gin" | ||||
| "gitlink.org.cn/cloudream/common/consts/errorcode" | "gitlink.org.cn/cloudream/common/consts/errorcode" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| cliapi "gitlink.org.cn/cloudream/storage2/client/sdk/api" | |||||
| cliapi "gitlink.org.cn/cloudream/jcs-pub/client/sdk/api" | |||||
| ) | ) | ||||
| type UserSpaceService struct { | type UserSpaceService struct { | ||||
| @@ -5,9 +5,9 @@ import ( | |||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| coormq "gitlink.org.cn/cloudream/storage2/common/pkgs/mq/coordinator" | |||||
| cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| coormq "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/mq/coordinator" | |||||
| cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| func (m *MetaCacheHost) AddConnectivity() *Connectivity { | func (m *MetaCacheHost) AddConnectivity() *Connectivity { | ||||
| @@ -3,7 +3,7 @@ package metacache | |||||
| import ( | import ( | ||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| ) | ) | ||||
| type MetaCache interface { | type MetaCache interface { | ||||
| @@ -4,9 +4,9 @@ import ( | |||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| coormq "gitlink.org.cn/cloudream/storage2/common/pkgs/mq/coordinator" | |||||
| cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| coormq "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/mq/coordinator" | |||||
| cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| func (m *MetaCacheHost) AddHubMeta() *HubMeta { | func (m *MetaCacheHost) AddHubMeta() *HubMeta { | ||||
| @@ -4,10 +4,10 @@ import ( | |||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/mq/coordinator" | |||||
| cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/mq/coordinator" | |||||
| cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| func (m *MetaCacheHost) AddStorageMeta() *UserSpaceMeta { | func (m *MetaCacheHost) AddStorageMeta() *UserSpaceMeta { | ||||
| @@ -8,7 +8,7 @@ import ( | |||||
| fusefs "github.com/hanwen/go-fuse/v2/fs" | fusefs "github.com/hanwen/go-fuse/v2/fs" | ||||
| "github.com/hanwen/go-fuse/v2/fuse" | "github.com/hanwen/go-fuse/v2/fuse" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/config" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/config" | |||||
| ) | ) | ||||
| type Fuse struct { | type Fuse struct { | ||||
| @@ -2,7 +2,7 @@ package mount | |||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/common/pkgs/async" | "gitlink.org.cn/cloudream/common/pkgs/async" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/vfs/cache" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/vfs/cache" | |||||
| ) | ) | ||||
| type MountEventChan = async.UnboundChannel[MountEvent] | type MountEventChan = async.UnboundChannel[MountEvent] | ||||
| @@ -6,13 +6,13 @@ import ( | |||||
| fusefs "github.com/hanwen/go-fuse/v2/fs" | fusefs "github.com/hanwen/go-fuse/v2/fs" | ||||
| "github.com/hanwen/go-fuse/v2/fuse" | "github.com/hanwen/go-fuse/v2/fuse" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/async" | "gitlink.org.cn/cloudream/common/pkgs/async" | ||||
| db2 "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/config" | |||||
| fuse2 "gitlink.org.cn/cloudream/storage2/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/vfs" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/uploader" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| db2 "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/config" | |||||
| fuse2 "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/vfs" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/uploader" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type Mount struct { | type Mount struct { | ||||
| @@ -4,11 +4,11 @@ package mount | |||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/common/pkgs/async" | "gitlink.org.cn/cloudream/common/pkgs/async" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/config" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/uploader" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/config" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/uploader" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type Mount struct { | type Mount struct { | ||||
| @@ -15,12 +15,12 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/trie" | "gitlink.org.cn/cloudream/common/pkgs/trie" | ||||
| "gitlink.org.cn/cloudream/common/utils/io2" | "gitlink.org.cn/cloudream/common/utils/io2" | ||||
| "gitlink.org.cn/cloudream/common/utils/lo2" | "gitlink.org.cn/cloudream/common/utils/lo2" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/config" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/uploader" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/config" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/uploader" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type CacheEntry interface { | type CacheEntry interface { | ||||
| @@ -13,8 +13,8 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/utils/lo2" | "gitlink.org.cn/cloudream/common/utils/lo2" | ||||
| "gitlink.org.cn/cloudream/common/utils/math2" | "gitlink.org.cn/cloudream/common/utils/math2" | ||||
| "gitlink.org.cn/cloudream/common/utils/serder" | "gitlink.org.cn/cloudream/common/utils/serder" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/fuse" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/fuse" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type FileInfo struct { | type FileInfo struct { | ||||
| @@ -1,6 +1,6 @@ | |||||
| package vfs | package vfs | ||||
| import "gitlink.org.cn/cloudream/storage2/client/internal/mount/fuse" | |||||
| import "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/fuse" | |||||
| type FuseDirReader struct { | type FuseDirReader struct { | ||||
| allEntries []fuse.FsEntry | allEntries []fuse.FsEntry | ||||
| @@ -6,10 +6,10 @@ import ( | |||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/common/utils/lo2" | "gitlink.org.cn/cloudream/common/utils/lo2" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/vfs/cache" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/vfs/cache" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gorm.io/gorm" | "gorm.io/gorm" | ||||
| ) | ) | ||||
| @@ -6,10 +6,10 @@ import ( | |||||
| "os" | "os" | ||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/vfs/cache" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/vfs/cache" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gorm.io/gorm" | "gorm.io/gorm" | ||||
| ) | ) | ||||
| @@ -5,10 +5,10 @@ import ( | |||||
| "os" | "os" | ||||
| "time" | "time" | ||||
| db2 "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/vfs/cache" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| db2 "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/vfs/cache" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gorm.io/gorm" | "gorm.io/gorm" | ||||
| ) | ) | ||||
| @@ -4,9 +4,9 @@ import ( | |||||
| "os" | "os" | ||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/vfs/cache" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/vfs/cache" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gorm.io/gorm" | "gorm.io/gorm" | ||||
| ) | ) | ||||
| @@ -5,8 +5,8 @@ import ( | |||||
| "os" | "os" | ||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/vfs/cache" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/vfs/cache" | |||||
| ) | ) | ||||
| type FusePackage struct { | type FusePackage struct { | ||||
| @@ -5,10 +5,10 @@ import ( | |||||
| "os" | "os" | ||||
| "time" | "time" | ||||
| db2 "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/vfs/cache" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| db2 "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/vfs/cache" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gorm.io/gorm" | "gorm.io/gorm" | ||||
| ) | ) | ||||
| @@ -1,12 +1,12 @@ | |||||
| package vfs | package vfs | ||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/config" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount/vfs/cache" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/uploader" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/config" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/fuse" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount/vfs/cache" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/uploader" | |||||
| ) | ) | ||||
| type Vfs struct { | type Vfs struct { | ||||
| @@ -17,7 +17,7 @@ import ( | |||||
| "github.com/stretchr/testify/assert" | "github.com/stretchr/testify/assert" | ||||
| "github.com/stretchr/testify/require" | "github.com/stretchr/testify/require" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount" | |||||
| ) | ) | ||||
| const ( | const ( | ||||
| @@ -3,7 +3,7 @@ package services | |||||
| import ( | import ( | ||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| // BucketService 是对存储桶进行操作的服务类 | // BucketService 是对存储桶进行操作的服务类 | ||||
| @@ -7,10 +7,10 @@ import ( | |||||
| cdssdk "gitlink.org.cn/cloudream/common/sdks/storage" | cdssdk "gitlink.org.cn/cloudream/common/sdks/storage" | ||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| hubmq "gitlink.org.cn/cloudream/storage2/common/pkgs/mq/hub" | |||||
| coormq "gitlink.org.cn/cloudream/storage2/common/pkgs/mq/coordinator" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/storage/factory" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| hubmq "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/mq/hub" | |||||
| coormq "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/mq/coordinator" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/storage/factory" | |||||
| ) | ) | ||||
| type CacheService struct { | type CacheService struct { | ||||
| @@ -10,13 +10,13 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/common/utils/sort2" | "gitlink.org.cn/cloudream/common/utils/sort2" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/storage2/client/sdk/api" | |||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/models/datamap" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2/ops2" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2/plans" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/sdk/api" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/models/datamap" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2/ops2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2/plans" | |||||
| "gorm.io/gorm" | "gorm.io/gorm" | ||||
| ) | ) | ||||
| @@ -5,10 +5,10 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/models/datamap" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/models/datamap" | |||||
| ) | ) | ||||
| // PackageService 提供对包相关操作的服务接口 | // PackageService 提供对包相关操作的服务接口 | ||||
| @@ -2,14 +2,14 @@ package services | |||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/common/pkgs/distlock" | "gitlink.org.cn/cloudream/common/pkgs/distlock" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/accessstat" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/metacache" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/uploader" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/sysevent" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/accessstat" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/metacache" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/uploader" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/sysevent" | |||||
| ) | ) | ||||
| // Service 结构体封装了分布锁服务和任务管理服务。 | // Service 结构体封装了分布锁服务和任务管理服务。 | ||||
| @@ -6,14 +6,14 @@ import ( | |||||
| "path" | "path" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2/parser" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/downloader/strategy" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2/parser" | |||||
| ) | ) | ||||
| type UserSpaceService struct { | type UserSpaceService struct { | ||||
| @@ -1,8 +1,8 @@ | |||||
| package services | package services | ||||
| import ( | import ( | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/models/datamap" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/models/datamap" | |||||
| ) | ) | ||||
| func getBlockTypeFromRed(red clitypes.Redundancy) string { | func getBlockTypeFromRed(red clitypes.Redundancy) string { | ||||
| @@ -9,11 +9,11 @@ import ( | |||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2/ops2" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2/parser" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2/ops2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2/parser" | |||||
| ) | ) | ||||
| type CreateLoadUploader struct { | type CreateLoadUploader struct { | ||||
| @@ -10,11 +10,11 @@ import ( | |||||
| "github.com/samber/lo" | "github.com/samber/lo" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2/ops2" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2/parser" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2/ops2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2/parser" | |||||
| ) | ) | ||||
| type UpdateUploader struct { | type UpdateUploader struct { | ||||
| @@ -12,16 +12,16 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | ||||
| "gitlink.org.cn/cloudream/common/utils/lo2" | "gitlink.org.cn/cloudream/common/utils/lo2" | ||||
| "gitlink.org.cn/cloudream/common/utils/sort2" | "gitlink.org.cn/cloudream/common/utils/sort2" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/storage2/client/internal/metacache" | |||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/connectivity" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/distlock" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2/ops2" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2/parser" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/storage/pool" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/db" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/metacache" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/connectivity" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/distlock" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2/ops2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2/parser" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/storage/pool" | |||||
| ) | ) | ||||
| type Uploader struct { | type Uploader struct { | ||||
| @@ -1,7 +1,7 @@ | |||||
| package main | package main | ||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/cmdline" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/cmdline" | |||||
| _ "google.golang.org/grpc/balancer/grpclb" | _ "google.golang.org/grpc/balancer/grpclb" | ||||
| ) | ) | ||||
| @@ -4,7 +4,7 @@ import ( | |||||
| "net/http" | "net/http" | ||||
| "gitlink.org.cn/cloudream/common/sdks" | "gitlink.org.cn/cloudream/common/sdks" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type BucketService struct { | type BucketService struct { | ||||
| @@ -5,7 +5,7 @@ import ( | |||||
| "net/http" | "net/http" | ||||
| "gitlink.org.cn/cloudream/common/sdks" | "gitlink.org.cn/cloudream/common/sdks" | ||||
| cdssdk "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| cdssdk "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| const CacheMovePackagePath = "/cache/movePackage" | const CacheMovePackagePath = "/cache/movePackage" | ||||
| @@ -4,7 +4,7 @@ import ( | |||||
| "net/http" | "net/http" | ||||
| "gitlink.org.cn/cloudream/common/sdks" | "gitlink.org.cn/cloudream/common/sdks" | ||||
| "gitlink.org.cn/cloudream/storage2/client/internal/mount" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/internal/mount" | |||||
| ) | ) | ||||
| type MountService struct { | type MountService struct { | ||||
| @@ -17,7 +17,7 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/sdks" | "gitlink.org.cn/cloudream/common/sdks" | ||||
| "gitlink.org.cn/cloudream/common/utils/http2" | "gitlink.org.cn/cloudream/common/utils/http2" | ||||
| "gitlink.org.cn/cloudream/common/utils/serder" | "gitlink.org.cn/cloudream/common/utils/serder" | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type ObjectService struct { | type ObjectService struct { | ||||
| @@ -10,7 +10,7 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/sdks" | "gitlink.org.cn/cloudream/common/sdks" | ||||
| "gitlink.org.cn/cloudream/common/utils/http2" | "gitlink.org.cn/cloudream/common/utils/http2" | ||||
| "gitlink.org.cn/cloudream/common/utils/serder" | "gitlink.org.cn/cloudream/common/utils/serder" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type PackageService struct { | type PackageService struct { | ||||
| @@ -10,7 +10,7 @@ import ( | |||||
| v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4" | v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4" | ||||
| "github.com/aws/aws-sdk-go-v2/credentials" | "github.com/aws/aws-sdk-go-v2/credentials" | ||||
| "github.com/google/go-querystring/query" | "github.com/google/go-querystring/query" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| type PresignedService struct { | type PresignedService struct { | ||||
| @@ -9,7 +9,7 @@ import ( | |||||
| "github.com/google/uuid" | "github.com/google/uuid" | ||||
| . "github.com/smartystreets/goconvey/convey" | . "github.com/smartystreets/goconvey/convey" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/iterator" | "gitlink.org.cn/cloudream/common/pkgs/iterator" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| func Test_PackageGet(t *testing.T) { | func Test_PackageGet(t *testing.T) { | ||||
| @@ -4,7 +4,7 @@ import ( | |||||
| "net/http" | "net/http" | ||||
| "gitlink.org.cn/cloudream/common/sdks" | "gitlink.org.cn/cloudream/common/sdks" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| ) | ) | ||||
| const UserSpaceLoadPackagePath = "/userspace/loadPackage" | const UserSpaceLoadPackagePath = "/userspace/loadPackage" | ||||
| @@ -6,7 +6,7 @@ import ( | |||||
| "github.com/samber/lo" | "github.com/samber/lo" | ||||
| "gitlink.org.cn/cloudream/common/utils/sort2" | "gitlink.org.cn/cloudream/common/utils/sort2" | ||||
| cotypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| cotypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| const ( | const ( | ||||
| @@ -1,7 +1,7 @@ | |||||
| package stgglb | package stgglb | ||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| type LocalMachineInfo struct { | type LocalMachineInfo struct { | ||||
| @@ -2,10 +2,10 @@ package stgglb | |||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/common/pkgs/mq" | "gitlink.org.cn/cloudream/common/pkgs/mq" | ||||
| hubrpc "gitlink.org.cn/cloudream/storage2/common/pkgs/grpc/hub" | |||||
| coormq "gitlink.org.cn/cloudream/storage2/common/pkgs/mq/coordinator" | |||||
| hubmq "gitlink.org.cn/cloudream/storage2/common/pkgs/mq/hub" | |||||
| scmq "gitlink.org.cn/cloudream/storage2/common/pkgs/mq/scanner" | |||||
| hubrpc "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/grpc/hub" | |||||
| coormq "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/mq/coordinator" | |||||
| hubmq "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/mq/hub" | |||||
| scmq "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/mq/scanner" | |||||
| ) | ) | ||||
| var HubMQPool hubmq.Pool | var HubMQPool hubmq.Pool | ||||
| @@ -1,5 +1,5 @@ | |||||
| package stgglb | package stgglb | ||||
| import "gitlink.org.cn/cloudream/storage2/common/pkgs/servicestats" | |||||
| import "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/servicestats" | |||||
| var Stats servicestats.StatsHost | var Stats servicestats.StatsHost | ||||
| @@ -1,6 +1,6 @@ | |||||
| package stgglb | package stgglb | ||||
| import cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| import cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| // 根据当前节点与目标地址的距离关系,选择合适的地址 | // 根据当前节点与目标地址的距离关系,选择合适的地址 | ||||
| func SelectGRPCAddress(hub cortypes.Hub, addr cortypes.GRPCAddressInfo) (string, int) { | func SelectGRPCAddress(hub cortypes.Hub, addr cortypes.GRPCAddressInfo) (string, int) { | ||||
| @@ -6,8 +6,8 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/types" | "gitlink.org.cn/cloudream/common/pkgs/types" | ||||
| "gitlink.org.cn/cloudream/common/utils/serder" | "gitlink.org.cn/cloudream/common/utils/serder" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| // 系统事件 | // 系统事件 | ||||
| @@ -6,9 +6,9 @@ import ( | |||||
| "time" | "time" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/logger" | "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| coormq "gitlink.org.cn/cloudream/storage2/common/pkgs/mq/coordinator" | |||||
| cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| coormq "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/mq/coordinator" | |||||
| cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| type Connectivity struct { | type Connectivity struct { | ||||
| @@ -1,7 +1,7 @@ | |||||
| package reqbuilder | package reqbuilder | ||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/distlock/lockprovider" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/distlock/lockprovider" | |||||
| ) | ) | ||||
| type MetadataLockReqBuilder struct { | type MetadataLockReqBuilder struct { | ||||
| @@ -2,8 +2,8 @@ package reqbuilder | |||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/common/pkgs/distlock" | "gitlink.org.cn/cloudream/common/pkgs/distlock" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/distlock/lockprovider" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/distlock/lockprovider" | |||||
| ) | ) | ||||
| type MetadataObjectLockReqBuilder struct { | type MetadataObjectLockReqBuilder struct { | ||||
| @@ -4,8 +4,8 @@ import ( | |||||
| "strconv" | "strconv" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/distlock" | "gitlink.org.cn/cloudream/common/pkgs/distlock" | ||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/distlock/lockprovider" | |||||
| cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/distlock/lockprovider" | |||||
| cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| type ShardStoreLockReqBuilder struct { | type ShardStoreLockReqBuilder struct { | ||||
| @@ -4,8 +4,8 @@ import ( | |||||
| "strconv" | "strconv" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/distlock" | "gitlink.org.cn/cloudream/common/pkgs/distlock" | ||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/distlock/lockprovider" | |||||
| cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/distlock/lockprovider" | |||||
| cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| type StorageLockReqBuilder struct { | type StorageLockReqBuilder struct { | ||||
| @@ -3,7 +3,7 @@ package distlock | |||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/common/pkgs/distlock" | "gitlink.org.cn/cloudream/common/pkgs/distlock" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/trie" | "gitlink.org.cn/cloudream/common/pkgs/trie" | ||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/distlock/lockprovider" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/distlock/lockprovider" | |||||
| ) | ) | ||||
| type Service = distlock.Service | type Service = distlock.Service | ||||
| @@ -3,8 +3,8 @@ package ioswitch2 | |||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | ||||
| "gitlink.org.cn/cloudream/common/utils/math2" | "gitlink.org.cn/cloudream/common/utils/math2" | ||||
| "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| type From interface { | type From interface { | ||||
| @@ -8,8 +8,8 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | ||||
| "gitlink.org.cn/cloudream/common/sdks/storage/cdsapi" | "gitlink.org.cn/cloudream/common/sdks/storage/cdsapi" | ||||
| "gitlink.org.cn/cloudream/common/utils/io2" | "gitlink.org.cn/cloudream/common/utils/io2" | ||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| type HttpHubWorker struct { | type HttpHubWorker struct { | ||||
| @@ -8,9 +8,9 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/types" | "gitlink.org.cn/cloudream/common/pkgs/types" | ||||
| "gitlink.org.cn/cloudream/common/utils/io2" | "gitlink.org.cn/cloudream/common/utils/io2" | ||||
| "gitlink.org.cn/cloudream/common/utils/serder" | "gitlink.org.cn/cloudream/common/utils/serder" | ||||
| stgglb "gitlink.org.cn/cloudream/storage2/common/globals" | |||||
| hubrpc "gitlink.org.cn/cloudream/storage2/common/pkgs/grpc/hub" | |||||
| cortypes "gitlink.org.cn/cloudream/storage2/coordinator/types" | |||||
| stgglb "gitlink.org.cn/cloudream/jcs-pub/common/globals" | |||||
| hubrpc "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/grpc/hub" | |||||
| cortypes "gitlink.org.cn/cloudream/jcs-pub/coordinator/types" | |||||
| ) | ) | ||||
| var _ = serder.UseTypeUnionExternallyTagged(types.Ref(types.NewTypeUnion[exec.WorkerInfo]( | var _ = serder.UseTypeUnionExternallyTagged(types.Ref(types.NewTypeUnion[exec.WorkerInfo]( | ||||
| @@ -5,9 +5,9 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/dag" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/dag" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/storage/pool" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/storage/types" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/storage/pool" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/storage/types" | |||||
| ) | ) | ||||
| func init() { | func init() { | ||||
| @@ -4,7 +4,7 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/dag" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/dag" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | ||||
| "gitlink.org.cn/cloudream/common/utils/math2" | "gitlink.org.cn/cloudream/common/utils/math2" | ||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2" | |||||
| ) | ) | ||||
| // TODO 想办法直接使用ops里的Node,而不是重新实现一遍 | // TODO 想办法直接使用ops里的Node,而不是重新实现一遍 | ||||
| @@ -11,10 +11,10 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/utils/io2" | "gitlink.org.cn/cloudream/common/utils/io2" | ||||
| "gitlink.org.cn/cloudream/common/utils/math2" | "gitlink.org.cn/cloudream/common/utils/math2" | ||||
| "gitlink.org.cn/cloudream/common/utils/sync2" | "gitlink.org.cn/cloudream/common/utils/sync2" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ec" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/storage/pool" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/storage/types" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ec" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/storage/pool" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/storage/types" | |||||
| ) | ) | ||||
| func init() { | func init() { | ||||
| @@ -7,9 +7,9 @@ import ( | |||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/dag" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/dag" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec" | ||||
| log "gitlink.org.cn/cloudream/common/pkgs/logger" | log "gitlink.org.cn/cloudream/common/pkgs/logger" | ||||
| clitypes "gitlink.org.cn/cloudream/storage2/client/types" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/storage/pool" | |||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/storage/types" | |||||
| clitypes "gitlink.org.cn/cloudream/jcs-pub/client/types" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/storage/pool" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/storage/types" | |||||
| ) | ) | ||||
| func init() { | func init() { | ||||
| @@ -3,7 +3,7 @@ package ops2 | |||||
| import ( | import ( | ||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/dag" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/dag" | ||||
| "gitlink.org.cn/cloudream/common/pkgs/ioswitch/plan/ops" | "gitlink.org.cn/cloudream/common/pkgs/ioswitch/plan/ops" | ||||
| "gitlink.org.cn/cloudream/storage2/common/pkgs/ioswitch2" | |||||
| "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/ioswitch2" | |||||
| ) | ) | ||||
| type GraphNodeBuilder struct { | type GraphNodeBuilder struct { | ||||