Documentation ¶
Index ¶
- func CheckBiometrics(callingContext *sockets.CallingContext, approvalType biometrics.Approval) bool
- func CreatePinSession(ctx sockets.CallingContext)
- func GetPermission(sessionType SessionType, ctx sockets.CallingContext, config *config.Config) (bool, error)
- func VerifyPinSession(ctx sockets.CallingContext) bool
- type Session
- type SessionStore
- type SessionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBiometrics ¶
func CheckBiometrics(callingContext *sockets.CallingContext, approvalType biometrics.Approval) bool
no session
func CreatePinSession ¶ added in v0.1.7
func CreatePinSession(ctx sockets.CallingContext)
func GetPermission ¶ added in v0.1.7
func GetPermission(sessionType SessionType, ctx sockets.CallingContext, config *config.Config) (bool, error)
with session
func VerifyPinSession ¶ added in v0.1.7
func VerifyPinSession(ctx sockets.CallingContext) bool
Types ¶
type SessionStore ¶ added in v0.1.7
type SessionStore struct {
Store []Session
}
func (*SessionStore) CreateSession ¶ added in v0.1.7
func (s *SessionStore) CreateSession(pid int, parentpid int, grandparentpid int, sessionType SessionType) Session
type SessionType ¶ added in v0.1.7
type SessionType string
const ( AccessVault SessionType = "com.quexten.goldwarden.accessvault" SSHKey SessionType = "com.quexten.goldwarden.usesshkey" Pin SessionType = "com.quexten.goldwarden.pin" // this counts as all other permissions )
Click to show internal directories.
Click to hide internal directories.