Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
golang-gitlab-gitlab-org-api-client-go
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Go Packaging Team
packages
golang-gitlab-gitlab-org-api-client-go
Commits
740ef3d2
Commit
740ef3d2
authored
6 years ago
by
Patrick Webster
Committed by
Sander van Harmelen
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixing ListVariables and GetVariable function names (#445)
parent
bf89afa2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
project_variables.go
+4
-4
4 additions, 4 deletions
project_variables.go
with
4 additions
and
4 deletions
project_variables.go
+
4
−
4
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
}
//
Show
Variable
Details
gets a variable.
//
Get
Variable gets a variable.
//
// GitLab API docs:
// https://docs.gitlab.com/ee/api/project_level_variables.html#show-variable-details
func
(
s
*
ProjectVariablesService
)
Show
Variable
Details
(
pid
interface
{},
key
string
,
options
...
OptionFunc
)
(
*
ProjectVariable
,
*
Response
,
error
)
{
func
(
s
*
ProjectVariablesService
)
Get
Variable
(
pid
interface
{},
key
string
,
options
...
OptionFunc
)
(
*
ProjectVariable
,
*
Response
,
error
)
{
project
,
err
:=
parseID
(
pid
)
if
err
!=
nil
{
return
nil
,
nil
,
err
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment