diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-28 15:23:16 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-28 15:23:16 -0800 |
| commit | 19295600f94fd18d09323cb17e89c115c811fb52 (patch) | |
| tree | 0192ac117341456c3dce6d5ba915c8a5e5e0fbb7 /weed/filesys/wfs.go | |
| parent | 990fa69bfeac65a72bec1539993e32633858c8f5 (diff) | |
| download | seaweedfs-19295600f94fd18d09323cb17e89c115c811fb52.tar.xz seaweedfs-19295600f94fd18d09323cb17e89c115c811fb52.zip | |
mount: change option name to volumeServerAccess, with publicUrl and filerProxy modes
Diffstat (limited to 'weed/filesys/wfs.go')
| -rw-r--r-- | weed/filesys/wfs.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 108e23c85..f4e5ac38a 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -48,9 +48,9 @@ type Option struct { MountCtime time.Time MountMtime time.Time - OutsideContainerClusterMode bool // whether the mount runs outside SeaweedFS containers - Cipher bool // whether encrypt data on volume server - UidGidMapper *meta_cache.UidGidMapper + VolumeServerAccess string // how to access volume servers + Cipher bool // whether encrypt data on volume server + UidGidMapper *meta_cache.UidGidMapper } var _ = fs.FS(&WFS{}) @@ -257,7 +257,7 @@ func (wfs *WFS) mapPbIdFromLocalToFiler(entry *filer_pb.Entry) { } func (wfs *WFS) LookupFn() wdclient.LookupFileIdFunctionType { - if wfs.option.OutsideContainerClusterMode { + if wfs.option.VolumeServerAccess == "filerProxy" { return func(fileId string) (targetUrls []string, err error) { return []string{"http://" + wfs.option.FilerAddress + "/?proxyChunkId=" + fileId}, nil } |
