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
740ef3d2
Commit
740ef3d2
authored
Aug 03, 2018
by
Patrick Webster
Committed by
Sander van Harmelen
Aug 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing ListVariables and GetVariable function names (#445)
parent
bf89afa2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
project_variables.go
project_variables.go
+4
-4
No files found.
project_variables.go
View file @
740ef3d2
...
...
@@ -45,11 +45,11 @@ func (v ProjectVariable) String() string {
return
Stringify
(
v
)
}
// List
Project
Variables gets a list of all variables in a project.
// ListVariables gets a list of all variables in a project.
//
// GitLab API docs:
// https://docs.gitlab.com/ee/api/project_level_variables.html#list-project-variables
func
(
s
*
ProjectVariablesService
)
List
Project
Variables
(
pid
interface
{},
options
...
OptionFunc
)
([]
*
ProjectVariable
,
*
Response
,
error
)
{
func
(
s
*
ProjectVariablesService
)
ListVariables
(
pid
interface
{},
options
...
OptionFunc
)
([]
*
ProjectVariable
,
*
Response
,
error
)
{
project
,
err
:=
parseID
(
pid
)
if
err
!=
nil
{
return
nil
,
nil
,
err
...
...
@@ -70,11 +70,11 @@ func (s *ProjectVariablesService) ListProjectVariables(pid interface{}, options
return
vs
,
resp
,
err
}
//
ShowVariableDetails
gets a variable.
//
GetVariable
gets a variable.
//
// GitLab API docs:
// https://docs.gitlab.com/ee/api/project_level_variables.html#show-variable-details
func
(
s
*
ProjectVariablesService
)
ShowVariableDetails
(
pid
interface
{},
key
string
,
options
...
OptionFunc
)
(
*
ProjectVariable
,
*
Response
,
error
)
{
func
(
s
*
ProjectVariablesService
)
GetVariable
(
pid
interface
{},
key
string
,
options
...
OptionFunc
)
(
*
ProjectVariable
,
*
Response
,
error
)
{
project
,
err
:=
parseID
(
pid
)
if
err
!=
nil
{
return
nil
,
nil
,
err
...
...
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