GetFirstConditionElseValue returns the default value of the first condition that has a default
(parameter Parameter)
| 268 | |
| 269 | // GetFirstConditionElseValue returns the default value of the first condition that has a default |
| 270 | func GetFirstConditionElseValue(parameter Parameter) string { |
| 271 | for _, condition := range parameter.Conditions { |
| 272 | if condition.ElseValue != "" { |
| 273 | return condition.ElseValue |
| 274 | } |
| 275 | } |
| 276 | return "" |
| 277 | } |
| 278 | |
| 279 | // UnmarshalYAML Parses a version constraint string into go-version constraint during yaml parsing |
| 280 | func (semVer *VersionConstraints) UnmarshalYAML(unmarshal func(interface{}) error) error { |