Documentation ¶
Index ¶
Constants ¶
View Source
const (
// General
ConnectionsFile = "./provider/gen/connections/connections.yaml"
)
Variables ¶
View Source
var (
TypeMap = map[string]Typer{
"string": {
AttrType: "schema.StringAttribute",
TfType: "types.String",
NewAttrType: "types.StringType",
Default: "stringdefault.StaticString(\"\")",
},
"number": {
AttrType: "schema.NumberAttribute",
TfType: "types.Number",
NewAttrType: "types.NumberType",
Default: "int64default.StaticInt64(0)",
},
"bool": {
AttrType: "schema.BoolAttribute",
TfType: "types.Bool",
NewAttrType: "types.BoolType",
},
"int": {
AttrType: "schema.Int64Attribute",
TfType: "types.Int64",
NewAttrType: "types.NumberType",
Default: "int64default.StaticInt64(0)",
},
"int64": {
AttrType: "schema.Int64Attribute",
TfType: "types.Int64",
NewAttrType: "types.NumberType",
Default: "int64default.StaticInt64(0)",
},
}
)
Functions ¶
func GenerateConnections ¶
func GenerateConnections() error
func TerraformResourceName ¶
Types ¶
type Attribute ¶
type Attribute struct { Name string `yaml:"name"` NameOverride string `yaml:"name_override"` Alias string `yaml:"alias"` Sensitive bool `yaml:"sensitive"` Required bool `yaml:"required"` Optional bool `yaml:"optional"` Computed bool `yaml:"computed"` Type string `yaml:"type"` Description string `yaml:"description"` Example string `yaml:"example"` ExampleTypeOverride string `yaml:"example_type_override"` TfType string `yaml:"-"` AttrType string `yaml:"-"` NewAttrType string `yaml:"-"` AttrName string `yaml:"-"` Default 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.