mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update github.com/hashicorp/hcl/v2 to v2.19.1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
12
vendor/github.com/zclconf/go-cty/cty/function/stdlib/bool.go
generated
vendored
12
vendor/github.com/zclconf/go-cty/cty/function/stdlib/bool.go
generated
vendored
@ -6,6 +6,7 @@ import (
|
||||
)
|
||||
|
||||
var NotFunc = function.New(&function.Spec{
|
||||
Description: `Applies the logical NOT operation to the given boolean value.`,
|
||||
Params: []function.Parameter{
|
||||
{
|
||||
Name: "val",
|
||||
@ -14,13 +15,15 @@ var NotFunc = function.New(&function.Spec{
|
||||
AllowMarked: true,
|
||||
},
|
||||
},
|
||||
Type: function.StaticReturnType(cty.Bool),
|
||||
Type: function.StaticReturnType(cty.Bool),
|
||||
RefineResult: refineNonNull,
|
||||
Impl: func(args []cty.Value, retType cty.Type) (cty.Value, error) {
|
||||
return args[0].Not(), nil
|
||||
},
|
||||
})
|
||||
|
||||
var AndFunc = function.New(&function.Spec{
|
||||
Description: `Applies the logical AND operation to the given boolean values.`,
|
||||
Params: []function.Parameter{
|
||||
{
|
||||
Name: "a",
|
||||
@ -35,13 +38,15 @@ var AndFunc = function.New(&function.Spec{
|
||||
AllowMarked: true,
|
||||
},
|
||||
},
|
||||
Type: function.StaticReturnType(cty.Bool),
|
||||
Type: function.StaticReturnType(cty.Bool),
|
||||
RefineResult: refineNonNull,
|
||||
Impl: func(args []cty.Value, retType cty.Type) (cty.Value, error) {
|
||||
return args[0].And(args[1]), nil
|
||||
},
|
||||
})
|
||||
|
||||
var OrFunc = function.New(&function.Spec{
|
||||
Description: `Applies the logical OR operation to the given boolean values.`,
|
||||
Params: []function.Parameter{
|
||||
{
|
||||
Name: "a",
|
||||
@ -56,7 +61,8 @@ var OrFunc = function.New(&function.Spec{
|
||||
AllowMarked: true,
|
||||
},
|
||||
},
|
||||
Type: function.StaticReturnType(cty.Bool),
|
||||
Type: function.StaticReturnType(cty.Bool),
|
||||
RefineResult: refineNonNull,
|
||||
Impl: func(args []cty.Value, retType cty.Type) (cty.Value, error) {
|
||||
return args[0].Or(args[1]), nil
|
||||
},
|
||||
|
Reference in New Issue
Block a user