aboutsummaryrefslogtreecommitdiff
path: root/pkg/mountmanager/types.go
diff options
context:
space:
mode:
author泽淼 周 <zhouzemiao@ihuman.com>2025-09-27 18:28:34 +0800
committerChris Lu <chrislusf@users.noreply.github.com>2025-12-06 18:53:22 -0800
commitda9e11f28bab3c90107c3a730ddbfb57d18475ca (patch)
tree10b98b83c5b551bf7cccf71edb4b41c6fb40228d /pkg/mountmanager/types.go
parent1a36b03ed79a12e9b9db5954167ce825222f3d83 (diff)
downloadseaweedfs-csi-driver-da9e11f28bab3c90107c3a730ddbfb57d18475ca.tar.xz
seaweedfs-csi-driver-da9e11f28bab3c90107c3a730ddbfb57d18475ca.zip
Optimization: Reduce unnecessary logic of seaweedfs-mount
Diffstat (limited to 'pkg/mountmanager/types.go')
-rw-r--r--pkg/mountmanager/types.go26
1 files changed, 5 insertions, 21 deletions
diff --git a/pkg/mountmanager/types.go b/pkg/mountmanager/types.go
index 37f791f..b15fe36 100644
--- a/pkg/mountmanager/types.go
+++ b/pkg/mountmanager/types.go
@@ -2,18 +2,11 @@ package mountmanager
// MountRequest contains all information needed to start a weed mount process.
type MountRequest struct {
- VolumeID string `json:"volumeId"`
- TargetPath string `json:"targetPath"`
- ReadOnly bool `json:"readOnly"`
- Filers []string `json:"filers"`
- CacheDir string `json:"cacheDir"`
- CacheCapacityMB int `json:"cacheCapacityMB"`
- ConcurrentWriters int `json:"concurrentWriters"`
- UidMap string `json:"uidMap"`
- GidMap string `json:"gidMap"`
- DataCenter string `json:"dataCenter"`
- DataLocality string `json:"dataLocality"`
- VolumeContext map[string]string `json:"volumeContext"`
+ VolumeID string `json:"volumeId"`
+ TargetPath string `json:"targetPath"`
+ CacheDir string `json:"cacheDir"`
+ MountArgs []string `json:"mountArgs"`
+ LocalSocket string `json:"localSocket"`
}
// MountResponse is returned after a successful mount request.
@@ -29,15 +22,6 @@ type UnmountRequest struct {
// UnmountResponse is the response of a successful unmount request.
type UnmountResponse struct{}
-// ConfigureRequest adjusts the behaviour of an existing mount.
-type ConfigureRequest struct {
- VolumeID string `json:"volumeId"`
- CollectionCapacity int64 `json:"collectionCapacity"`
-}
-
-// ConfigureResponse represents a successful configure call.
-type ConfigureResponse struct{}
-
// ErrorResponse is returned when the mount service encounters a failure.
type ErrorResponse struct {
Error string `json:"error"`