Documentation ¶
Index ¶
- Constants
- Variables
- func NewWebDavFileSystem(option *WebDavOption) (webdav.FileSystem, error)
- type ClusterStatusResult
- type FileInfo
- type FilerOption
- type FilerPostResult
- type FilerServer
- func (fs *FilerServer) AssignVolume(ctx context.Context, req *filer_pb.AssignVolumeRequest) (resp *filer_pb.AssignVolumeResponse, err error)
- func (fs *FilerServer) AtomicRenameEntry(ctx context.Context, req *filer_pb.AtomicRenameEntryRequest) (*filer_pb.AtomicRenameEntryResponse, error)
- func (fs *FilerServer) CreateEntry(ctx context.Context, req *filer_pb.CreateEntryRequest) (resp *filer_pb.CreateEntryResponse, err error)
- func (fs *FilerServer) DeleteCollection(ctx context.Context, req *filer_pb.DeleteCollectionRequest) (resp *filer_pb.DeleteCollectionResponse, err error)
- func (fs *FilerServer) DeleteEntry(ctx context.Context, req *filer_pb.DeleteEntryRequest) (resp *filer_pb.DeleteEntryResponse, err error)
- func (fs *FilerServer) DeleteHandler(w http.ResponseWriter, r *http.Request)
- func (fs *FilerServer) GetFilerConfiguration(ctx context.Context, req *filer_pb.GetFilerConfigurationRequest) (resp *filer_pb.GetFilerConfigurationResponse, err error)
- func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request, isGetMethod bool)
- func (fs *FilerServer) ListEntries(ctx context.Context, req *filer_pb.ListEntriesRequest) (*filer_pb.ListEntriesResponse, error)
- func (fs *FilerServer) LookupDirectoryEntry(ctx context.Context, req *filer_pb.LookupDirectoryEntryRequest) (*filer_pb.LookupDirectoryEntryResponse, error)
- func (fs *FilerServer) LookupVolume(ctx context.Context, req *filer_pb.LookupVolumeRequest) (*filer_pb.LookupVolumeResponse, error)
- func (fs *FilerServer) PostHandler(w http.ResponseWriter, r *http.Request)
- func (fs *FilerServer) Statistics(ctx context.Context, req *filer_pb.StatisticsRequest) (resp *filer_pb.StatisticsResponse, err error)
- func (fs *FilerServer) UpdateEntry(ctx context.Context, req *filer_pb.UpdateEntryRequest) (*filer_pb.UpdateEntryResponse, error)
- type MasterOption
- type MasterServer
- func (ms *MasterServer) Assign(ctx context.Context, req *master_pb.AssignRequest) (*master_pb.AssignResponse, error)
- func (ms *MasterServer) CollectionDelete(ctx context.Context, req *master_pb.CollectionDeleteRequest) (*master_pb.CollectionDeleteResponse, error)
- func (ms *MasterServer) CollectionList(ctx context.Context, req *master_pb.CollectionListRequest) (*master_pb.CollectionListResponse, error)
- func (ms *MasterServer) GetMasterConfiguration(ctx context.Context, req *master_pb.GetMasterConfigurationRequest) (*master_pb.GetMasterConfigurationResponse, error)
- func (ms *MasterServer) HasWritableVolume(option *topology.VolumeGrowOption) bool
- func (ms *MasterServer) KeepConnected(stream master_pb.Seaweed_KeepConnectedServer) error
- func (ms *MasterServer) LookupEcVolume(ctx context.Context, req *master_pb.LookupEcVolumeRequest) (*master_pb.LookupEcVolumeResponse, error)
- func (ms *MasterServer) LookupVolume(ctx context.Context, req *master_pb.LookupVolumeRequest) (*master_pb.LookupVolumeResponse, error)
- func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServer) error
- func (ms *MasterServer) SetRaftServer(raftServer *RaftServer)
- func (ms *MasterServer) Statistics(ctx context.Context, req *master_pb.StatisticsRequest) (*master_pb.StatisticsResponse, error)
- func (ms *MasterServer) VolumeList(ctx context.Context, req *master_pb.VolumeListRequest) (*master_pb.VolumeListResponse, error)
- type MoveEvents
- type RaftServer
- type VolumeServer
- func (vs *VolumeServer) AllocateVolume(ctx context.Context, req *volume_server_pb.AllocateVolumeRequest) (*volume_server_pb.AllocateVolumeResponse, error)
- func (vs *VolumeServer) BatchDelete(ctx context.Context, req *volume_server_pb.BatchDeleteRequest) (*volume_server_pb.BatchDeleteResponse, error)
- func (vs *VolumeServer) CopyFile(req *volume_server_pb.CopyFileRequest, ...) error
- func (vs *VolumeServer) DeleteCollection(ctx context.Context, req *volume_server_pb.DeleteCollectionRequest) (*volume_server_pb.DeleteCollectionResponse, error)
- func (vs *VolumeServer) DeleteHandler(w http.ResponseWriter, r *http.Request)
- func (vs *VolumeServer) GetMaster() string
- func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
- func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request)
- func (vs *VolumeServer) ReadVolumeFileStatus(ctx context.Context, req *volume_server_pb.ReadVolumeFileStatusRequest) (*volume_server_pb.ReadVolumeFileStatusResponse, error)
- func (vs *VolumeServer) Shutdown()
- func (vs *VolumeServer) VacuumVolumeCheck(ctx context.Context, req *volume_server_pb.VacuumVolumeCheckRequest) (*volume_server_pb.VacuumVolumeCheckResponse, error)
- func (vs *VolumeServer) VacuumVolumeCleanup(ctx context.Context, req *volume_server_pb.VacuumVolumeCleanupRequest) (*volume_server_pb.VacuumVolumeCleanupResponse, error)
- func (vs *VolumeServer) VacuumVolumeCommit(ctx context.Context, req *volume_server_pb.VacuumVolumeCommitRequest) (*volume_server_pb.VacuumVolumeCommitResponse, error)
- func (vs *VolumeServer) VacuumVolumeCompact(ctx context.Context, req *volume_server_pb.VacuumVolumeCompactRequest) (*volume_server_pb.VacuumVolumeCompactResponse, error)
- func (vs *VolumeServer) VolumeCopy(ctx context.Context, req *volume_server_pb.VolumeCopyRequest) (*volume_server_pb.VolumeCopyResponse, error)
- func (vs *VolumeServer) VolumeDelete(ctx context.Context, req *volume_server_pb.VolumeDeleteRequest) (*volume_server_pb.VolumeDeleteResponse, error)
- func (vs *VolumeServer) VolumeEcBlobDelete(ctx context.Context, req *volume_server_pb.VolumeEcBlobDeleteRequest) (*volume_server_pb.VolumeEcBlobDeleteResponse, error)
- func (vs *VolumeServer) VolumeEcShardRead(req *volume_server_pb.VolumeEcShardReadRequest, ...) error
- func (vs *VolumeServer) VolumeEcShardsCopy(ctx context.Context, req *volume_server_pb.VolumeEcShardsCopyRequest) (*volume_server_pb.VolumeEcShardsCopyResponse, error)
- func (vs *VolumeServer) VolumeEcShardsDelete(ctx context.Context, req *volume_server_pb.VolumeEcShardsDeleteRequest) (*volume_server_pb.VolumeEcShardsDeleteResponse, error)
- func (vs *VolumeServer) VolumeEcShardsGenerate(ctx context.Context, req *volume_server_pb.VolumeEcShardsGenerateRequest) (*volume_server_pb.VolumeEcShardsGenerateResponse, error)
- func (vs *VolumeServer) VolumeEcShardsMount(ctx context.Context, req *volume_server_pb.VolumeEcShardsMountRequest) (*volume_server_pb.VolumeEcShardsMountResponse, error)
- func (vs *VolumeServer) VolumeEcShardsRebuild(ctx context.Context, req *volume_server_pb.VolumeEcShardsRebuildRequest) (*volume_server_pb.VolumeEcShardsRebuildResponse, error)
- func (vs *VolumeServer) VolumeEcShardsUnmount(ctx context.Context, req *volume_server_pb.VolumeEcShardsUnmountRequest) (*volume_server_pb.VolumeEcShardsUnmountResponse, error)
- func (vs *VolumeServer) VolumeIncrementalCopy(req *volume_server_pb.VolumeIncrementalCopyRequest, ...) error
- func (vs *VolumeServer) VolumeMarkReadonly(ctx context.Context, req *volume_server_pb.VolumeMarkReadonlyRequest) (*volume_server_pb.VolumeMarkReadonlyResponse, error)
- func (vs *VolumeServer) VolumeMount(ctx context.Context, req *volume_server_pb.VolumeMountRequest) (*volume_server_pb.VolumeMountResponse, error)
- func (vs *VolumeServer) VolumeSyncStatus(ctx context.Context, req *volume_server_pb.VolumeSyncStatusRequest) (*volume_server_pb.VolumeSyncStatusResponse, error)
- func (vs *VolumeServer) VolumeTailReceiver(ctx context.Context, req *volume_server_pb.VolumeTailReceiverRequest) (*volume_server_pb.VolumeTailReceiverResponse, error)
- func (vs *VolumeServer) VolumeTailSender(req *volume_server_pb.VolumeTailSenderRequest, ...) error
- func (vs *VolumeServer) VolumeUnmount(ctx context.Context, req *volume_server_pb.VolumeUnmountRequest) (*volume_server_pb.VolumeUnmountResponse, error)
- type WebDavFile
- func (f *WebDavFile) Close() error
- func (f *WebDavFile) Read(p []byte) (readSize int, err error)
- func (f *WebDavFile) Readdir(count int) (ret []os.FileInfo, err error)
- func (f *WebDavFile) Seek(offset int64, whence int) (int64, error)
- func (f *WebDavFile) Stat() (os.FileInfo, error)
- func (f *WebDavFile) Write(buf []byte) (int, error)
- type WebDavFileSystem
- func (fs *WebDavFileSystem) Mkdir(ctx context.Context, fullDirPath string, perm os.FileMode) error
- func (fs *WebDavFileSystem) OpenFile(ctx context.Context, fullFilePath string, flag int, perm os.FileMode) (webdav.File, error)
- func (fs *WebDavFileSystem) RemoveAll(ctx context.Context, name string) error
- func (fs *WebDavFileSystem) Rename(ctx context.Context, oldName, newName string) error
- func (fs *WebDavFileSystem) Stat(ctx context.Context, name string) (os.FileInfo, error)
- func (fs *WebDavFileSystem) WithFilerClient(ctx context.Context, fn func(filer_pb.SeaweedFilerClient) error) error
- type WebDavOption
- type WebDavServer
Constants ¶
const BufferSizeLimit = 1024 * 1024 * 2
Variables ¶
Functions ¶
func NewWebDavFileSystem ¶
func NewWebDavFileSystem(option *WebDavOption) (webdav.FileSystem, error)
Types ¶
type ClusterStatusResult ¶
type FilerOption ¶
type FilerPostResult ¶
type FilerServer ¶
type FilerServer struct {
// contains filtered or unexported fields
}
func NewFilerServer ¶
func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption) (fs *FilerServer, err error)
func (*FilerServer) AssignVolume ¶
func (fs *FilerServer) AssignVolume(ctx context.Context, req *filer_pb.AssignVolumeRequest) (resp *filer_pb.AssignVolumeResponse, err error)
func (*FilerServer) AtomicRenameEntry ¶
func (fs *FilerServer) AtomicRenameEntry(ctx context.Context, req *filer_pb.AtomicRenameEntryRequest) (*filer_pb.AtomicRenameEntryResponse, error)
func (*FilerServer) CreateEntry ¶
func (fs *FilerServer) CreateEntry(ctx context.Context, req *filer_pb.CreateEntryRequest) (resp *filer_pb.CreateEntryResponse, err error)
func (*FilerServer) DeleteCollection ¶
func (fs *FilerServer) DeleteCollection(ctx context.Context, req *filer_pb.DeleteCollectionRequest) (resp *filer_pb.DeleteCollectionResponse, err error)
func (*FilerServer) DeleteEntry ¶
func (fs *FilerServer) DeleteEntry(ctx context.Context, req *filer_pb.DeleteEntryRequest) (resp *filer_pb.DeleteEntryResponse, err error)
func (*FilerServer) DeleteHandler ¶
func (fs *FilerServer) DeleteHandler(w http.ResponseWriter, r *http.Request)
curl -X DELETE http://localhost:8888/path/to curl -X DELETE http://localhost:8888/path/to?recursive=true curl -X DELETE http://localhost:8888/path/to?recursive=true&ignoreRecursiveError=true
func (*FilerServer) GetFilerConfiguration ¶
func (fs *FilerServer) GetFilerConfiguration(ctx context.Context, req *filer_pb.GetFilerConfigurationRequest) (resp *filer_pb.GetFilerConfigurationResponse, err error)
func (*FilerServer) GetOrHeadHandler ¶
func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request, isGetMethod bool)
func (*FilerServer) ListEntries ¶
func (fs *FilerServer) ListEntries(ctx context.Context, req *filer_pb.ListEntriesRequest) (*filer_pb.ListEntriesResponse, error)
func (*FilerServer) LookupDirectoryEntry ¶
func (fs *FilerServer) LookupDirectoryEntry(ctx context.Context, req *filer_pb.LookupDirectoryEntryRequest) (*filer_pb.LookupDirectoryEntryResponse, error)
func (*FilerServer) LookupVolume ¶
func (fs *FilerServer) LookupVolume(ctx context.Context, req *filer_pb.LookupVolumeRequest) (*filer_pb.LookupVolumeResponse, error)
func (*FilerServer) PostHandler ¶
func (fs *FilerServer) PostHandler(w http.ResponseWriter, r *http.Request)
func (*FilerServer) Statistics ¶
func (fs *FilerServer) Statistics(ctx context.Context, req *filer_pb.StatisticsRequest) (resp *filer_pb.StatisticsResponse, err error)
func (*FilerServer) UpdateEntry ¶
func (fs *FilerServer) UpdateEntry(ctx context.Context, req *filer_pb.UpdateEntryRequest) (*filer_pb.UpdateEntryResponse, error)
type MasterOption ¶
type MasterServer ¶
type MasterServer struct { Topo *topology.Topology MasterClient *wdclient.MasterClient // contains filtered or unexported fields }
func NewMasterServer ¶
func NewMasterServer(r *mux.Router, option *MasterOption, peers []string) *MasterServer
func (*MasterServer) Assign ¶
func (ms *MasterServer) Assign(ctx context.Context, req *master_pb.AssignRequest) (*master_pb.AssignResponse, error)
func (*MasterServer) CollectionDelete ¶
func (ms *MasterServer) CollectionDelete(ctx context.Context, req *master_pb.CollectionDeleteRequest) (*master_pb.CollectionDeleteResponse, error)
func (*MasterServer) CollectionList ¶
func (ms *MasterServer) CollectionList(ctx context.Context, req *master_pb.CollectionListRequest) (*master_pb.CollectionListResponse, error)
func (*MasterServer) GetMasterConfiguration ¶
func (ms *MasterServer) GetMasterConfiguration(ctx context.Context, req *master_pb.GetMasterConfigurationRequest) (*master_pb.GetMasterConfigurationResponse, error)
func (*MasterServer) HasWritableVolume ¶
func (ms *MasterServer) HasWritableVolume(option *topology.VolumeGrowOption) bool
func (*MasterServer) KeepConnected ¶
func (ms *MasterServer) KeepConnected(stream master_pb.Seaweed_KeepConnectedServer) error
KeepConnected keep a stream gRPC call to the master. Used by clients to know the master is up. And clients gets the up-to-date list of volume locations
func (*MasterServer) LookupEcVolume ¶
func (ms *MasterServer) LookupEcVolume(ctx context.Context, req *master_pb.LookupEcVolumeRequest) (*master_pb.LookupEcVolumeResponse, error)
func (*MasterServer) LookupVolume ¶
func (ms *MasterServer) LookupVolume(ctx context.Context, req *master_pb.LookupVolumeRequest) (*master_pb.LookupVolumeResponse, error)
func (*MasterServer) SendHeartbeat ¶
func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServer) error
func (*MasterServer) SetRaftServer ¶
func (ms *MasterServer) SetRaftServer(raftServer *RaftServer)
func (*MasterServer) Statistics ¶
func (ms *MasterServer) Statistics(ctx context.Context, req *master_pb.StatisticsRequest) (*master_pb.StatisticsResponse, error)
func (*MasterServer) VolumeList ¶
func (ms *MasterServer) VolumeList(ctx context.Context, req *master_pb.VolumeListRequest) (*master_pb.VolumeListResponse, error)
type MoveEvents ¶
type MoveEvents struct {
// contains filtered or unexported fields
}
type RaftServer ¶
type RaftServer struct { *raft.GrpcServer // contains filtered or unexported fields }
func NewRaftServer ¶
func NewRaftServer(grpcDialOption grpc.DialOption, peers []string, serverAddr string, dataDir string, topo *topology.Topology, pulseSeconds int) *RaftServer
func (*RaftServer) Peers ¶
func (s *RaftServer) Peers() (members []string)
func (*RaftServer) StatusHandler ¶
func (s *RaftServer) StatusHandler(w http.ResponseWriter, r *http.Request)
type VolumeServer ¶
type VolumeServer struct { SeedMasterNodes []string FixJpgOrientation bool ReadRedirect bool MetricsAddress string MetricsIntervalSec int // contains filtered or unexported fields }
func NewVolumeServer ¶
func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, port int, publicUrl string, folders []string, maxCounts []int, needleMapKind storage.NeedleMapType, masterNodes []string, pulseSeconds int, dataCenter string, rack string, whiteList []string, fixJpgOrientation bool, readRedirect bool, compactionMBPerSecond int, ) *VolumeServer
func (*VolumeServer) AllocateVolume ¶
func (vs *VolumeServer) AllocateVolume(ctx context.Context, req *volume_server_pb.AllocateVolumeRequest) (*volume_server_pb.AllocateVolumeResponse, error)
func (*VolumeServer) BatchDelete ¶
func (vs *VolumeServer) BatchDelete(ctx context.Context, req *volume_server_pb.BatchDeleteRequest) (*volume_server_pb.BatchDeleteResponse, error)
func (*VolumeServer) CopyFile ¶
func (vs *VolumeServer) CopyFile(req *volume_server_pb.CopyFileRequest, stream volume_server_pb.VolumeServer_CopyFileServer) error
CopyFile client pulls the volume related file from the source server. if req.CompactionRevision != math.MaxUint32, it ensures the compact revision is as expected The copying still stop at req.StopOffset, but you can set it to math.MaxUint64 in order to read all data.
func (*VolumeServer) DeleteCollection ¶
func (vs *VolumeServer) DeleteCollection(ctx context.Context, req *volume_server_pb.DeleteCollectionRequest) (*volume_server_pb.DeleteCollectionResponse, error)
func (*VolumeServer) DeleteHandler ¶
func (vs *VolumeServer) DeleteHandler(w http.ResponseWriter, r *http.Request)
func (*VolumeServer) GetMaster ¶
func (vs *VolumeServer) GetMaster() string
func (*VolumeServer) GetOrHeadHandler ¶
func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
func (*VolumeServer) PostHandler ¶
func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request)
func (*VolumeServer) ReadVolumeFileStatus ¶
func (vs *VolumeServer) ReadVolumeFileStatus(ctx context.Context, req *volume_server_pb.ReadVolumeFileStatusRequest) (*volume_server_pb.ReadVolumeFileStatusResponse, error)
func (*VolumeServer) Shutdown ¶
func (vs *VolumeServer) Shutdown()
func (*VolumeServer) VacuumVolumeCheck ¶
func (vs *VolumeServer) VacuumVolumeCheck(ctx context.Context, req *volume_server_pb.VacuumVolumeCheckRequest) (*volume_server_pb.VacuumVolumeCheckResponse, error)
func (*VolumeServer) VacuumVolumeCleanup ¶
func (vs *VolumeServer) VacuumVolumeCleanup(ctx context.Context, req *volume_server_pb.VacuumVolumeCleanupRequest) (*volume_server_pb.VacuumVolumeCleanupResponse, error)
func (*VolumeServer) VacuumVolumeCommit ¶
func (vs *VolumeServer) VacuumVolumeCommit(ctx context.Context, req *volume_server_pb.VacuumVolumeCommitRequest) (*volume_server_pb.VacuumVolumeCommitResponse, error)
func (*VolumeServer) VacuumVolumeCompact ¶
func (vs *VolumeServer) VacuumVolumeCompact(ctx context.Context, req *volume_server_pb.VacuumVolumeCompactRequest) (*volume_server_pb.VacuumVolumeCompactResponse, error)
func (*VolumeServer) VolumeCopy ¶
func (vs *VolumeServer) VolumeCopy(ctx context.Context, req *volume_server_pb.VolumeCopyRequest) (*volume_server_pb.VolumeCopyResponse, error)
VolumeCopy copy the .idx .dat files, and mount the volume
func (*VolumeServer) VolumeDelete ¶
func (vs *VolumeServer) VolumeDelete(ctx context.Context, req *volume_server_pb.VolumeDeleteRequest) (*volume_server_pb.VolumeDeleteResponse, error)
func (*VolumeServer) VolumeEcBlobDelete ¶
func (vs *VolumeServer) VolumeEcBlobDelete(ctx context.Context, req *volume_server_pb.VolumeEcBlobDeleteRequest) (*volume_server_pb.VolumeEcBlobDeleteResponse, error)
func (*VolumeServer) VolumeEcShardRead ¶
func (vs *VolumeServer) VolumeEcShardRead(req *volume_server_pb.VolumeEcShardReadRequest, stream volume_server_pb.VolumeServer_VolumeEcShardReadServer) error
func (*VolumeServer) VolumeEcShardsCopy ¶
func (vs *VolumeServer) VolumeEcShardsCopy(ctx context.Context, req *volume_server_pb.VolumeEcShardsCopyRequest) (*volume_server_pb.VolumeEcShardsCopyResponse, error)
VolumeEcShardsCopy copy the .ecx and some ec data slices
func (*VolumeServer) VolumeEcShardsDelete ¶
func (vs *VolumeServer) VolumeEcShardsDelete(ctx context.Context, req *volume_server_pb.VolumeEcShardsDeleteRequest) (*volume_server_pb.VolumeEcShardsDeleteResponse, error)
VolumeEcShardsDelete local delete the .ecx and some ec data slices if not needed the shard should not be mounted before calling this.
func (*VolumeServer) VolumeEcShardsGenerate ¶
func (vs *VolumeServer) VolumeEcShardsGenerate(ctx context.Context, req *volume_server_pb.VolumeEcShardsGenerateRequest) (*volume_server_pb.VolumeEcShardsGenerateResponse, error)
VolumeEcShardsGenerate generates the .ecx and .ec01 ~ .ec14 files
func (*VolumeServer) VolumeEcShardsMount ¶
func (vs *VolumeServer) VolumeEcShardsMount(ctx context.Context, req *volume_server_pb.VolumeEcShardsMountRequest) (*volume_server_pb.VolumeEcShardsMountResponse, error)
func (*VolumeServer) VolumeEcShardsRebuild ¶
func (vs *VolumeServer) VolumeEcShardsRebuild(ctx context.Context, req *volume_server_pb.VolumeEcShardsRebuildRequest) (*volume_server_pb.VolumeEcShardsRebuildResponse, error)
VolumeEcShardsRebuild generates the any of the missing .ec01 ~ .ec14 files
func (*VolumeServer) VolumeEcShardsUnmount ¶
func (vs *VolumeServer) VolumeEcShardsUnmount(ctx context.Context, req *volume_server_pb.VolumeEcShardsUnmountRequest) (*volume_server_pb.VolumeEcShardsUnmountResponse, error)
func (*VolumeServer) VolumeIncrementalCopy ¶
func (vs *VolumeServer) VolumeIncrementalCopy(req *volume_server_pb.VolumeIncrementalCopyRequest, stream volume_server_pb.VolumeServer_VolumeIncrementalCopyServer) error
func (*VolumeServer) VolumeMarkReadonly ¶
func (vs *VolumeServer) VolumeMarkReadonly(ctx context.Context, req *volume_server_pb.VolumeMarkReadonlyRequest) (*volume_server_pb.VolumeMarkReadonlyResponse, error)
func (*VolumeServer) VolumeMount ¶
func (vs *VolumeServer) VolumeMount(ctx context.Context, req *volume_server_pb.VolumeMountRequest) (*volume_server_pb.VolumeMountResponse, error)
func (*VolumeServer) VolumeSyncStatus ¶
func (vs *VolumeServer) VolumeSyncStatus(ctx context.Context, req *volume_server_pb.VolumeSyncStatusRequest) (*volume_server_pb.VolumeSyncStatusResponse, error)
func (*VolumeServer) VolumeTailReceiver ¶
func (vs *VolumeServer) VolumeTailReceiver(ctx context.Context, req *volume_server_pb.VolumeTailReceiverRequest) (*volume_server_pb.VolumeTailReceiverResponse, error)
func (*VolumeServer) VolumeTailSender ¶
func (vs *VolumeServer) VolumeTailSender(req *volume_server_pb.VolumeTailSenderRequest, stream volume_server_pb.VolumeServer_VolumeTailSenderServer) error
func (*VolumeServer) VolumeUnmount ¶
func (vs *VolumeServer) VolumeUnmount(ctx context.Context, req *volume_server_pb.VolumeUnmountRequest) (*volume_server_pb.VolumeUnmountResponse, error)
type WebDavFile ¶
type WebDavFile struct {
// contains filtered or unexported fields
}
func (*WebDavFile) Close ¶
func (f *WebDavFile) Close() error
type WebDavFileSystem ¶
type WebDavFileSystem struct {
// contains filtered or unexported fields
}
func (*WebDavFileSystem) RemoveAll ¶
func (fs *WebDavFileSystem) RemoveAll(ctx context.Context, name string) error
func (*WebDavFileSystem) Rename ¶
func (fs *WebDavFileSystem) Rename(ctx context.Context, oldName, newName string) error
func (*WebDavFileSystem) WithFilerClient ¶
func (fs *WebDavFileSystem) WithFilerClient(ctx context.Context, fn func(filer_pb.SeaweedFilerClient) error) error
type WebDavOption ¶
type WebDavServer ¶
func NewWebDavServer ¶
func NewWebDavServer(option *WebDavOption) (ws *WebDavServer, err error)
Source Files ¶
- common.go
- filer_grpc_server.go
- filer_grpc_server_rename.go
- filer_server.go
- filer_server_handlers.go
- filer_server_handlers_read.go
- filer_server_handlers_read_dir.go
- filer_server_handlers_write.go
- filer_server_handlers_write_autochunk.go
- master_grpc_server.go
- master_grpc_server_collection.go
- master_grpc_server_volume.go
- master_server.go
- master_server_handlers.go
- master_server_handlers_admin.go
- master_server_handlers_ui.go
- raft_server.go
- raft_server_handlers.go
- volume_grpc_admin.go
- volume_grpc_batch_delete.go
- volume_grpc_client_to_master.go
- volume_grpc_copy.go
- volume_grpc_copy_incremental.go
- volume_grpc_erasure_coding.go
- volume_grpc_tail.go
- volume_grpc_vacuum.go
- volume_server.go
- volume_server_handlers.go
- volume_server_handlers_admin.go
- volume_server_handlers_helper.go
- volume_server_handlers_read.go
- volume_server_handlers_ui.go
- volume_server_handlers_write.go
- webdav_server.go