Documentation
¶
Index ¶
- func CreateDatabase()
- func CreateShare(id string, expirationGiven string, maxopenGiven int)
- func CreateShareFile(id string, shareId string, path string, expiration string, maxopen int)
- func CreateShareSecret(id string, shareId string, text string, expiration string, maxopen int)
- func DeleteShare(shareId string)
- func GetShareContent(shareId string) map[string]string
- func GetShareKeyPrivate(shareId string) string
- func GetShareKeyPublic(shareId string) string
- func GetShareOpen(shareId string) map[string]string
- func GetSharePassword(shareId string) string
- func ListShareOpen()
- func PeriodicCleanExpiredShares()
- func UpdateShareOpen(shareId string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDatabase ¶
func CreateDatabase()
func CreateShare ¶
func CreateShareFile ¶
func CreateShareSecret ¶
func DeleteShare ¶
func DeleteShare(shareId string)
Delete a share and also its related secrets and files (and delete file from filesystem aswell)
func GetShareContent ¶
Get the content of a share
func GetShareKeyPrivate ¶
Get the PGP private key of a share
func GetShareKeyPublic ¶
Get the PGP public key of a share
func GetShareOpen ¶
Get the number of times a share has been opened
func PeriodicCleanExpiredShares ¶
func PeriodicCleanExpiredShares()
Regularly check for all shares expiration date, and delete them if expired
func UpdateShareOpen ¶
func UpdateShareOpen(shareId string)
Update the number of times a share has been opened
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.