Documentation
¶
Index ¶
- func NewID(prefix string) string
- type SecretStore
- type Store
- func (s *Store) DeleteConnection(id string) error
- func (s *Store) DeleteSSHProfile(id string) error
- func (s *Store) Dir() string
- func (s *Store) GetConnection(id string) (model.Connection, bool)
- func (s *Store) GetSSHProfile(id string) (model.SSHProfile, bool)
- func (s *Store) ListConnections() []model.Connection
- func (s *Store) ListSSHProfiles() []model.SSHProfile
- func (s *Store) SaveConnection(c model.Connection) error
- func (s *Store) SaveSSHProfile(profile model.SSHProfile) error
- func (s *Store) SaveSettings(settings model.Settings) error
- func (s *Store) Settings() model.Settings
- func (s *Store) UpdateConnection(connection model.Connection) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) Materialize ¶
func (s *SecretStore) Materialize(id, suffix string) (string, func(), error)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteConnection ¶
func (*Store) DeleteSSHProfile ¶
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) UpdateConnection ¶
func (s *Store) UpdateConnection(connection model.Connection) error
Click to show internal directories.
Click to hide internal directories.