Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type AccountInfo interface { // Name returns the name that uniquely identifies this user among all other // active users. Name() string // UID returns a unique value for a particular account that will change if // the account is removed from the system and another account is added with // the same name. UID() string // Groups returns the names of the groups the user is a member of. Groups() []string }
AccountInfo is an interface for exposing account information.
type TokenAuthenticator ¶
type TokenAuthenticator interface {
AuthenticateToken(token string) (AccountInfo, bool, error)
}
TokenAuthenticator is an interface for authenticating requests to the server.
Click to show internal directories.
Click to hide internal directories.