Documentation ¶
Index ¶
- func GetRefreshToken(ctx context.Context, clientID, clientSecret string, port int) (string, error)
- type GoogleClient
- func (c *GoogleClient) GetUserByEmail(email string) (*admin.User, error)
- func (c *GoogleClient) GetUserByID(id string) (*admin.User, error)
- func (c *GoogleClient) GetUsersInGroup(group string) ([]*admin.Member, error)
- func (c *GoogleClient) ListGroups() ([]*admin.Group, error)
- func (c *GoogleClient) ListUsers() ([]*admin.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.