You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mount_win.go 1.0 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //go:build windows
  2. package mount
  3. import (
  4. "fmt"
  5. cdssdk "gitlink.org.cn/cloudream/common/sdks/storage"
  6. "gitlink.org.cn/cloudream/common/utils/sync2"
  7. "gitlink.org.cn/cloudream/storage/client2/internal/mount/config"
  8. "gitlink.org.cn/cloudream/storage/common/pkgs/db2"
  9. "gitlink.org.cn/cloudream/storage/common/pkgs/downloader"
  10. )
  11. type MountEvent interface {
  12. IsMountEvent() bool
  13. }
  14. type MountExitEvent struct {
  15. MountEvent
  16. }
  17. type MountingFailedEvent struct {
  18. MountEvent
  19. Err error
  20. }
  21. type Mount struct {
  22. }
  23. func NewMount(cfg *config.Config, db *db2.DB, downloader *downloader.Downloader) *Mount {
  24. return &Mount{}
  25. }
  26. func (m *Mount) Start() *sync2.UnboundChannel[MountEvent] {
  27. ch := sync2.NewUnboundChannel[MountEvent]()
  28. go func() {
  29. ch.Send(MountingFailedEvent{Err: fmt.Errorf("not implemented")})
  30. }()
  31. return ch
  32. }
  33. func (m *Mount) NotifyObjectInvalid(obj cdssdk.Object) {
  34. }
  35. func (m *Mount) NotifyPackageInvalid(pkg cdssdk.Package) {
  36. }
  37. func (m *Mount) NotifyBucketInvalid(bkt cdssdk.Bucket) {
  38. }

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。