googleapps

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGroup

func FindGroup(googleApps GoogleApps, groupKey string) (*admin.Group, bool)

func UserEmails

func UserEmails(user *admin.User) (primary string, emails []string)

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

Jump to

Keyboard shortcuts

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