Documentation ¶
Index ¶
- Variables
- func ExportPrivateKeyWithPassword(privKey *rsa.PrivateKey, password string, meta ehevent.EventMeta) (*domain.UserDecryptionKeyPasswordChanged, error)
- func InitConfig(adminUsername string, adminPassword string) error
- func RandomId() string
- func UnwrapAccounts(iaccounts []InternalAccount) []apitypes.Account
- type AppState
- type InternalAccount
- type InternalSecret
- type JwtConfig
- type S3ExportDetails
- type SensitiveUser
- type U2FToken
- type UserStorage
- func (s *UserStorage) AuditLog() []apitypes.AuditlogEntry
- func (s *UserStorage) Crypto() *cryptoThingie
- func (s *UserStorage) DecryptKeylist(secret InternalSecret) ([]domain.AccountKeylistAddedKeysItem, error)
- func (s *UserStorage) DecryptOtpProvisioningUrl(secret InternalSecret) (string, error)
- func (s *UserStorage) DecryptSecrets(secrets []InternalSecret) ([]apitypes.ExposedSecret, error)
- func (s *UserStorage) FolderById(id string) *apitypes.Folder
- func (l *UserStorage) GetEventTypes() ehevent.Allocators
- func (s *UserStorage) InternalSecretById(accountId string, secretId string) *InternalSecret
- func (s *UserStorage) OtpKeyExportMac(secret *InternalSecret) *mac.Mac
- func (l *UserStorage) ProcessEvents(ctx context.Context, handle ehreader.EventProcessorHandler) error
- func (s *UserStorage) S3ExportDetails() *S3ExportDetails
- func (s *UserStorage) SearchAccounts(query string) []apitypes.Account
- func (s *UserStorage) SearchFolders(query string) []apitypes.Folder
- func (s *UserStorage) SensitiveUser() SensitiveUser
- func (s *UserStorage) SignInGetU2fChallengeMac() *mac.Mac
- func (s *UserStorage) SubfoldersByParentId(id string) []apitypes.Folder
- func (s *UserStorage) U2FTokens() []*U2FToken
- func (s *UserStorage) UserId() string
- func (s *UserStorage) WrappedAccountById(id string) *InternalAccount
- func (s *UserStorage) WrappedAccounts() []InternalAccount
- func (s *UserStorage) WrappedAccountsByFolder(id string) []InternalAccount
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDecryptionKeyLocked = errors.New("decryption key locked")
)
Functions ¶
func ExportPrivateKeyWithPassword ¶
func ExportPrivateKeyWithPassword( privKey *rsa.PrivateKey, password string, meta ehevent.EventMeta, ) (*domain.UserDecryptionKeyPasswordChanged, error)
func InitConfig ¶
func UnwrapAccounts ¶
func UnwrapAccounts(iaccounts []InternalAccount) []apitypes.Account
Types ¶
type AppState ¶
type AppState struct { EventLog eventlog.Log // FIXME: outdated (non-stream-aware) interface // contains filtered or unexported fields }
func (*AppState) FindUserByUsername ¶
func (a *AppState) FindUserByUsername(username string) *UserStorage
func (*AppState) User ¶
func (a *AppState) User(id string) *UserStorage
func (*AppState) ValidatedJwtConf ¶
type InternalAccount ¶
type InternalAccount struct { Account apitypes.Account // exposed to UI - the rest are not Secrets []InternalSecret }
type InternalSecret ¶
type S3ExportDetails ¶
type SensitiveUser ¶
type UserStorage ¶
type UserStorage struct {
// contains filtered or unexported fields
}
holds all state for one user
func (*UserStorage) AuditLog ¶
func (s *UserStorage) AuditLog() []apitypes.AuditlogEntry
func (*UserStorage) Crypto ¶
func (s *UserStorage) Crypto() *cryptoThingie
func (*UserStorage) DecryptKeylist ¶
func (s *UserStorage) DecryptKeylist(secret InternalSecret) ([]domain.AccountKeylistAddedKeysItem, error)
func (*UserStorage) DecryptOtpProvisioningUrl ¶
func (s *UserStorage) DecryptOtpProvisioningUrl(secret InternalSecret) (string, error)
func (*UserStorage) DecryptSecrets ¶
func (s *UserStorage) DecryptSecrets( secrets []InternalSecret, ) ([]apitypes.ExposedSecret, error)
func (*UserStorage) FolderById ¶
func (s *UserStorage) FolderById(id string) *apitypes.Folder
func (*UserStorage) GetEventTypes ¶
func (l *UserStorage) GetEventTypes() ehevent.Allocators
func (*UserStorage) InternalSecretById ¶
func (s *UserStorage) InternalSecretById(accountId string, secretId string) *InternalSecret
func (*UserStorage) OtpKeyExportMac ¶
func (s *UserStorage) OtpKeyExportMac(secret *InternalSecret) *mac.Mac
func (*UserStorage) ProcessEvents ¶
func (l *UserStorage) ProcessEvents(ctx context.Context, handle ehreader.EventProcessorHandler) error
func (*UserStorage) S3ExportDetails ¶
func (s *UserStorage) S3ExportDetails() *S3ExportDetails
func (*UserStorage) SearchAccounts ¶
func (s *UserStorage) SearchAccounts(query string) []apitypes.Account
func (*UserStorage) SearchFolders ¶
func (s *UserStorage) SearchFolders(query string) []apitypes.Folder
func (*UserStorage) SensitiveUser ¶
func (s *UserStorage) SensitiveUser() SensitiveUser
func (*UserStorage) SignInGetU2fChallengeMac ¶
func (s *UserStorage) SignInGetU2fChallengeMac() *mac.Mac
func (*UserStorage) SubfoldersByParentId ¶
func (s *UserStorage) SubfoldersByParentId(id string) []apitypes.Folder
func (*UserStorage) U2FTokens ¶
func (s *UserStorage) U2FTokens() []*U2FToken
func (*UserStorage) UserId ¶
func (s *UserStorage) UserId() string
func (*UserStorage) WrappedAccountById ¶
func (s *UserStorage) WrappedAccountById(id string) *InternalAccount
func (*UserStorage) WrappedAccounts ¶
func (s *UserStorage) WrappedAccounts() []InternalAccount
func (*UserStorage) WrappedAccountsByFolder ¶
func (s *UserStorage) WrappedAccountsByFolder(id string) []InternalAccount
Click to show internal directories.
Click to hide internal directories.