store

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SaveData

type SaveData struct {
	Keys             []sshkey.PrivateKeyFile
	StartHidden      bool
	PageantAgent     bool
	NamedPipeAgent   bool
	UnixSocketAgent  bool
	CygWinAgent      bool
	UnixSocketPath   string
	CygWinSocketPath string

	ProxyModeOfNamedPipe bool
}

type Settings

type Settings struct {
	SecretStore Store
	AppName     string
	SaveData
}

func NewSettings

func NewSettings(AppName string, SecretStore Store) *Settings

func (*Settings) Load

func (s *Settings) Load() error

func (*Settings) Save

func (s *Settings) Save() error

type Store

type Store interface {
	Get(key string) (string, error)
	Set(key, value string) error
	Remove(key string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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