Versions in this module Expand all Collapse all v0 v0.1.0 Sep 3, 2015 Changes in this version + var ErrorDuplicateEmail = newError("duplicate_email", "Email already in use.", http.StatusBadRequest) + var ErrorInvalidClient = newError("invalid_client", "invalid email.", http.StatusBadRequest) + var ErrorInvalidEmail = newError("invalid_email", "invalid email.", http.StatusBadRequest) + var ErrorInvalidRedirectURL = newError("invalid_redirect_url", ...) + var ErrorMaxResultsTooHigh = newError("max_results_too_high", ...) + var ErrorResourceNotFound = newError("resource_not_found", "Resource could not be found.", http.StatusNotFound) + var ErrorUnauthorized = newError("unauthorized", ...) + type Creds struct + ClientID string + User user.User + type Emailer interface + SendResetPasswordEmail func(string, url.URL, string) (*url.URL, error) + type Error struct + Code int + Desc string + Internal error + Type string + func (e Error) Error() string + type UsersAPI struct + func NewUsersAPI(manager *user.Manager, cir client.ClientIdentityRepo, emailer Emailer, ...) *UsersAPI + func (u *UsersAPI) Authorize(creds Creds) bool + func (u *UsersAPI) CreateUser(creds Creds, usr schema.User, redirURL url.URL) (schema.UserCreateResponse, error) + func (u *UsersAPI) GetUser(creds Creds, id string) (schema.User, error) + func (u *UsersAPI) ListUsers(creds Creds, maxResults int, nextPageToken string) ([]*schema.User, string, error)