Documentation ¶
Index ¶
- type Config
- type UserInfo
- func (uinfo *UserInfo) GetGroups() ([]string, error)
- func (uinfo *UserInfo) GetUserGroups(username string) ([]string, error)
- func (uinfo *UserInfo) GetUsersInGroup(groupname string) ([]string, error)
- func (uinfo *UserInfo) GetUsersInGroups() ([]string, error)
- func (uinfo *UserInfo) TestUserInGroup(username, groupname string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserInfo ¶
type UserInfo struct {
// contains filtered or unexported fields
}
func New ¶
func New(repositoryURL, branch, localRepositoryDir string, checkInterval time.Duration, logger log.DebugLogger) ( *UserInfo, error)
New opens a *UserInfo database using Git as the backing store. It will periodically pull from the remote repository specified by repositoryURL and cache a local copy in the localRepositoryDir. If repositoryURL is empty then only the local repository is used. The specified branch is read to extract the database. The databse is checked every checkInterval for updates. Any problems with fetching or updating the database are sent to the logger.
func NewWithConfig ¶
func NewWithConfig(config Config, logger log.DebugLogger) (*UserInfo, error)
func (*UserInfo) GetUserGroups ¶
func (*UserInfo) GetUsersInGroup ¶ added in v0.0.3
func (*UserInfo) GetUsersInGroups ¶
func (*UserInfo) TestUserInGroup ¶
Click to show internal directories.
Click to hide internal directories.