Documentation ¶
Index ¶
- type Group
- type GroupTree
- func (g *GroupTree) Clear()
- func (g *GroupTree) GetGroup(email string) (*Group, error)
- func (g *GroupTree) ListGroupMembers(groupKey string, includeDerived bool) (result []map[string]interface{}, err error)
- func (g *GroupTree) ListGroupMembersRaw(groupKey string) (result []*admin.Member, err error)
- func (g *GroupTree) ListUserGroups(userKey string) (groups []map[string]interface{}, err error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
Group is a 'google group', but in a more useful format than the original libarary provides
type GroupTree ¶
type GroupTree struct {
// contains filtered or unexported fields
}
GroupTree is the service that deals with google groups
func CreateGroupTree ¶
func CreateGroupTree(logger *zap.SugaredLogger, domain string, userEmail string, serviceAccountFilePath string, groupBlacklist []string, scopes ...string) (*GroupTree, error)
CreateGroupTree -
func (*GroupTree) Clear ¶
func (g *GroupTree) Clear()
Clear removes all groups and users from the cache
func (*GroupTree) ListGroupMembers ¶
func (g *GroupTree) ListGroupMembers(groupKey string, includeDerived bool) (result []map[string]interface{}, err error)
ListGroupMembers same as ListGroupMembersRaw, but packages them into a better serializable format
func (*GroupTree) ListGroupMembersRaw ¶
ListGroupMembersRaw finds all members in a group
Click to show internal directories.
Click to hide internal directories.