Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MessageEchoOff is for messages that shouldn't gave an echo. MessageEchoOff = MessageStyle(C.PAM_PROMPT_ECHO_OFF) // MessageEchoOn is for messages that should have an echo. MessageEchoOn = MessageStyle(C.PAM_PROMPT_ECHO_ON) // MessageErrorMsg is for messages that should be displayed as an error. MessageErrorMsg = MessageStyle(C.PAM_ERROR_MSG) // MessageTextInfo is for textual blurbs to be spat out. MessageTextInfo = MessageStyle(C.PAM_TEXT_INFO) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle ¶
Handle is a handle type to hang the PAM methods off of.
func (Handle) Conversation ¶
Conversation passes on the specified messages.
func (Handle) GetModuleData ¶
GetModuleData gets the specified module data.
func (Handle) GetUser ¶
GetUser maps to the pam_get_user call, and returns the user that we're trying to auth as.
func (Handle) SetModuleData ¶
SetModuleData sets the speciified module data.
type Message ¶
type Message struct { Style MessageStyle Msg string }
Message represents something to ask / show in a Conv.Conversation call.
Click to show internal directories.
Click to hide internal directories.