Documentation
¶
Index ¶
- func FindGroup(googleApps GoogleApps, groupKey string) (*admin.Group, bool)
- func UserEmails(user *admin.User) (primary string, emails []string)
- type GoogleApps
- type GoogleAppsImpl
- type GoogleAppsMock
- type GoogleAppsWithCache
- func (g *GoogleAppsWithCache) CustomerUsers(customerId string) []*admin.User
- func (g *GoogleAppsWithCache) GroupMembers(groupEmail string) []*admin.Member
- func (g *GoogleAppsWithCache) Groups() []*admin.Group
- func (g *GoogleAppsWithCache) Preload()
- func (g *GoogleAppsWithCache) Users() []*admin.User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindGroup ¶
func FindGroup(googleApps GoogleApps, groupKey string) (*admin.Group, bool)
func UserEmails ¶
Types ¶
type GoogleApps ¶
type GoogleApps interface { Preload() Users() []*admin.User Groups() []*admin.Group GroupMembers(groupEmail string) []*admin.Member CustomerUsers(customerId string) []*admin.User }
func NewGoogleApps ¶
func NewGoogleApps(ctx context.ExecutionContext) GoogleApps
type GoogleAppsImpl ¶
type GoogleAppsImpl struct {
ExecutionContext context.ExecutionContext
}
func (*GoogleAppsImpl) CustomerUsers ¶
func (g *GoogleAppsImpl) CustomerUsers(customerId string) []*admin.User
func (*GoogleAppsImpl) GroupMembers ¶
func (g *GoogleAppsImpl) GroupMembers(groupEmail string) []*admin.Member
func (*GoogleAppsImpl) Groups ¶
func (g *GoogleAppsImpl) Groups() []*admin.Group
func (*GoogleAppsImpl) Preload ¶
func (g *GoogleAppsImpl) Preload()
func (*GoogleAppsImpl) Users ¶
func (g *GoogleAppsImpl) Users() []*admin.User
type GoogleAppsMock ¶
type GoogleAppsMock struct { MockUsers []*admin.User MockGroups []*admin.Group MockMembers map[string][]*admin.Member MockCustomers map[string][]*admin.User }
func (*GoogleAppsMock) CustomerUsers ¶
func (g *GoogleAppsMock) CustomerUsers(customerId string) []*admin.User
func (*GoogleAppsMock) GroupMembers ¶
func (g *GoogleAppsMock) GroupMembers(groupEmail string) []*admin.Member
func (*GoogleAppsMock) Groups ¶
func (g *GoogleAppsMock) Groups() []*admin.Group
func (*GoogleAppsMock) Preload ¶
func (g *GoogleAppsMock) Preload()
func (*GoogleAppsMock) Users ¶
func (g *GoogleAppsMock) Users() []*admin.User
type GoogleAppsWithCache ¶
type GoogleAppsWithCache struct { // resolver Resolver GoogleApps // contains filtered or unexported fields }
func (*GoogleAppsWithCache) CustomerUsers ¶
func (g *GoogleAppsWithCache) CustomerUsers(customerId string) []*admin.User
func (*GoogleAppsWithCache) GroupMembers ¶
func (g *GoogleAppsWithCache) GroupMembers(groupEmail string) []*admin.Member
func (*GoogleAppsWithCache) Groups ¶
func (g *GoogleAppsWithCache) Groups() []*admin.Group
func (*GoogleAppsWithCache) Preload ¶
func (g *GoogleAppsWithCache) Preload()
func (*GoogleAppsWithCache) Users ¶
func (g *GoogleAppsWithCache) Users() []*admin.User
Click to show internal directories.
Click to hide internal directories.