Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
c7d77110
Commit
c7d77110
authored
Mar 17, 2016
by
Peter Mikula
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for user identities
parent
fba2237f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
22 deletions
+28
-22
users.go
users.go
+28
-22
No files found.
users.go
View file @
c7d77110
...
...
@@ -33,28 +33,34 @@ type UsersService struct {
//
// GitLab API docs: http://doc.gitlab.com/ce/api/users.html
type
User
struct
{
ID
int
`json:"id"`
Username
string
`json:"username"`
Email
string
`json:"email"`
Name
string
`json:"name"`
State
string
`json:"state"`
CreatedAt
time
.
Time
`json:"created_at"`
Bio
string
`json:"bio"`
Skype
string
`json:"skype"`
Linkedin
string
`json:"linkedin"`
Twitter
string
`json:"twitter"`
WebsiteURL
string
`json:"website_url"`
ExternUID
string
`json:"extern_uid"`
Provider
string
`json:"provider"`
ThemeID
int
`json:"theme_id"`
ColorSchemeID
int
`json:"color_scheme_id"`
IsAdmin
bool
`json:"is_admin"`
AvatarURL
string
`json:"avatar_url"`
CanCreateGroup
bool
`json:"can_create_group"`
CanCreateProject
bool
`json:"can_create_project"`
ProjectsLimit
int
`json:"projects_limit"`
CurrentSignInAt
*
time
.
Time
`json:"current_sign_in_at"`
TwoFactorEnabled
bool
`json:"two_factor_enabled"`
ID
int
`json:"id"`
Username
string
`json:"username"`
Email
string
`json:"email"`
Name
string
`json:"name"`
State
string
`json:"state"`
CreatedAt
time
.
Time
`json:"created_at"`
Bio
string
`json:"bio"`
Skype
string
`json:"skype"`
Linkedin
string
`json:"linkedin"`
Twitter
string
`json:"twitter"`
WebsiteURL
string
`json:"website_url"`
ExternUID
string
`json:"extern_uid"`
Provider
string
`json:"provider"`
ThemeID
int
`json:"theme_id"`
ColorSchemeID
int
`json:"color_scheme_id"`
IsAdmin
bool
`json:"is_admin"`
AvatarURL
string
`json:"avatar_url"`
CanCreateGroup
bool
`json:"can_create_group"`
CanCreateProject
bool
`json:"can_create_project"`
ProjectsLimit
int
`json:"projects_limit"`
CurrentSignInAt
*
time
.
Time
`json:"current_sign_in_at"`
TwoFactorEnabled
bool
`json:"two_factor_enabled"`
Identities
[]
*
UserIdentity
`json:"identities"`
}
type
UserIdentity
struct
{
Provider
string
`json:"provider"`
ExternUID
string
`json:"extern_uid"`
}
// ListUsersOptions represents the available ListUsers() options.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment