Documentation ¶
Index ¶
- type Config
- type Params
- type UserInfo
- func (uinfo *UserInfo) GetGroupServiceMethods(groupname string) ([]string, error)
- func (uinfo *UserInfo) GetGroups() ([]string, error)
- func (uinfo *UserInfo) GetUserGroups(username string) ([]string, error)
- func (uinfo *UserInfo) GetUserServiceMethods(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 is a deprecated interface. Use New2 instead.
func New2 ¶ added in v0.4.0
New opens a *UserInfo database using Git as the backing store. It will periodically pull from the remote repository specified by config.RepositoryURL and cache a local copy in the config.LocalRepositoryDirectory. If config.RepositoryURL is empty then only the local repository is used. The specified config.Branch is read to extract the database. The databse is checked every config.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)
NewWithConfig is a deprecated interface. Use New2 instead.
func (*UserInfo) GetGroupServiceMethods ¶ added in v0.5.0
func (*UserInfo) GetUserGroups ¶
func (*UserInfo) GetUserServiceMethods ¶ added in v0.5.0
func (*UserInfo) GetUsersInGroup ¶ added in v0.0.3
func (*UserInfo) GetUsersInGroups ¶
func (*UserInfo) TestUserInGroup ¶
Click to show internal directories.
Click to hide internal directories.