locker

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	V1 = &version1{".lck", 1024 * 1024}
)

Functions

func IsLocked

func IsLocked(filename string) bool

func RemoveExtension

func RemoveExtension(filename string) string

Types

type Locker

type Locker interface {
	LockFile(filepath string, passphrase []byte) error
	UnlockFile(filepath string, passphrase []byte) error
	ReadLockedFile(filepath string, passphrase []byte) ([]byte, error)
}

func LookupVersion

func LookupVersion(ver int32) (Locker, bool)

func LookupVersionByExtension

func LookupVersionByExtension(ext string) (Locker, bool)

Jump to

Keyboard shortcuts

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