Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithAuthInfo ¶ added in v0.0.8
ContextWithAuthInfo returns a copy of a context with authentication information added.
Types ¶
type AuthInfo ¶
type AuthInfo struct { AwsRole *AwsRole Expires time.Time Groups []string PermittedMethods []string Username string // contains filtered or unexported fields }
AuthInfo contains authentication information.
func GetAuthInfoFromContext ¶ added in v0.0.8
GetAuthInfoFromContext will return authentication information from a context, if available.
func (*AuthInfo) CheckGroup ¶
CheckGroup will return true if the specified group is present in the list. It uses an O(1) lookup.
Click to show internal directories.
Click to hide internal directories.