config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

package config stores configuration around user onboarding to granted used to display friendly CLI hints and save progress in multi-step workflows, such as deploying Granted services to a user's cloud environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrantedConfigFolder

func GrantedConfigFolder() (string, error)

func SetupConfigFolder

func SetupConfigFolder() error

checks and or creates the config folder on startup

func SetupZSHAutoCompleteFolderAssume added in v0.2.1

func SetupZSHAutoCompleteFolderAssume() (string, error)

checks and or creates the config folder on startup

func SetupZSHAutoCompleteFolderGranted added in v0.2.1

func SetupZSHAutoCompleteFolderGranted() (string, error)

checks and or creates the config folder on startup

Types

type Config

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

func Load

func Load() (*Config, error)

func (*Config) Save

func (store *Config) Save() error

type KeyringConfig added in v0.1.11

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