Versions in this module Expand all Collapse all v0 v0.2.4 Apr 23, 2022 Changes in this version + const ConnectionsConfigFileFullName + const ConnectionsConfigFileNameExt + const ConnectionsConfigFileNamePrefix + const MainDir + const MainFileFullName + const MainFileNameExt + const MainFileNamePrefix + func Decrypt(text []byte, key []byte) ([]byte, error) + type EncryptedFile struct + Dirname string + FileExt string + FileName string + FilePrefix string + FullPath string + func NewEncryptedFileInConfigHomeDir(filename string) *EncryptedFile + func (f *EncryptedFile) Get() (text []byte, err error) + func (f *EncryptedFile) Set(text []byte) (err error) + type File struct + Dirname string + FileExt string + FileName string + FilePrefix string + FullPath string + var Connections *File + var Main *File + func NewConfigFile2WithDir(dirName string, filename string) *File + func (c *File) Delete(key string) error + func (c *File) Get(key string, out interface{}) error + func (c *File) GetAllKeys() ([]string, error) + func (c *File) GetConnectionDetails(connectionName string) (*shared.ConnectionDetails, error) + func (c *File) GetConnectionType(connectionName string) (connectionType string, err error) + func (c *File) LoadConnection(connectionName string) (shared.ConnectionDetails, error) + func (c *File) Set(key string, val interface{}) error + type FileNotFoundError struct + func (f FileNotFoundError) Error() string + type KeyNotFoundError struct + func (k KeyNotFoundError) Error() string