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
074a3f2a
Commit
074a3f2a
authored
Oct 01, 2018
by
Jan-Philipp Benecke
Committed by
Sander van Harmelen
Oct 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added all pages domains endpoint (#480)
parent
a9c97172
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
pages_domains.go
pages_domains.go
+19
-0
No files found.
pages_domains.go
View file @
074a3f2a
...
...
@@ -61,6 +61,25 @@ func (s *PagesDomainsService) ListPagesDomains(pid interface{}, opt *ListPagesDo
return
pd
,
resp
,
err
}
// ListAllPagesDomains gets a list of all pages domains.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/api/pages_domains.html#list-all-pages-domains
func
(
s
*
PagesDomainsService
)
ListAllPagesDomains
(
options
...
OptionFunc
)
([]
*
PagesDomain
,
*
Response
,
error
)
{
req
,
err
:=
s
.
client
.
NewRequest
(
"GET"
,
"pages/domains"
,
nil
,
options
)
if
err
!=
nil
{
return
nil
,
nil
,
err
}
var
pd
[]
*
PagesDomain
resp
,
err
:=
s
.
client
.
Do
(
req
,
&
pd
)
if
err
!=
nil
{
return
nil
,
resp
,
err
}
return
pd
,
resp
,
err
}
// GetPagesDomain get a specific pages domain for a 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