config

package
v0.0.0-...-d3aecbb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyBackendUndefined = KeyBackend("")
	KeyBackendKeyring   = KeyBackend("keyring")
	KeyBackendArgon2    = KeyBackend("argon2")
)

Functions

func AtomicSave

func AtomicSave(cfg *ini.File, filename string) error

func DefaultReports

func DefaultReports() []model.Report

func EnsureReports

func EnsureReports() ([]model.Report, error)

func LoadProjects

func LoadProjects(tokenKey [32]byte, compatToken bool) ([]model.Repo, error)

func LoadReports

func LoadReports() ([]model.Report, error)

func SaveAppConfig

func SaveAppConfig(app *AppConfig) error

func SaveProjects

func SaveProjects(repos []model.Repo, tokenKey [32]byte) error

func SaveReports

func SaveReports(reports []model.Report) error

Types

type AppConfig

type AppConfig struct {
	Projects  AppConfigProjects
	Interface AppConfigInterface
}

func LoadAppConfig

func LoadAppConfig() (*AppConfig, error)

type AppConfigInterface

type AppConfigInterface struct {
	DontConfirmExit bool
}

type AppConfigProjects

type AppConfigProjects struct {
	TokenProtectionKey KeyBackend
	Argon2Params       *security.ProtectionKeyArgon2Params
}

type KeyBackend

type KeyBackend string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL