filter

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserGroupsFilter

func NewUserGroupsFilter(userGroups userinfo.UserGroupsGetter,
	regex string) (userinfo.UserGroupsGetter, error)

func NewUserInfoFilter

func NewUserInfoFilter(userInfo userinfo.UserInfo,
	groupFilter string) (userinfo.UserInfo, error)

Types

type UserGroupsInfo

type UserGroupsInfo struct {
	// contains filtered or unexported fields
}

func (*UserGroupsInfo) GetUserGroups

func (uinfo *UserGroupsInfo) GetUserGroups(username string) ([]string, error)

type UserInfo

type UserInfo struct {
	UserGroupsInfo
	userinfo.UserInfo
}

func (*UserInfo) GetUserGroups

func (uinfo *UserInfo) GetUserGroups(username string) ([]string, error)

Jump to

Keyboard shortcuts

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