vault

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHKey

type SSHKey struct {
	Name      string
	Key       string
	PublicKey string
}

type Vault

type Vault struct {
	Keyring *crypto.Keyring
	// contains filtered or unexported fields
}

func NewVault

func NewVault(keyring *crypto.Keyring) *Vault

func (*Vault) AddOrUpdateLogin

func (vault *Vault) AddOrUpdateLogin(cipher models.Cipher)

func (*Vault) AddOrUpdateSecureNote

func (vault *Vault) AddOrUpdateSecureNote(cipher models.Cipher)

func (*Vault) Clear

func (vault *Vault) Clear()

func (*Vault) DeleteCipher

func (vault *Vault) DeleteCipher(uuid string)

func (*Vault) GetEnvCredentialForExecutable

func (vault *Vault) GetEnvCredentialForExecutable(executableName string) (map[string]string, bool)

func (*Vault) GetLastSynced

func (vault *Vault) GetLastSynced() int64

func (*Vault) GetLogin

func (vault *Vault) GetLogin(uuid string) (models.Cipher, error)

func (*Vault) GetLoginByFilter

func (vault *Vault) GetLoginByFilter(uuid string, orgId string, name string, username string) (models.Cipher, error)

func (*Vault) GetLogins

func (vault *Vault) GetLogins() []models.Cipher

func (*Vault) GetNoteByFilter

func (vault *Vault) GetNoteByFilter(uuid string, orgId string, name string) (models.Cipher, error)

func (*Vault) GetNotes

func (vault *Vault) GetNotes() []models.Cipher

func (*Vault) GetSSHKeys

func (vault *Vault) GetSSHKeys() []SSHKey

func (*Vault) GetSecureNote

func (vault *Vault) GetSecureNote(uuid string) (models.Cipher, error)

func (*Vault) IsWebsocketConnected

func (vault *Vault) IsWebsocketConnected() bool

func (*Vault) SetLastSynced

func (vault *Vault) SetLastSynced(lastSynced int64)

func (*Vault) SetWebsocketConnected

func (vault *Vault) SetWebsocketConnected(connected bool)

Jump to

Keyboard shortcuts

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