Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupInfo ¶
GroupInfo defines a group name and its parent
func (*GroupInfo) GetChildren ¶
GetChildren returns all the children of the group
type User ¶
type User interface { // Returns the enrollment ID of the user GetName() string // Login the user with a password Login(password string) error // Get the complete path for the user's affiliation. GetAffiliationPath() []string // GetAttribute returns the value for an attribute name GetAttribute(name string) string }
User is the SPI for a user
type UserInfo ¶
type UserInfo struct { Name string Pass string Type string Group string Attributes []api.Attribute State int MaxEnrollments int }
UserInfo contains information about a user
type UserRegistry ¶
type UserRegistry interface { GetUser(id string, attrs []string) (User, error) GetUserInfo(id string) (UserInfo, error) InsertUser(user UserInfo) error UpdateUser(user UserInfo) error DeleteUser(id string) error GetGroup(name string) (Group, error) GetRootGroup() (Group, error) InsertGroup(name string, parentID string) error DeleteGroup(name string) error }
UserRegistry is the API for retreiving users and groups
Click to show internal directories.
Click to hide internal directories.