Documentation
¶
Overview ¶
Package session provides in-memory storage of secure session details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session interface {
Type() apitypes.SessionType
Set(apitypes.SessionType, envelope.Envelope, envelope.Envelope, []byte, []byte) error
SetIdentity(apitypes.SessionType, envelope.Envelope, envelope.Envelope) error
ID() *identity.ID
AuthID() *identity.ID
Token() []byte
Passphrase() []byte
MasterKey() (*base64.Value, error)
HasToken() bool
HasPassphrase() bool
Logout() error
String() string
Self() *apitypes.Self
}
Session is the interface for access to secure session details.
func NewSession ¶
NewSession returns the default implementation of the Session interface for a user or machine depending on the passed type.
Click to show internal directories.
Click to hide internal directories.