Commit b1a597f1 authored by Julius Noack's avatar Julius Noack

add masked variable support for gitlab projects and groups

parent daf94410
...@@ -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 {
......
...@@ -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"`
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment