fix vendor
This commit is contained in:
parent
949ea3553f
commit
a540f8fa00
2 changed files with 34 additions and 0 deletions
28
vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/types/bool.go
generated
vendored
Normal file
28
vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/types/bool.go
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
package types
|
||||||
|
|
||||||
|
import "strconv"
|
||||||
|
|
||||||
|
// BoolTrue is a custom Yaml boolean type that defaults to true.
|
||||||
|
type BoolTrue struct {
|
||||||
|
value bool
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnmarshalYAML implements custom Yaml unmarshaling.
|
||||||
|
func (b *BoolTrue) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||||
|
var s string
|
||||||
|
err := unmarshal(&s)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
value, err := strconv.ParseBool(s)
|
||||||
|
if err == nil {
|
||||||
|
b.value = !value
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bool returns the bool value.
|
||||||
|
func (b BoolTrue) Bool() bool {
|
||||||
|
return !b.value
|
||||||
|
}
|
6
vendor/vendor.json
vendored
6
vendor/vendor.json
vendored
|
@ -83,6 +83,12 @@
|
||||||
"revision": "5cc866493ddb8e321050e061a926a9af0080d4de",
|
"revision": "5cc866493ddb8e321050e061a926a9af0080d4de",
|
||||||
"revisionTime": "2017-05-06T00:17:19Z"
|
"revisionTime": "2017-05-06T00:17:19Z"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"checksumSHA1": "L7Q5qJmPITNmvFEEaj5MPwCWFRk=",
|
||||||
|
"path": "github.com/cncd/pipeline/pipeline/frontend/yaml/types",
|
||||||
|
"revision": "5cc866493ddb8e321050e061a926a9af0080d4de",
|
||||||
|
"revisionTime": "2017-05-06T00:17:19Z"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "2/3f3oNmxXy5kcrRLCFa24Oc9O4=",
|
"checksumSHA1": "2/3f3oNmxXy5kcrRLCFa24Oc9O4=",
|
||||||
"path": "github.com/cncd/pipeline/pipeline/interrupt",
|
"path": "github.com/cncd/pipeline/pipeline/interrupt",
|
||||||
|
|
Loading…
Reference in a new issue