userinfo

package
v0.0.0-...-be4c1b8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GroupDoesNotExist = errors.New("Group does not exist")
View Source
var UserDoesNotExist = errors.New("User does not exist")
View Source
var UserDoesNotHaveEmail = errors.New("User does not have mail")
View Source
var UserDoesNotHaveGivenName = errors.New("User does not have givenName")

Functions

This section is empty.

Types

type AccountType

type AccountType int

type GroupInfo

type GroupInfo struct {
	Groupname   string
	Description string
	MemberUid   []string
	Member      []string
	Cn          string
	Mail        string
	LoginShell  string
}

type UserInfo

type UserInfo interface {
	GetallUsers() ([]string, error)

	CreateGroup(groupinfo GroupInfo) error

	DeleteGroup(groupnames []string) error

	ChangeDescription(groupname string, managegroup string) error

	GetallGroups() ([]string, error)

	GetgroupsofUser(username string) ([]string, error)

	GetusersofaGroup(groupname string) ([]string, string, error)

	GetGroupUsersAndManagers(groupname string) ([]string, []string, string, error)

	UserisadminOrNot(username string) bool

	AddmemberstoExisting(groupinfo GroupInfo) error

	DeletemembersfromGroup(groupinfo GroupInfo) error

	IsgroupmemberorNot(groupname string, username string) (bool, string, error)

	GetDescriptionvalue(groupname string) (string, error)

	GetEmailofauser(username string) ([]string, error)

	GetEmailofusersingroup(groupname string) ([]string, error)

	CreateServiceAccount(groupinfo GroupInfo) error

	IsgroupAdminorNot(username string, groupname string) (bool, error)

	UsernameExistsornot(username string) (bool, error)

	GroupnameExistsornot(groupname string) (bool, string, error)

	ServiceAccountExistsornot(groupname string) (bool, string, error)

	GetAllGroupsManagedBy() ([][]string, error)

	GetGroupsInfoOfUser(groupdn string, username string) ([][]string, error)

	GetGroupandManagedbyAttributeValue(groupnames []string) ([][]string, error)

	CreateUser(username string, givenName, email []string) error

	GetUserAttributes(username string) ([]string, []string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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