Documentation ¶
Index ¶
- func EnsureVisited(mc *MetaCache, client filer_pb.FilerClient, dirPath util.FullPath) error
- func IsHiddenSystemEntry(dir, name string) bool
- func SubscribeMetaEvents(mc *MetaCache, selfSignature int32, client filer_pb.FilerClient, dir string, ...) error
- type IdMapper
- type MetaCache
- func (mc *MetaCache) AtomicUpdateEntryFromFiler(ctx context.Context, oldPath util.FullPath, newEntry *filer.Entry, ...) error
- func (mc *MetaCache) Debug()
- func (mc *MetaCache) DeleteEntry(ctx context.Context, fp util.FullPath) (err error)
- func (mc *MetaCache) DeleteEntrySkipHardlink(ctx context.Context, fp util.FullPath) (err error)
- func (mc *MetaCache) DeleteFolderChildren(ctx context.Context, fp util.FullPath) (err error)
- func (mc *MetaCache) FindEntry(ctx context.Context, fp util.FullPath) (entry *filer.Entry, err error)
- func (mc *MetaCache) InsertEntry(ctx context.Context, entry *filer.Entry) error
- func (mc *MetaCache) ListDirectoryEntries(ctx context.Context, dirPath util.FullPath, startFileName string, ...) error
- func (mc *MetaCache) Shutdown()
- func (mc *MetaCache) UpdateEntry(ctx context.Context, entry *filer.Entry) error
- type UidGidMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureVisited ¶
func IsHiddenSystemEntry ¶
func SubscribeMetaEvents ¶
Types ¶
type IdMapper ¶
type IdMapper struct {
// contains filtered or unexported fields
}
func (*IdMapper) FilerToLocal ¶
func (*IdMapper) LocalToFiler ¶
type MetaCache ¶
type MetaCache struct {
// contains filtered or unexported fields
}
func NewMetaCache ¶
func (*MetaCache) AtomicUpdateEntryFromFiler ¶
func (*MetaCache) DeleteEntry ¶
func (*MetaCache) DeleteEntrySkipHardlink ¶
func (*MetaCache) DeleteFolderChildren ¶
func (*MetaCache) InsertEntry ¶
func (*MetaCache) ListDirectoryEntries ¶
type UidGidMapper ¶
type UidGidMapper struct {
// contains filtered or unexported fields
}
func NewUidGidMapper ¶
func NewUidGidMapper(uidPairsStr, gidPairStr string) (*UidGidMapper, error)
UidGidMapper translates local uid/gid to filer uid/gid The local storage always persists the same as the filer. The local->filer translation happens when updating the filer first and later saving to meta_cache. And filer->local happens when reading from the meta_cache.
func (*UidGidMapper) FilerToLocal ¶
func (m *UidGidMapper) FilerToLocal(uid, gid uint32) (uint32, uint32)
func (*UidGidMapper) LocalToFiler ¶
func (m *UidGidMapper) LocalToFiler(uid, gid uint32) (uint32, uint32)
Click to show internal directories.
Click to hide internal directories.