gsuite

package
v0.0.0-...-0902aac Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleDirectory

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

func NewGoogleDirectory

func NewGoogleDirectory(secretProvider GoogleServiceAccountSecretProvider) *GoogleDirectory

func (*GoogleDirectory) GetUserInfo

func (d *GoogleDirectory) GetUserInfo(ctx context.Context, userKey string) (*UserInfo, error)

type GoogleServiceAccountSecretProvider

type GoogleServiceAccountSecretProvider interface {
	GetKey(context.Context) ([]byte, error)
}

type UserInfo

type UserInfo struct {
	Id    string `json:"id"`
	Email string `json:"email"`
	Name  string `json:"name"`

	IsAdmin     bool `json:"is_admin"`
	IsSuspended bool `json:"is_suspended"`

	Schemas map[string]map[string]interface{} `json:"schemas"`
}

Jump to

Keyboard shortcuts

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