Documentation ¶
Index ¶
- Variables
- func AtomicSave(cfg *ini.File, filename string) error
- func DefaultReports() []model.Report
- func EnsureReports() ([]model.Report, error)
- func LoadProjects(tokenKey [32]byte, compatToken bool) ([]model.Repo, error)
- func LoadReports() ([]model.Report, error)
- func SaveAppConfig(app *AppConfig) error
- func SaveProjects(repos []model.Repo, tokenKey [32]byte) error
- func SaveReports(reports []model.Report) error
- type AppConfig
- type AppConfigInterface
- type AppConfigProjects
- type KeyBackend
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyBackendUndefined = KeyBackend("") KeyBackendKeyring = KeyBackend("keyring") KeyBackendArgon2 = KeyBackend("argon2") )
Functions ¶
func DefaultReports ¶
func EnsureReports ¶
func LoadReports ¶
func SaveAppConfig ¶
func SaveReports ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Projects AppConfigProjects Interface AppConfigInterface }
func LoadAppConfig ¶
type AppConfigInterface ¶
type AppConfigInterface struct {
DontConfirmExit bool
}
type AppConfigProjects ¶
type AppConfigProjects struct { TokenProtectionKey KeyBackend Argon2Params *security.ProtectionKeyArgon2Params }
type KeyBackend ¶
type KeyBackend string
Click to show internal directories.
Click to hide internal directories.