cache

package
v0.0.0-...-36df34d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataCache

type MetadataCache struct {
	// contains filtered or unexported fields
}

func NewMetadataCache

func NewMetadataCache(connector connector.Connector, blockCipher cipher.Block,
	iv []byte) (*MetadataCache, error)

IV should not have to be transformed to use.

func (*MetadataCache) CacheDirentDelete

func (this *MetadataCache) CacheDirentDelete(info *dirent.Dirent) error

func (*MetadataCache) CacheDirentPut

func (this *MetadataCache) CacheDirentPut(info *dirent.Dirent) error

Put this dirent in the semi-durable cache.

func (*MetadataCache) CacheGroupDelete

func (this *MetadataCache) CacheGroupDelete(info *identity.Group) error

func (*MetadataCache) CacheGroupPut

func (this *MetadataCache) CacheGroupPut(info *identity.Group) error

func (*MetadataCache) CacheUserDelete

func (this *MetadataCache) CacheUserDelete(info *identity.User) error

func (*MetadataCache) CacheUserPut

func (this *MetadataCache) CacheUserPut(info *identity.User) error

func (*MetadataCache) Clear

func (this *MetadataCache) Clear()

func (*MetadataCache) Close

func (this *MetadataCache) Close() error

func (*MetadataCache) GetFat

func (this *MetadataCache) GetFat() map[dirent.Id]*dirent.Dirent

func (*MetadataCache) GetGroups

func (this *MetadataCache) GetGroups() map[identity.GroupId]*identity.Group

func (*MetadataCache) GetUsers

func (this *MetadataCache) GetUsers() map[identity.UserId]*identity.User

func (*MetadataCache) IsEmpty

func (this *MetadataCache) IsEmpty() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL