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
b1a597f1
Commit
b1a597f1
authored
Jun 17, 2019
by
Julius Noack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add masked variable support for gitlab projects and groups
parent
daf94410
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
group_variables.go
group_variables.go
+1
-0
project_variables.go
project_variables.go
+3
-0
No files found.
group_variables.go
View file @
b1a597f1
...
@@ -38,6 +38,7 @@ type GroupVariable struct {
...
@@ -38,6 +38,7 @@ type GroupVariable struct {
Key
string
`json:"key"`
Key
string
`json:"key"`
Value
string
`json:"value"`
Value
string
`json:"value"`
Protected
bool
`json:"protected"`
Protected
bool
`json:"protected"`
Masked
bool
`json:"masked"`
}
}
func
(
v
GroupVariable
)
String
()
string
{
func
(
v
GroupVariable
)
String
()
string
{
...
...
project_variables.go
View file @
b1a597f1
...
@@ -38,6 +38,7 @@ type ProjectVariable struct {
...
@@ -38,6 +38,7 @@ type ProjectVariable struct {
Key
string
`json:"key"`
Key
string
`json:"key"`
Value
string
`json:"value"`
Value
string
`json:"value"`
Protected
bool
`json:"protected"`
Protected
bool
`json:"protected"`
Masked
bool
`json:"masked"`
EnvironmentScope
string
`json:"environment_scope"`
EnvironmentScope
string
`json:"environment_scope"`
}
}
...
@@ -104,6 +105,7 @@ type CreateVariableOptions struct {
...
@@ -104,6 +105,7 @@ type CreateVariableOptions struct {
Key
*
string
`url:"key,omitempty" json:"key,omitempty"`
Key
*
string
`url:"key,omitempty" json:"key,omitempty"`
Value
*
string
`url:"value,omitempty" json:"value,omitempty"`
Value
*
string
`url:"value,omitempty" json:"value,omitempty"`
Protected
*
bool
`url:"protected,omitempty" json:"protected,omitempty"`
Protected
*
bool
`url:"protected,omitempty" json:"protected,omitempty"`
Masked
*
bool
`url:"masked,omitempty" json:"masked,omitempty"`
EnvironmentScope
*
string
`url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
EnvironmentScope
*
string
`url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
}
}
...
@@ -140,6 +142,7 @@ func (s *ProjectVariablesService) CreateVariable(pid interface{}, opt *CreateVar
...
@@ -140,6 +142,7 @@ func (s *ProjectVariablesService) CreateVariable(pid interface{}, opt *CreateVar
type
UpdateVariableOptions
struct
{
type
UpdateVariableOptions
struct
{
Value
*
string
`url:"value,omitempty" json:"value,omitempty"`
Value
*
string
`url:"value,omitempty" json:"value,omitempty"`
Protected
*
bool
`url:"protected,omitempty" json:"protected,omitempty"`
Protected
*
bool
`url:"protected,omitempty" json:"protected,omitempty"`
Masked
*
bool
`url:"masked,omitempty" json:"masked,omitempty"`
EnvironmentScope
*
string
`url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
EnvironmentScope
*
string
`url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
}
}
...
...
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