Documentation ¶
Index ¶
- Constants
- func CheckBiometrics(callingContext *sockets.CallingContext, approvalType biometrics.Approval) bool
- func GetPermission(sessionType SessionType, ctx sockets.CallingContext, config *config.Config) (bool, error)
- func GetSSHSession(ctx sockets.CallingContext) bool
- func VerifyPinSession(ctx sockets.CallingContext) bool
- func WipeSessions()
- type Session
- type SessionStore
- type SessionType
Constants ¶
View Source
const SSHTTL = 60 * time.Minute
Variables ¶
This section is empty.
Functions ¶
func CheckBiometrics ¶
func CheckBiometrics(callingContext *sockets.CallingContext, approvalType biometrics.Approval) bool
no session
func GetPermission ¶ added in v0.1.7
func GetPermission(sessionType SessionType, ctx sockets.CallingContext, config *config.Config) (bool, error)
with session
func GetSSHSession ¶ added in v0.2.11
func GetSSHSession(ctx sockets.CallingContext) bool
func VerifyPinSession ¶ added in v0.1.7
func VerifyPinSession(ctx sockets.CallingContext) bool
func WipeSessions ¶ added in v0.2.11
func WipeSessions()
Types ¶
type Session ¶ added in v0.1.7
type Session struct { Pid int ParentPid int GrandParentPid int Expires time.Time // contains filtered or unexported fields }
func CreatePinSession ¶ added in v0.1.7
func CreatePinSession(ctx sockets.CallingContext, ttl time.Duration) Session
func CreateSSHSession ¶ added in v0.2.11
func CreateSSHSession(ctx sockets.CallingContext) Session
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, ttl time.Duration) 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" )
Click to show internal directories.
Click to hide internal directories.