googleclient

package
v0.0.0-...-fa5e208 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRefreshToken

func GetRefreshToken(ctx context.Context, clientID, clientSecret string, port int) (string, error)

Types

type GoogleClient

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

func NewGoogleClient

func NewGoogleClient(ctx context.Context, clientID, clientSecret, refreshToken, customer string) (*GoogleClient, error)

func (*GoogleClient) GetUserByEmail

func (c *GoogleClient) GetUserByEmail(email string) (*admin.User, error)

func (*GoogleClient) GetUserByID

func (c *GoogleClient) GetUserByID(id string) (*admin.User, error)

func (*GoogleClient) GetUsersInGroup

func (c *GoogleClient) GetUsersInGroup(group string) ([]*admin.Member, error)

func (*GoogleClient) ListGroups

func (c *GoogleClient) ListGroups() ([]*admin.Group, error)

func (*GoogleClient) ListUsers

func (c *GoogleClient) ListUsers() ([]*admin.User, error)

Jump to

Keyboard shortcuts

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