dirivcache

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirIVCache

type DirIVCache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

DirIVCache stores up to "maxEntries" directory IVs.

func (*DirIVCache) Clear

func (c *DirIVCache) Clear()

Clear ... clear the cache. Called from fusefrontend when directories are renamed or deleted.

func (*DirIVCache) Lookup

func (c *DirIVCache) Lookup(dir string) (iv []byte, cDir string)

Lookup - fetch entry for "dir" (relative plaintext path) from the cache. Returns the directory IV and the relative encrypted path, or (nil, "") if the entry was not found.

func (*DirIVCache) Store

func (c *DirIVCache) Store(dir string, iv []byte, cDir string)

Store - write an entry for directory "dir" into the cache. Arguments: dir ... relative plaintext path iv .... directory IV cDir .. relative ciphertext path

Jump to

Keyboard shortcuts

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