Documentation ¶
Index ¶
Constants ¶
View Source
const (
// General
ConnectionsFile = "./provider/gen/connections/connections.yaml"
)
Variables ¶
View Source
var ( TypeMap = map[string]Typer{ "string": { AttrType: types.StringType.String(), TfType: "types.String", }, "number": { AttrType: types.NumberType.String(), TfType: "types.Number", }, "bool": { AttrType: types.BoolType.String(), TfType: "types.Bool", }, "int": { AttrType: types.Int64Type.String(), TfType: "types.Int64", }, "int64": { AttrType: types.Int64Type.String(), TfType: "types.Int64", }, } )
Functions ¶
func GenerateConnections ¶
func GenerateConnections() error
func TerraformResourceName ¶
Types ¶
type Attribute ¶
type Attribute struct { Name string `yaml:"name"` Alias string `yaml:"alias"` Sensitive bool `yaml:"sensitive"` Required bool `yaml:"required"` Optional bool `yaml:"optional"` Type string `yaml:"type"` Description string `yaml:"description"` Example string `yaml:"example"` ExampleTypeOverride string `yaml:"example_type_override"` TfType string `yaml:"-"` AttrType string `yaml:"-"` AttrName string `yaml:"-"` }
type Connection ¶
type Connections ¶
type Connections struct {
Connections []Connection `yaml:"connections"`
}
type Importable ¶
Click to show internal directories.
Click to hide internal directories.