afconfig

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

package config stores configuration around

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppName        string
	AppNameConfig  string
	DefaultBrowser string
	// used to override the builtin filepaths for custom installation locations
	CustomBrowserPath      string
	CustomSSOBrowserPath   string
	Keyring                *KeyringConfig `toml:",omitempty"`
	Ordering               string
	ExportCredentialSuffix string
}

func NewDefaultConfig

func NewDefaultConfig() Config

NewDefaultConfig returns a config with OS specific defaults populated

func NewLoadedConfig

func NewLoadedConfig() (Config, error)

func (Config) ConfigFolder

func (c Config) ConfigFolder() (string, error)

func (*Config) Load

func (c *Config) Load() error

func (*Config) Save

func (c *Config) Save() error

func (Config) SetupConfigFolder

func (c Config) SetupConfigFolder() error

checks and or creates the config folder on startup

type KeyringConfig

type KeyringConfig struct {
	Backend                 *string `toml:",omitempty"`
	KeychainName            *string `toml:",omitempty"`
	FileDir                 *string `toml:",omitempty"`
	LibSecretCollectionName *string `toml:",omitempty"`
}

Jump to

Keyboard shortcuts

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