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
d6a48082
Commit
d6a48082
authored
Jan 31, 2018
by
Sander van Harmelen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder and run gofmt to clean things up a bit
parent
471a8db7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
projects.go
projects.go
+18
-18
No files found.
projects.go
View file @
d6a48082
...
...
@@ -88,16 +88,6 @@ type Project struct {
CIConfigPath
*
string
`json:"ci_config_path"`
}
// ProjectUser represents a GitLab project.
type
ProjectUser
struct
{
ID
int
`json:"id"`
Name
string
`json:"name"`
Username
string
`json:"username"`
State
string
`json:"state"`
AvatarUrl
string
`json:"avatar_url"`
WebUrl
string
`json:"web_url"`
}
// Repository represents a repository.
type
Repository
struct
{
Name
string
`json:"name"`
...
...
@@ -203,14 +193,6 @@ type ListProjectsOptions struct {
WithMergeRequestsEnabled
*
bool
`url:"with_merge_requests_enabled,omitempty" json:"with_merge_requests_enabled,omitempty"`
}
// ListProjectUserOptions represents the available ListProjects() options.
//
// GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#get-project-users
type
ListProjectUserOptions
struct
{
ListOptions
Search
*
string
`url:"search,omitempty" json:"search,omitempty"`
}
// ListProjects gets a list of projects accessible by the authenticated user.
//
// GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#list-projects
...
...
@@ -254,6 +236,24 @@ func (s *ProjectsService) ListUserProjects(uid interface{}, opt *ListProjectsOpt
return
p
,
resp
,
err
}
// ProjectUser represents a GitLab project user.
type
ProjectUser
struct
{
ID
int
`json:"id"`
Name
string
`json:"name"`
Username
string
`json:"username"`
State
string
`json:"state"`
AvatarURL
string
`json:"avatar_url"`
WebURL
string
`json:"web_url"`
}
// ListProjectUserOptions represents the available ListProjectsUsers() options.
//
// GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#get-project-users
type
ListProjectUserOptions
struct
{
ListOptions
Search
*
string
`url:"search,omitempty" json:"search,omitempty"`
}
// ListProjectsUsers gets a list of users for the given project.
//
// GitLab API docs:
...
...
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