store

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewID

func NewID(prefix string) string

Types

type SecretStore

type SecretStore struct {
	// contains filtered or unexported fields
}

func OpenSecretStore

func OpenSecretStore(dataDir, encodedKey string) (*SecretStore, error)

func (*SecretStore) Delete

func (s *SecretStore) Delete(id string) error

func (*SecretStore) Get

func (s *SecretStore) Get(id string) ([]byte, error)

func (*SecretStore) Materialize

func (s *SecretStore) Materialize(id, suffix string) (string, func(), error)

func (*SecretStore) Put

func (s *SecretStore) Put(data []byte) (string, error)

type Store

type Store struct {
	// contains filtered or unexported fields
}

func Open

func Open(dir string, defaults model.Settings) (*Store, error)

func (*Store) DeleteConnection

func (s *Store) DeleteConnection(id string) error

func (*Store) DeleteSSHProfile

func (s *Store) DeleteSSHProfile(id string) error

func (*Store) Dir

func (s *Store) Dir() string

func (*Store) GetConnection

func (s *Store) GetConnection(id string) (model.Connection, bool)

func (*Store) GetSSHProfile

func (s *Store) GetSSHProfile(id string) (model.SSHProfile, bool)

func (*Store) ListConnections

func (s *Store) ListConnections() []model.Connection

func (*Store) ListSSHProfiles

func (s *Store) ListSSHProfiles() []model.SSHProfile

func (*Store) SaveConnection

func (s *Store) SaveConnection(c model.Connection) error

func (*Store) SaveSSHProfile

func (s *Store) SaveSSHProfile(profile model.SSHProfile) error

func (*Store) SaveSettings

func (s *Store) SaveSettings(settings model.Settings) error

func (*Store) Settings

func (s *Store) Settings() model.Settings

func (*Store) UpdateConnection

func (s *Store) UpdateConnection(connection model.Connection) error

Jump to

Keyboard shortcuts

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