Documentation
¶
Index ¶
- Constants
- Variables
- func CheckWriteAccess(dir string) error
- func DumpStatus(lws *pb.LetterWritingSet) error
- func Edit(l *pb.LetterWritingSet, ak envelope.AssymmetricKey, envelopePath string, ...) error
- func GetEnvelopePath(plaintextPath string) string
- func GetKeyByName(lws *pb.LetterWritingSet, name string) *pb.KeyImpl
- func GetKeyByPublicKey(lws *pb.LetterWritingSet, needle *ecdsa.PublicKey) *pb.KeyImpl
- func GetLWSDir() string
- func GetLWSWireProtoPath() string
- func GetPlaintextDir() string
- func GetPlaintextPath(envelopePath string) string
- func GetPublicKeys(l *pb.LetterWritingSet) []*ecdsa.PublicKey
- func ReadLWS() (*pb.LetterWritingSet, error)
- func RunEditor(filepath string)
- func RunPostEditHook(lws *pb.LetterWritingSet, envelopePath string) error
- func RunPreEditHook(lws *pb.LetterWritingSet, envelopePath string) error
- func Seal(l *pb.LetterWritingSet, ak envelope.AssymmetricKey, fileName string, ...) error
- func SetProperty(lws *pb.LetterWritingSet, propertyName, value string) error
- func Unseal(ak envelope.AssymmetricKey, envelopeFilePath string, envelopeBs []byte) error
- func UpdateLWS(lws *pb.LetterWritingSet, flags UpdateFlags) error
- func WriteLWS(lws *pb.LetterWritingSet, openflags int) error
- type UpdateFlags
Constants ¶
View Source
const ENVELOPE_FILEEXT = ".h132"
Variables ¶
View Source
var (
ErrNoKeys = errors.New("no keys in the letter writing set")
)
Functions ¶
func CheckWriteAccess ¶
CheckWriteAccess checks if the user has write access to the specified directory.
func DumpStatus ¶
func DumpStatus(lws *pb.LetterWritingSet) error
func Edit ¶
func Edit(l *pb.LetterWritingSet, ak envelope.AssymmetricKey, envelopePath string, envelopeBs []byte, plaintextPath string) error
func GetEnvelopePath ¶
func GetKeyByName ¶
func GetKeyByName(lws *pb.LetterWritingSet, name string) *pb.KeyImpl
func GetKeyByPublicKey ¶
func GetLWSWireProtoPath ¶
func GetLWSWireProtoPath() string
func GetPlaintextDir ¶
func GetPlaintextDir() string
func GetPlaintextPath ¶
func GetPublicKeys ¶
func GetPublicKeys(l *pb.LetterWritingSet) []*ecdsa.PublicKey
func ReadLWS ¶
func ReadLWS() (*pb.LetterWritingSet, error)
func RunPostEditHook ¶
func RunPostEditHook(lws *pb.LetterWritingSet, envelopePath string) error
func RunPreEditHook ¶
func RunPreEditHook(lws *pb.LetterWritingSet, envelopePath string) error
func Seal ¶
func Seal(l *pb.LetterWritingSet, ak envelope.AssymmetricKey, fileName string, contents []byte) error
func SetProperty ¶
func SetProperty(lws *pb.LetterWritingSet, propertyName, value string) error
func Unseal ¶
func Unseal(ak envelope.AssymmetricKey, envelopeFilePath string, envelopeBs []byte) error
func UpdateLWS ¶
func UpdateLWS(lws *pb.LetterWritingSet, flags UpdateFlags) error
Types ¶
Click to show internal directories.
Click to hide internal directories.