Documentation ¶
Index ¶
- Constants
- func ApplyBinder(bm []FieldBinder, v reflect.Value, do func(key string, v interface{}) error) error
- func ApplyBinderInput[T any](bm []FieldBinder, get func(k string) (interface{}, bool)) (T, error)
- func ApplyBinderInputResourceData[T any](bm []FieldBinder, d *schema.ResourceData) (T, error)
- func ApplyBinderMap(bm []FieldBinder, v reflect.Value) (map[string]interface{}, error)
- func ApplyBinderResourceData(bm []FieldBinder, d *schema.ResourceData, v interface{}) error
- func Provider() *schema.Provider
- func ReflectSchema(v interface{}, cfg Cfg) (map[string]*schema.Schema, []FieldBinder, []FieldBinder)
- func ToSnakeCase(field reflect.StructField) string
- type BinderFunc
- type Cfg
- type FieldBinder
Constants ¶
View Source
const SchemaStruct = schema.ValueType(-1)
Variables ¶
This section is empty.
Functions ¶
func ApplyBinder ¶
func ApplyBinderInput ¶
func ApplyBinderInput[T any](bm []FieldBinder, get func(k string) (interface{}, bool)) (T, error)
func ApplyBinderInputResourceData ¶
func ApplyBinderInputResourceData[T any](bm []FieldBinder, d *schema.ResourceData) (T, error)
func ApplyBinderMap ¶
func ApplyBinderMap(bm []FieldBinder, v reflect.Value) (map[string]interface{}, error)
func ApplyBinderResourceData ¶
func ApplyBinderResourceData(bm []FieldBinder, d *schema.ResourceData, v interface{}) error
func ReflectSchema ¶
func ReflectSchema(v interface{}, cfg Cfg) (map[string]*schema.Schema, []FieldBinder, []FieldBinder)
func ToSnakeCase ¶
func ToSnakeCase(field reflect.StructField) string
Types ¶
type BinderFunc ¶
type FieldBinder ¶
type FieldBinder struct { MapKey string FieldName string Func BinderFunc }
Source Files ¶
- data_source_gateway.go
- data_source_gateway_bgp.go
- data_source_gateway_interface.go
- data_source_gateway_nat.go
- data_source_gateway_policy.go
- data_source_gateway_staticroute.go
- data_source_tenant.go
- data_source_user.go
- provider.go
- reflect.go
- resource_gateway.go
- resource_gateway_activate.go
- resource_gateway_bgp.go
- resource_gateway_interface.go
- resource_gateway_nat.go
- resource_gateway_staticroute.go
- resource_policy.go
- resource_tenant.go
- resource_user.go
Click to show internal directories.
Click to hide internal directories.