Documentation ¶
Overview ¶
could do conditional linux build, but no actual hard linux dependencies
Index ¶
Constants ¶
View Source
const ( Unset = "" None = "none" PassLinux = "pass_linux" WinCred = "wincred" File = "file" )
Supported store types.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultPath ¶
GetDefaultPath retrieves an OS-independent default path for secrets, tokens, encrypted key files. By default, it is /home/{username}/.thy/.
func GetSecureSetting ¶
func ReadFileInDefaultPath ¶
ReadFileInDefaultPath attempts to read a file in a store path. If the store path is not found, then the default thy directory is searched for a given file.
func ValidateStoreType ¶
Types ¶
type Store ¶
type Store interface { Store(key string, data any) error StoreString(key string, data string) error Get(key string, out any) error Delete(key string) error Wipe(prefix string) error List(prefix string) ([]string, error) }
Store interface provides common methods for storing data.
func NewFileStore ¶
func NewPassStore ¶
func NewPassStore() Store
func NewSecureStore ¶
func NewSecureStore(helper storeHelper) Store
func NewWinStore ¶
func NewWinStore() Store
Source Files ¶
Click to show internal directories.
Click to hide internal directories.