Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPasteExpired = errors.New("triangle/store: paste expired")
View Source
var ErrPasteNotFound = errors.New("triangle/store: paste not found")
View Source
var ErrWrongPassphrase = errors.New("triangle/store: wrong passphrase")
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
func NewFilesystem ¶
func NewFilesystem(rootPath, encryptionKey string) (*Filesystem, error)
func (*Filesystem) Close ¶
func (f *Filesystem) Close() error
func (*Filesystem) DecryptPaste ¶
func (f *Filesystem) DecryptPaste(id, passphrase string) (string, error)
func (*Filesystem) InsertPaste ¶
Click to show internal directories.
Click to hide internal directories.