Documentation ¶
Index ¶
- Constants
- Variables
- func AdjustPassthroughHeaders(w http.ResponseWriter, r *http.Request, filename string)
- func InternalError(w http.ResponseWriter)
- func NewWebDavFileSystem(option *WebDavOption) (webdav.FileSystem, error)
- func NewWrappedFs(fs webdav.FileSystem, subFolder string) webdav.FileSystem
- func NotFound(w http.ResponseWriter)
- func OptionsHandler(w http.ResponseWriter, r *http.Request, isReadOnly bool)
- func ProcessRangeRequest(r *http.Request, w http.ResponseWriter, totalSize int64, mimeType string, ...) error
- func SaveAmzMetaData(r *http.Request, existing map[string][]byte, isReplace bool) (metadata map[string][]byte)
- func SetEtag(w http.ResponseWriter, etag string)
- type AdminLock
- type AdminLocks
- type ClusterStatusResult
- type FileInfo
- type FilerOption
- type FilerPostResult
- type FilerServer
- func (fs *FilerServer) AppendToEntry(ctx context.Context, req *filer_pb.AppendToEntryRequest) (*filer_pb.AppendToEntryResponse, error)
- 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) CacheRemoteObjectToLocalCluster(ctx context.Context, req *filer_pb.CacheRemoteObjectToLocalClusterRequest) (*filer_pb.CacheRemoteObjectToLocalClusterResponse, error)
- func (fs *FilerServer) CollectionList(ctx context.Context, req *filer_pb.CollectionListRequest) (resp *filer_pb.CollectionListResponse, err 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) DeleteTaggingHandler(w http.ResponseWriter, r *http.Request)
- func (fs *FilerServer) DistributedLock(ctx context.Context, req *filer_pb.LockRequest) (resp *filer_pb.LockResponse, err error)
- func (fs *FilerServer) DistributedUnlock(ctx context.Context, req *filer_pb.UnlockRequest) (resp *filer_pb.UnlockResponse, err error)
- func (fs *FilerServer) FindLockOwner(ctx context.Context, req *filer_pb.FindLockOwnerRequest) (*filer_pb.FindLockOwnerResponse, error)
- 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)
- func (fs *FilerServer) KvGet(ctx context.Context, req *filer_pb.KvGetRequest) (*filer_pb.KvGetResponse, error)
- func (fs *FilerServer) KvPut(ctx context.Context, req *filer_pb.KvPutRequest) (*filer_pb.KvPutResponse, error)
- func (fs *FilerServer) ListEntries(req *filer_pb.ListEntriesRequest, ...) (err 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) OnDlmChangeSnapshot(snapshot []pb.ServerAddress)
- func (fs *FilerServer) Ping(ctx context.Context, req *filer_pb.PingRequest) (resp *filer_pb.PingResponse, pingErr error)
- func (fs *FilerServer) PostHandler(w http.ResponseWriter, r *http.Request, contentLength int64)
- func (fs *FilerServer) PutTaggingHandler(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) StreamRenameEntry(req *filer_pb.StreamRenameEntryRequest, ...) (err error)
- func (fs *FilerServer) SubscribeLocalMetadata(req *filer_pb.SubscribeMetadataRequest, ...) error
- func (fs *FilerServer) SubscribeMetadata(req *filer_pb.SubscribeMetadataRequest, ...) error
- func (fs *FilerServer) TransferLocks(ctx context.Context, req *filer_pb.TransferLocksRequest) (*filer_pb.TransferLocksResponse, error)
- func (fs *FilerServer) TraverseBfsMetadata(req *filer_pb.TraverseBfsMetadataRequest, ...) 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) DisableVacuum(ctx context.Context, req *master_pb.DisableVacuumRequest) (*master_pb.DisableVacuumResponse, error)
- func (ms *MasterServer) EnableVacuum(ctx context.Context, req *master_pb.EnableVacuumRequest) (*master_pb.EnableVacuumResponse, error)
- func (ms *MasterServer) GetMasterConfiguration(ctx context.Context, req *master_pb.GetMasterConfigurationRequest) (*master_pb.GetMasterConfigurationResponse, error)
- func (ms *MasterServer) GetOneFiler(filerGroup cluster.FilerGroupName) pb.ServerAddress
- func (ms *MasterServer) KeepConnected(stream master_pb.Seaweed_KeepConnectedServer) error
- func (ms *MasterServer) LeaseAdminToken(ctx context.Context, req *master_pb.LeaseAdminTokenRequest) (*master_pb.LeaseAdminTokenResponse, error)
- func (ms *MasterServer) ListClusterNodes(ctx context.Context, req *master_pb.ListClusterNodesRequest) (*master_pb.ListClusterNodesResponse, 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) MerkleStatus(ctx context.Context, in *master_pb.MerkleStatusRequest) (*master_pb.MerkleStatusResponse, error)
- func (ms *MasterServer) OnPeerUpdate(update *master_pb.ClusterNodeUpdate, startFrom time.Time)
- func (ms *MasterServer) Ping(ctx context.Context, req *master_pb.PingRequest) (resp *master_pb.PingResponse, pingErr error)
- func (ms *MasterServer) ProcessGrowRequest()
- func (ms *MasterServer) RaftAddServer(ctx context.Context, req *master_pb.RaftAddServerRequest) (*master_pb.RaftAddServerResponse, error)
- func (ms *MasterServer) RaftListClusterServers(ctx context.Context, req *master_pb.RaftListClusterServersRequest) (*master_pb.RaftListClusterServersResponse, error)
- func (ms *MasterServer) RaftRemoveServer(ctx context.Context, req *master_pb.RaftRemoveServerRequest) (*master_pb.RaftRemoveServerResponse, error)
- func (ms *MasterServer) RegisterUuids(heartbeat *master_pb.Heartbeat) (duplicated_uuids []string, err error)
- func (ms *MasterServer) ReleaseAdminToken(ctx context.Context, req *master_pb.ReleaseAdminTokenRequest) (*master_pb.ReleaseAdminTokenResponse, error)
- func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServer) error
- func (ms *MasterServer) SetRaftServer(raftServer *RaftServer)
- func (ms *MasterServer) Shutdown()
- func (ms *MasterServer) Statistics(ctx context.Context, req *master_pb.StatisticsRequest) (*master_pb.StatisticsResponse, error)
- func (ms *MasterServer) StreamAssign(server master_pb.Seaweed_StreamAssignServer) error
- func (ms *MasterServer) UnRegisterUuids(ip string, port int)
- func (ms *MasterServer) VacuumVolume(ctx context.Context, req *master_pb.VacuumVolumeRequest) (*master_pb.VacuumVolumeResponse, error)
- func (ms *MasterServer) VolumeList(ctx context.Context, req *master_pb.VolumeListRequest) (*master_pb.VolumeListResponse, error)
- func (ms *MasterServer) VolumeMarkReadonly(ctx context.Context, req *master_pb.VolumeMarkReadonlyRequest) (*master_pb.VolumeMarkReadonlyResponse, error)
- type RaftServer
- func (s *RaftServer) AddPeersConfiguration() (cfg raft.Configuration)
- func (s *RaftServer) DoJoinCommand()
- func (s *RaftServer) HealthzHandler(w http.ResponseWriter, r *http.Request)
- func (s *RaftServer) Peers() (members []string)
- func (s *RaftServer) StatsRaftHandler(w http.ResponseWriter, r *http.Request)
- func (s *RaftServer) StatusHandler(w http.ResponseWriter, r *http.Request)
- func (s *RaftServer) UpdatePeers()
- type RaftServerOption
- type StateMachine
- type VolumeFileScanner4Tailing
- 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) FetchAndWriteNeedle(ctx context.Context, req *volume_server_pb.FetchAndWriteNeedleRequest) (resp *volume_server_pb.FetchAndWriteNeedleResponse, err error)
- func (vs *VolumeServer) GetMaster(ctx context.Context) pb.ServerAddress
- func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
- func (vs *VolumeServer) LoadNewVolumes()
- func (vs *VolumeServer) Ping(ctx context.Context, req *volume_server_pb.PingRequest) (resp *volume_server_pb.PingResponse, pingErr error)
- func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request)
- func (vs *VolumeServer) Query(req *volume_server_pb.QueryRequest, ...) error
- func (vs *VolumeServer) ReadAllNeedles(req *volume_server_pb.ReadAllNeedlesRequest, ...) (err error)
- func (vs *VolumeServer) ReadNeedleBlob(ctx context.Context, req *volume_server_pb.ReadNeedleBlobRequest) (resp *volume_server_pb.ReadNeedleBlobResponse, err error)
- func (vs *VolumeServer) ReadNeedleMeta(ctx context.Context, req *volume_server_pb.ReadNeedleMetaRequest) (resp *volume_server_pb.ReadNeedleMetaResponse, err error)
- func (vs *VolumeServer) ReadVolumeFileStatus(ctx context.Context, req *volume_server_pb.ReadVolumeFileStatusRequest) (*volume_server_pb.ReadVolumeFileStatusResponse, error)
- func (vs *VolumeServer) SetStopping()
- func (vs *VolumeServer) Shutdown()
- func (vs *VolumeServer) StopHeartbeat() (isAlreadyStopping bool)
- 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(req *volume_server_pb.VacuumVolumeCompactRequest, ...) error
- func (vs *VolumeServer) VolumeConfigure(ctx context.Context, req *volume_server_pb.VolumeConfigureRequest) (*volume_server_pb.VolumeConfigureResponse, error)
- func (vs *VolumeServer) VolumeCopy(req *volume_server_pb.VolumeCopyRequest, ...) 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) VolumeEcShardsToVolume(ctx context.Context, req *volume_server_pb.VolumeEcShardsToVolumeRequest) (*volume_server_pb.VolumeEcShardsToVolumeResponse, 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) VolumeMarkWritable(ctx context.Context, req *volume_server_pb.VolumeMarkWritableRequest) (*volume_server_pb.VolumeMarkWritableResponse, error)
- func (vs *VolumeServer) VolumeMount(ctx context.Context, req *volume_server_pb.VolumeMountRequest) (*volume_server_pb.VolumeMountResponse, error)
- func (vs *VolumeServer) VolumeNeedleStatus(ctx context.Context, req *volume_server_pb.VolumeNeedleStatusRequest) (*volume_server_pb.VolumeNeedleStatusResponse, error)
- func (vs *VolumeServer) VolumeServerEvents(req *volume_server_pb.VolumeServerEventsRequest, ...) error
- func (vs *VolumeServer) VolumeServerLeave(ctx context.Context, req *volume_server_pb.VolumeServerLeaveRequest) (*volume_server_pb.VolumeServerLeaveResponse, error)
- func (vs *VolumeServer) VolumeServerStatus(ctx context.Context, req *volume_server_pb.VolumeServerStatusRequest) (*volume_server_pb.VolumeServerStatusResponse, error)
- func (vs *VolumeServer) VolumeStatus(ctx context.Context, req *volume_server_pb.VolumeStatusRequest) (*volume_server_pb.VolumeStatusResponse, 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) VolumeTierMoveDatFromRemote(req *volume_server_pb.VolumeTierMoveDatFromRemoteRequest, ...) error
- func (vs *VolumeServer) VolumeTierMoveDatToRemote(req *volume_server_pb.VolumeTierMoveDatToRemoteRequest, ...) error
- func (vs *VolumeServer) VolumeUnmount(ctx context.Context, req *volume_server_pb.VolumeUnmountRequest) (*volume_server_pb.VolumeUnmountResponse, error)
- func (vs *VolumeServer) WriteNeedleBlob(ctx context.Context, req *volume_server_pb.WriteNeedleBlobRequest) (resp *volume_server_pb.WriteNeedleBlobResponse, err 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) AdjustedUrl(location *filer_pb.Location) string
- func (fs *WebDavFileSystem) GetDataCenter() string
- 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(streamingMode bool, fn func(filer_pb.SeaweedFilerClient) error) error
- type WebDavOption
- type WebDavServer
Constants ¶
const ( SequencerType = "master.sequencer.type" SequencerSnowflakeId = "master.sequencer.sequencer_snowflake_id" )
const BufferSizeLimit = 1024 * 1024 * 2
const (
LockDuration = 10 * time.Second
)
const (
// MaxUnsyncedEvents send empty notification with timestamp when certain amount of events have been filtered
MaxUnsyncedEvents = 1e3
)
Variables ¶
var ( OS_UID = uint32(os.Getuid()) OS_GID = uint32(os.Getgid()) ErrReadOnly = errors.New("read only") )
var StaticFS fs.FS
Functions ¶
func AdjustPassthroughHeaders ¶
func AdjustPassthroughHeaders(w http.ResponseWriter, r *http.Request, filename string)
func InternalError ¶
func InternalError(w http.ResponseWriter)
func NewWebDavFileSystem ¶
func NewWebDavFileSystem(option *WebDavOption) (webdav.FileSystem, error)
func NewWrappedFs ¶
func NewWrappedFs(fs webdav.FileSystem, subFolder string) webdav.FileSystem
NewWrappedFs returns a webdav.FileSystem identical to fs, except it provides access to a sub-folder of fs that is denominated by subFolder. It transparently handles renaming paths and filenames so that the outer part of the wrapped filesystem does not leak out.
func NotFound ¶
func NotFound(w http.ResponseWriter)
func OptionsHandler ¶
func OptionsHandler(w http.ResponseWriter, r *http.Request, isReadOnly bool)
func ProcessRangeRequest ¶
func SaveAmzMetaData ¶
func SetEtag ¶
func SetEtag(w http.ResponseWriter, etag string)
Types ¶
type AdminLocks ¶
func NewAdminLocks ¶
func NewAdminLocks() *AdminLocks
type ClusterStatusResult ¶
type FilerOption ¶
type FilerOption struct { Masters *pb.ServerDiscovery FilerGroup string Collection string DefaultReplication string DisableDirListing bool MaxMB int DirListingLimit int DataCenter string Rack string DataNode string DefaultLevelDbDir string DisableHttp bool Host pb.ServerAddress Cipher bool SaveToFilerLimit int64 ConcurrentUploadLimit int64 ShowUIDirectoryDelete bool DownloadMaxBytesPs int64 DiskType string AllowedOrigins []string ExposeDirectoryData bool // contains filtered or unexported fields }
type FilerPostResult ¶
type FilerServer ¶
type FilerServer struct { filer_pb.UnimplementedSeaweedFilerServer // contains filtered or unexported fields }
func NewFilerServer ¶
func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption) (fs *FilerServer, err error)
func (*FilerServer) AppendToEntry ¶
func (fs *FilerServer) AppendToEntry(ctx context.Context, req *filer_pb.AppendToEntryRequest) (*filer_pb.AppendToEntryResponse, 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) CacheRemoteObjectToLocalCluster ¶
func (fs *FilerServer) CacheRemoteObjectToLocalCluster(ctx context.Context, req *filer_pb.CacheRemoteObjectToLocalClusterRequest) (*filer_pb.CacheRemoteObjectToLocalClusterResponse, error)
func (*FilerServer) CollectionList ¶
func (fs *FilerServer) CollectionList(ctx context.Context, req *filer_pb.CollectionListRequest) (resp *filer_pb.CollectionListResponse, err 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 curl -X DELETE http://localhost:8888/path/to?recursive=true&skipChunkDeletion=true
func (*FilerServer) DeleteTaggingHandler ¶
func (fs *FilerServer) DeleteTaggingHandler(w http.ResponseWriter, r *http.Request)
remove all Seaweed- prefixed attributes curl -X DELETE http://localhost:8888/path/to/a/file?tagging
func (*FilerServer) DistributedLock ¶
func (fs *FilerServer) DistributedLock(ctx context.Context, req *filer_pb.LockRequest) (resp *filer_pb.LockResponse, err error)
DistributedLock is a grpc handler to handle FilerServer's LockRequest
func (*FilerServer) DistributedUnlock ¶
func (fs *FilerServer) DistributedUnlock(ctx context.Context, req *filer_pb.UnlockRequest) (resp *filer_pb.UnlockResponse, err error)
Unlock is a grpc handler to handle FilerServer's UnlockRequest
func (*FilerServer) FindLockOwner ¶
func (fs *FilerServer) FindLockOwner(ctx context.Context, req *filer_pb.FindLockOwnerRequest) (*filer_pb.FindLockOwnerResponse, error)
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)
func (*FilerServer) KvGet ¶
func (fs *FilerServer) KvGet(ctx context.Context, req *filer_pb.KvGetRequest) (*filer_pb.KvGetResponse, error)
func (*FilerServer) KvPut ¶
func (fs *FilerServer) KvPut(ctx context.Context, req *filer_pb.KvPutRequest) (*filer_pb.KvPutResponse, error)
KvPut sets the key~value. if empty value, delete the kv entry
func (*FilerServer) ListEntries ¶
func (fs *FilerServer) ListEntries(req *filer_pb.ListEntriesRequest, stream filer_pb.SeaweedFiler_ListEntriesServer) (err 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) OnDlmChangeSnapshot ¶
func (fs *FilerServer) OnDlmChangeSnapshot(snapshot []pb.ServerAddress)
func (*FilerServer) Ping ¶
func (fs *FilerServer) Ping(ctx context.Context, req *filer_pb.PingRequest) (resp *filer_pb.PingResponse, pingErr error)
func (*FilerServer) PostHandler ¶
func (fs *FilerServer) PostHandler(w http.ResponseWriter, r *http.Request, contentLength int64)
func (*FilerServer) PutTaggingHandler ¶
func (fs *FilerServer) PutTaggingHandler(w http.ResponseWriter, r *http.Request)
add or replace one file Seaweed- prefixed attributes curl -X PUT -H "Seaweed-Name1: value1" http://localhost:8888/path/to/a/file?tagging
func (*FilerServer) Statistics ¶
func (fs *FilerServer) Statistics(ctx context.Context, req *filer_pb.StatisticsRequest) (resp *filer_pb.StatisticsResponse, err error)
func (*FilerServer) StreamRenameEntry ¶
func (fs *FilerServer) StreamRenameEntry(req *filer_pb.StreamRenameEntryRequest, stream filer_pb.SeaweedFiler_StreamRenameEntryServer) (err error)
func (*FilerServer) SubscribeLocalMetadata ¶
func (fs *FilerServer) SubscribeLocalMetadata(req *filer_pb.SubscribeMetadataRequest, stream filer_pb.SeaweedFiler_SubscribeLocalMetadataServer) error
func (*FilerServer) SubscribeMetadata ¶
func (fs *FilerServer) SubscribeMetadata(req *filer_pb.SubscribeMetadataRequest, stream filer_pb.SeaweedFiler_SubscribeMetadataServer) error
func (*FilerServer) TransferLocks ¶
func (fs *FilerServer) TransferLocks(ctx context.Context, req *filer_pb.TransferLocksRequest) (*filer_pb.TransferLocksResponse, error)
TransferLocks is a grpc handler to handle FilerServer's TransferLocksRequest
func (*FilerServer) TraverseBfsMetadata ¶
func (fs *FilerServer) TraverseBfsMetadata(req *filer_pb.TraverseBfsMetadataRequest, stream filer_pb.SeaweedFiler_TraverseBfsMetadataServer) error
func (*FilerServer) UpdateEntry ¶
func (fs *FilerServer) UpdateEntry(ctx context.Context, req *filer_pb.UpdateEntryRequest) (*filer_pb.UpdateEntryResponse, error)
type MasterOption ¶
type MasterOption struct { Master pb.ServerAddress MetaFolder string VolumeSizeLimitMB uint32 VolumePreallocate bool // PulseSeconds int DefaultReplicaPlacement string GarbageThreshold float64 WhiteList []string DisableHttp bool MetricsAddress string MetricsIntervalSec int IsFollower bool EventStore *event.LevelDbEventStore[*event.MasterServerEvent] }
type MasterServer ¶
type MasterServer struct { master_pb.UnimplementedSeaweedServer Topo *topology.Topology MasterClient *wdclient.MasterClient Cluster *cluster.Cluster EventStore *event.LevelDbEventStore[*event.MasterServerEvent] // contains filtered or unexported fields }
func NewMasterServer ¶
func NewMasterServer(r *mux.Router, option *MasterOption, peers map[string]pb.ServerAddress) *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) DisableVacuum ¶
func (ms *MasterServer) DisableVacuum(ctx context.Context, req *master_pb.DisableVacuumRequest) (*master_pb.DisableVacuumResponse, error)
func (*MasterServer) EnableVacuum ¶
func (ms *MasterServer) EnableVacuum(ctx context.Context, req *master_pb.EnableVacuumRequest) (*master_pb.EnableVacuumResponse, error)
func (*MasterServer) GetMasterConfiguration ¶
func (ms *MasterServer) GetMasterConfiguration(ctx context.Context, req *master_pb.GetMasterConfigurationRequest) (*master_pb.GetMasterConfigurationResponse, error)
func (*MasterServer) GetOneFiler ¶
func (ms *MasterServer) GetOneFiler(filerGroup cluster.FilerGroupName) pb.ServerAddress
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) LeaseAdminToken ¶
func (ms *MasterServer) LeaseAdminToken(ctx context.Context, req *master_pb.LeaseAdminTokenRequest) (*master_pb.LeaseAdminTokenResponse, error)
func (*MasterServer) ListClusterNodes ¶
func (ms *MasterServer) ListClusterNodes(ctx context.Context, req *master_pb.ListClusterNodesRequest) (*master_pb.ListClusterNodesResponse, error)
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) MerkleStatus ¶
func (ms *MasterServer) MerkleStatus(ctx context.Context, in *master_pb.MerkleStatusRequest) (*master_pb.MerkleStatusResponse, error)
func (*MasterServer) OnPeerUpdate ¶
func (ms *MasterServer) OnPeerUpdate(update *master_pb.ClusterNodeUpdate, startFrom time.Time)
func (*MasterServer) Ping ¶
func (ms *MasterServer) Ping(ctx context.Context, req *master_pb.PingRequest) (resp *master_pb.PingResponse, pingErr error)
func (*MasterServer) ProcessGrowRequest ¶
func (ms *MasterServer) ProcessGrowRequest()
func (*MasterServer) RaftAddServer ¶
func (ms *MasterServer) RaftAddServer(ctx context.Context, req *master_pb.RaftAddServerRequest) (*master_pb.RaftAddServerResponse, error)
func (*MasterServer) RaftListClusterServers ¶
func (ms *MasterServer) RaftListClusterServers(ctx context.Context, req *master_pb.RaftListClusterServersRequest) (*master_pb.RaftListClusterServersResponse, error)
func (*MasterServer) RaftRemoveServer ¶
func (ms *MasterServer) RaftRemoveServer(ctx context.Context, req *master_pb.RaftRemoveServerRequest) (*master_pb.RaftRemoveServerResponse, error)
func (*MasterServer) RegisterUuids ¶
func (ms *MasterServer) RegisterUuids(heartbeat *master_pb.Heartbeat) (duplicated_uuids []string, err error)
func (*MasterServer) ReleaseAdminToken ¶
func (ms *MasterServer) ReleaseAdminToken(ctx context.Context, req *master_pb.ReleaseAdminTokenRequest) (*master_pb.ReleaseAdminTokenResponse, 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) Shutdown ¶
func (ms *MasterServer) Shutdown()
func (*MasterServer) Statistics ¶
func (ms *MasterServer) Statistics(ctx context.Context, req *master_pb.StatisticsRequest) (*master_pb.StatisticsResponse, error)
func (*MasterServer) StreamAssign ¶
func (ms *MasterServer) StreamAssign(server master_pb.Seaweed_StreamAssignServer) error
func (*MasterServer) UnRegisterUuids ¶
func (ms *MasterServer) UnRegisterUuids(ip string, port int)
func (*MasterServer) VacuumVolume ¶
func (ms *MasterServer) VacuumVolume(ctx context.Context, req *master_pb.VacuumVolumeRequest) (*master_pb.VacuumVolumeResponse, error)
func (*MasterServer) VolumeList ¶
func (ms *MasterServer) VolumeList(ctx context.Context, req *master_pb.VolumeListRequest) (*master_pb.VolumeListResponse, error)
func (*MasterServer) VolumeMarkReadonly ¶
func (ms *MasterServer) VolumeMarkReadonly(ctx context.Context, req *master_pb.VolumeMarkReadonlyRequest) (*master_pb.VolumeMarkReadonlyResponse, error)
type RaftServer ¶
type RaftServer struct { RaftHashicorp *hashicorpRaft.Raft TransportManager *transport.Manager *raft.GrpcServer // contains filtered or unexported fields }
func NewHashicorpRaftServer ¶
func NewHashicorpRaftServer(option *RaftServerOption) (*RaftServer, error)
func NewRaftServer ¶
func NewRaftServer(option *RaftServerOption) (*RaftServer, error)
func (*RaftServer) AddPeersConfiguration ¶
func (s *RaftServer) AddPeersConfiguration() (cfg raft.Configuration)
func (*RaftServer) DoJoinCommand ¶
func (s *RaftServer) DoJoinCommand()
func (*RaftServer) HealthzHandler ¶
func (s *RaftServer) HealthzHandler(w http.ResponseWriter, r *http.Request)
func (*RaftServer) Peers ¶
func (s *RaftServer) Peers() (members []string)
func (*RaftServer) StatsRaftHandler ¶
func (s *RaftServer) StatsRaftHandler(w http.ResponseWriter, r *http.Request)
func (*RaftServer) StatusHandler ¶
func (s *RaftServer) StatusHandler(w http.ResponseWriter, r *http.Request)
func (*RaftServer) UpdatePeers ¶
func (s *RaftServer) UpdatePeers()
type RaftServerOption ¶
type StateMachine ¶
type StateMachine struct { raft.StateMachine // contains filtered or unexported fields }
func (*StateMachine) Apply ¶
func (s *StateMachine) Apply(l *hashicorpRaft.Log) interface{}
func (StateMachine) Recovery ¶
func (s StateMachine) Recovery(data []byte) error
func (*StateMachine) Restore ¶
func (s *StateMachine) Restore(r io.ReadCloser) error
func (StateMachine) Save ¶
func (s StateMachine) Save() ([]byte, error)
func (*StateMachine) Snapshot ¶
func (s *StateMachine) Snapshot() (hashicorpRaft.FSMSnapshot, error)
type VolumeFileScanner4Tailing ¶
type VolumeFileScanner4Tailing struct {
// contains filtered or unexported fields
}
generate the volume idx
func (*VolumeFileScanner4Tailing) ReadNeedleBody ¶
func (scanner *VolumeFileScanner4Tailing) ReadNeedleBody() bool
func (*VolumeFileScanner4Tailing) VisitNeedle ¶
func (*VolumeFileScanner4Tailing) VisitSuperBlock ¶
func (scanner *VolumeFileScanner4Tailing) VisitSuperBlock(superBlock super_block.SuperBlock) error
type VolumeServer ¶
type VolumeServer struct { volume_server_pb.UnimplementedVolumeServerServer SeedMasterNodes []pb.ServerAddress FixJpgOrientation bool ReadMode string // contains filtered or unexported fields }
func NewVolumeServer ¶
func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, port int, grpcPort int, publicUrl string, folders []string, maxCounts []int32, minFreeSpaces []util.MinFreeSpace, diskTypes []types.DiskType, idxFolder string, needleMapKind storage.NeedleMapKind, masterNodes []pb.ServerAddress, pulseSeconds int, dataCenter string, rack string, whiteList []string, fixJpgOrientation bool, readMode string, compactionMBPerSecond int, fileSizeLimitMB int, concurrentUploadLimit int64, concurrentDownloadLimit int64, inflightUploadDataTimeout time.Duration, hasSlowRead bool, readBufferSizeMB int, ldbTimeout int64, eventStore *event.LevelDbEventStore[*event.VolumeServerEvent], ) *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) FetchAndWriteNeedle ¶
func (vs *VolumeServer) FetchAndWriteNeedle(ctx context.Context, req *volume_server_pb.FetchAndWriteNeedleRequest) (resp *volume_server_pb.FetchAndWriteNeedleResponse, err error)
func (*VolumeServer) GetMaster ¶
func (vs *VolumeServer) GetMaster(ctx context.Context) pb.ServerAddress
func (*VolumeServer) GetOrHeadHandler ¶
func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
func (*VolumeServer) LoadNewVolumes ¶
func (vs *VolumeServer) LoadNewVolumes()
func (*VolumeServer) Ping ¶
func (vs *VolumeServer) Ping(ctx context.Context, req *volume_server_pb.PingRequest) (resp *volume_server_pb.PingResponse, pingErr error)
func (*VolumeServer) PostHandler ¶
func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request)
func (*VolumeServer) Query ¶
func (vs *VolumeServer) Query(req *volume_server_pb.QueryRequest, stream volume_server_pb.VolumeServer_QueryServer) error
func (*VolumeServer) ReadAllNeedles ¶
func (vs *VolumeServer) ReadAllNeedles(req *volume_server_pb.ReadAllNeedlesRequest, stream volume_server_pb.VolumeServer_ReadAllNeedlesServer) (err error)
func (*VolumeServer) ReadNeedleBlob ¶
func (vs *VolumeServer) ReadNeedleBlob(ctx context.Context, req *volume_server_pb.ReadNeedleBlobRequest) (resp *volume_server_pb.ReadNeedleBlobResponse, err error)
func (*VolumeServer) ReadNeedleMeta ¶
func (vs *VolumeServer) ReadNeedleMeta(ctx context.Context, req *volume_server_pb.ReadNeedleMetaRequest) (resp *volume_server_pb.ReadNeedleMetaResponse, err error)
func (*VolumeServer) ReadVolumeFileStatus ¶
func (vs *VolumeServer) ReadVolumeFileStatus(ctx context.Context, req *volume_server_pb.ReadVolumeFileStatusRequest) (*volume_server_pb.ReadVolumeFileStatusResponse, error)
func (*VolumeServer) SetStopping ¶
func (vs *VolumeServer) SetStopping()
func (*VolumeServer) Shutdown ¶
func (vs *VolumeServer) Shutdown()
func (*VolumeServer) StopHeartbeat ¶
func (vs *VolumeServer) StopHeartbeat() (isAlreadyStopping bool)
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(req *volume_server_pb.VacuumVolumeCompactRequest, stream volume_server_pb.VolumeServer_VacuumVolumeCompactServer) error
func (*VolumeServer) VolumeConfigure ¶
func (vs *VolumeServer) VolumeConfigure(ctx context.Context, req *volume_server_pb.VolumeConfigureRequest) (*volume_server_pb.VolumeConfigureResponse, error)
func (*VolumeServer) VolumeCopy ¶
func (vs *VolumeServer) VolumeCopy(req *volume_server_pb.VolumeCopyRequest, stream volume_server_pb.VolumeServer_VolumeCopyServer) error
VolumeCopy copy the .idx .dat .vif 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 .ec00 ~ .ec13 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 .ec00 ~ .ec13 files
func (*VolumeServer) VolumeEcShardsToVolume ¶
func (vs *VolumeServer) VolumeEcShardsToVolume(ctx context.Context, req *volume_server_pb.VolumeEcShardsToVolumeRequest) (*volume_server_pb.VolumeEcShardsToVolumeResponse, error)
VolumeEcShardsToVolume generates the .idx, .dat files from .ecx, .ecj and .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) VolumeMarkWritable ¶
func (vs *VolumeServer) VolumeMarkWritable(ctx context.Context, req *volume_server_pb.VolumeMarkWritableRequest) (*volume_server_pb.VolumeMarkWritableResponse, error)
func (*VolumeServer) VolumeMount ¶
func (vs *VolumeServer) VolumeMount(ctx context.Context, req *volume_server_pb.VolumeMountRequest) (*volume_server_pb.VolumeMountResponse, error)
func (*VolumeServer) VolumeNeedleStatus ¶
func (vs *VolumeServer) VolumeNeedleStatus(ctx context.Context, req *volume_server_pb.VolumeNeedleStatusRequest) (*volume_server_pb.VolumeNeedleStatusResponse, error)
func (*VolumeServer) VolumeServerEvents ¶
func (vs *VolumeServer) VolumeServerEvents(req *volume_server_pb.VolumeServerEventsRequest, stream volume_server_pb.VolumeServer_VolumeServerEventsServer) error
func (*VolumeServer) VolumeServerLeave ¶
func (vs *VolumeServer) VolumeServerLeave(ctx context.Context, req *volume_server_pb.VolumeServerLeaveRequest) (*volume_server_pb.VolumeServerLeaveResponse, error)
func (*VolumeServer) VolumeServerStatus ¶
func (vs *VolumeServer) VolumeServerStatus(ctx context.Context, req *volume_server_pb.VolumeServerStatusRequest) (*volume_server_pb.VolumeServerStatusResponse, error)
func (*VolumeServer) VolumeStatus ¶
func (vs *VolumeServer) VolumeStatus(ctx context.Context, req *volume_server_pb.VolumeStatusRequest) (*volume_server_pb.VolumeStatusResponse, 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) VolumeTierMoveDatFromRemote ¶
func (vs *VolumeServer) VolumeTierMoveDatFromRemote(req *volume_server_pb.VolumeTierMoveDatFromRemoteRequest, stream volume_server_pb.VolumeServer_VolumeTierMoveDatFromRemoteServer) error
VolumeTierMoveDatFromRemote copy dat file from a remote tier to local volume server
func (*VolumeServer) VolumeTierMoveDatToRemote ¶
func (vs *VolumeServer) VolumeTierMoveDatToRemote(req *volume_server_pb.VolumeTierMoveDatToRemoteRequest, stream volume_server_pb.VolumeServer_VolumeTierMoveDatToRemoteServer) error
VolumeTierMoveDatToRemote copy dat file to a remote tier
func (*VolumeServer) VolumeUnmount ¶
func (vs *VolumeServer) VolumeUnmount(ctx context.Context, req *volume_server_pb.VolumeUnmountRequest) (*volume_server_pb.VolumeUnmountResponse, error)
func (*VolumeServer) WriteNeedleBlob ¶
func (vs *VolumeServer) WriteNeedleBlob(ctx context.Context, req *volume_server_pb.WriteNeedleBlobRequest) (resp *volume_server_pb.WriteNeedleBlobResponse, err 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) AdjustedUrl ¶
func (fs *WebDavFileSystem) AdjustedUrl(location *filer_pb.Location) string
func (*WebDavFileSystem) GetDataCenter ¶
func (fs *WebDavFileSystem) GetDataCenter() string
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(streamingMode bool, 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_admin.go
- filer_grpc_server_dlm.go
- filer_grpc_server_kv.go
- filer_grpc_server_remote.go
- filer_grpc_server_rename.go
- filer_grpc_server_sub_meta.go
- filer_grpc_server_traverse_meta.go
- filer_server.go
- filer_server_handlers.go
- filer_server_handlers_proxy.go
- filer_server_handlers_read.go
- filer_server_handlers_read_dir.go
- filer_server_handlers_tagging.go
- filer_server_handlers_write.go
- filer_server_handlers_write_autochunk.go
- filer_server_handlers_write_cipher.go
- filer_server_handlers_write_merge.go
- filer_server_handlers_write_upload.go
- master_grpc_server.go
- master_grpc_server_admin.go
- master_grpc_server_assign.go
- master_grpc_server_cluster.go
- master_grpc_server_collection.go
- master_grpc_server_raft.go
- master_grpc_server_volume.go
- master_server.go
- master_server_handlers.go
- master_server_handlers_admin.go
- master_server_handlers_ui.go
- raft_hashicorp.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_event.go
- volume_grpc_query.go
- volume_grpc_read_all.go
- volume_grpc_read_write.go
- volume_grpc_remote.go
- volume_grpc_tail.go
- volume_grpc_tier_download.go
- volume_grpc_tier_upload.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
- wrapped_webdav_fs.go