mirror of https://github.com/hashicorp/terraform
parent
5c8fd0b147
commit
c85859f26d
@ -0,0 +1,30 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
package providers
|
||||
|
||||
import (
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
|
||||
"github.com/hashicorp/terraform/internal/configs/configschema"
|
||||
)
|
||||
|
||||
type FunctionDecl struct {
|
||||
Parameters []FunctionParam
|
||||
VariadicParameter *FunctionParam
|
||||
ReturnType cty.Type
|
||||
|
||||
Description string
|
||||
DescriptionKind configschema.StringKind
|
||||
}
|
||||
|
||||
type FunctionParam struct {
|
||||
Name string // Only for documentation and UI, because arguments are positional
|
||||
Type cty.Type
|
||||
|
||||
Nullable bool
|
||||
AllowUnknownValues bool
|
||||
|
||||
Description string
|
||||
DescriptionKind configschema.StringKind
|
||||
}
|
||||
Loading…
Reference in new issue