userinfo

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserGroupsGetter

type UserGroupsGetter interface {
	GetUserGroups(username string) ([]string, error)
}

UserGroupsGetter is the interface that wraps the GetUserGroups method.

GetUserGroups gets the groups that the user specified by username is a member of.

type UserInfo

type UserInfo interface {
	UserGroupsGetter
}

UserInfo is the interface that wraps multiple methods which yield information about a user.

type UsersInGroupGetter added in v0.0.3

type UsersInGroupGetter interface {
	GetUsersInGroup(groupname string) ([]string, error)
}

UsersInGroupGetter is the interface that wraps the GetUsersInGroup method.

GetUsersInGroup gets the list of users which are members of the group.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL