Versions in this module Expand all Collapse all v1 v1.3.3 Oct 28, 2024 Changes in this version + const PluginManagerLocal + var NameGenerator = func() string + func BuiltinBackend() starlark.Value + func BuiltinEvaluate(predeclared starlark.StringDict) starlark.Value + func BuiltinFunctionAttribute() starlark.Value + func BuiltinHCL() starlark.Value + func BuiltinProvisioner() starlark.Value + func BuiltinRef() starlark.Value + func BuiltinValidate() starlark.Value + func MakeBackend(t *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error) + func MakeProvider(t *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error) + func MakeProvisioner(t *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error) + func MakeResource(c *ResourceCollection, t *starlark.Thread, _ *starlark.Builtin, ...) (starlark.Value, error) + type Attribute struct + func NewAttribute(r *Resource, t cty.Type, name string) *Attribute + func NewAttributeWithPath(r *Resource, t cty.Type, name, path string) *Attribute + func (c *Attribute) Attr(name string) (starlark.Value, error) + func (c *Attribute) AttrNames() []string + func (c *Attribute) Get(key starlark.Value) (v starlark.Value, found bool, err error) + func (c *Attribute) Index(i int) starlark.Value + func (c *Attribute) InnerType() *Type + func (c *Attribute) Len() int + func (c *Attribute) String() string + func (c *Attribute) Type() string + type Backend struct + func NewBackend(pm *terraform.PluginManager, typ string, cs starlark.CallStack) (*Backend, error) + func (b *Backend) Attr(name string) (starlark.Value, error) + func (b *Backend) AttrNames() []string + func (b *Backend) String() string + func (b *Backend) Type() string + func (s *Backend) ToHCL(b *hclwrite.Body) + type Dict struct + func NewDict() *Dict + func (d *Dict) Validate() (errs ValidationErrors) + func (s *Dict) ToHCL(b *hclwrite.Body) + type HCLCompatible interface + ToHCL func(b *hclwrite.Body) + type Kind string + const BackendKind + const DataSourceKind + const NestedKind + const ProviderKind + const ProvisionerKind + const ResourceKind + func (k Kind) IsNamed() bool + func (k Kind) IsProviderRelated() bool + type NamedValue struct + Name string + type Provider struct + func NewProvider(pm *terraform.PluginManager, typ, version, name string, cs starlark.CallStack) (*Provider, error) + func (p *Provider) Attr(name string) (starlark.Value, error) + func (p *Provider) AttrNames() []string + func (p *Provider) CompareSameType(op syntax.Token, yv starlark.Value, depth int) (bool, error) + func (p *Provider) String() string + func (p *Provider) Type() string + func (p *Provider) Validate() (errs ValidationErrors) + func (s *Provider) ToHCL(b *hclwrite.Body) + type ProviderCollection struct + func NewProviderCollection(pm *terraform.PluginManager) *ProviderCollection + func (c *ProviderCollection) CallInternal(t *starlark.Thread, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error) + func (c *ProviderCollection) Freeze() + func (c *ProviderCollection) Hash() (uint32, error) + func (c *ProviderCollection) Name() string + func (c *ProviderCollection) Truth() starlark.Bool + func (c *ProviderCollection) Type() string + type Provisioner struct + func NewProvisioner(pm *terraform.PluginManager, typ string, cs starlark.CallStack) (*Provisioner, error) + func (p *Provisioner) String() string + func (p *Provisioner) Type() string + func (s *Provisioner) ToHCL(b *hclwrite.Body) + type Resource struct + func NewResource(name, typ string, k Kind, b *configschema.Block, provider *Provider, ...) *Resource + func (r *Resource) Attr(name string) (starlark.Value, error) + func (r *Resource) AttrNames() []string + func (r *Resource) CallStack() starlark.CallStack + func (r *Resource) CompareSameType(op syntax.Token, yv starlark.Value, depth int) (bool, error) + func (r *Resource) Freeze() + func (r *Resource) Hash() (uint32, error) + func (r *Resource) Name() string + func (r *Resource) Path() string + func (r *Resource) SetField(name string, v starlark.Value) error + func (r *Resource) String() string + func (r *Resource) ToHCL(b *hclwrite.Body) + func (r *Resource) Truth() starlark.Bool + func (r *Resource) Type() string + func (r *Resource) Validate() ValidationErrors + type ResourceCollection struct + func NewNestedResourceCollection(typ string, block *configschema.NestedBlock, provider *Provider, ...) *ResourceCollection + func NewResourceCollection(typ string, k Kind, block *configschema.Block, provider *Provider, ...) *ResourceCollection + func (c *ResourceCollection) Attr(name string) (starlark.Value, error) + func (c *ResourceCollection) AttrNames() []string + func (c *ResourceCollection) CallInternal(t *starlark.Thread, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error) + func (c *ResourceCollection) Freeze() + func (c *ResourceCollection) Hash() (uint32, error) + func (c *ResourceCollection) LoadList(l *starlark.List) error + func (c *ResourceCollection) Name() string + func (c *ResourceCollection) Path() string + func (c *ResourceCollection) String() string + func (c *ResourceCollection) ToHCL(b *hclwrite.Body) + func (c *ResourceCollection) Truth() starlark.Bool + func (c *ResourceCollection) Type() string + func (c *ResourceCollection) Validate() (errs ValidationErrors) + type ResourceCollectionGroup struct + func NewResourceCollectionGroup(p *Provider, k Kind, schema map[string]providers.Schema) *ResourceCollectionGroup + func (*ResourceCollectionGroup) Freeze() + func (*ResourceCollectionGroup) Truth() starlark.Bool + func (g *ResourceCollectionGroup) Attr(name string) (starlark.Value, error) + func (g *ResourceCollectionGroup) AttrNames() []string + func (g *ResourceCollectionGroup) Hash() (uint32, error) + func (g *ResourceCollectionGroup) Path() string + func (g *ResourceCollectionGroup) String() string + func (g *ResourceCollectionGroup) Type() string + func (g *ResourceCollectionGroup) Validate() (errs ValidationErrors) + func (t *ResourceCollectionGroup) ToHCL(b *hclwrite.Body) + type State struct + func NewState(pm *terraform.PluginManager, module string, state *states.State) (*State, error) + type Terraform struct + func NewTerraform(pm *terraform.PluginManager) *Terraform + func (s *Terraform) ToHCL(b *hclwrite.Body) + func (t *Terraform) Attr(name string) (starlark.Value, error) + func (t *Terraform) AttrNames() []string + func (t *Terraform) Freeze() + func (t *Terraform) Hash() (uint32, error) + func (t *Terraform) SetField(name string, val starlark.Value) error + func (t *Terraform) String() string + func (t *Terraform) Truth() starlark.Bool + func (t *Terraform) Type() string + func (t *Terraform) Validate() (errs ValidationErrors) + type Type struct + func MustTypeFromCty(typ cty.Type) *Type + func MustTypeFromStarlark(typ string) *Type + func NewTypeFromCty(typ cty.Type) (*Type, error) + func NewTypeFromStarlark(typ string) (*Type, error) + func (t *Type) Cty() cty.Type + func (t *Type) Starlark() string + func (t *Type) Validate(v starlark.Value) error + type Validabler interface + Validate func() ValidationErrors + type ValidationError struct + CallStack starlark.CallStack + Msg string + func NewValidationError(cs starlark.CallStack, format string, args ...interface{}) *ValidationError + func (e *ValidationError) Error() string + func (e *ValidationError) Value() starlark.Value + type ValidationErrors []*ValidationError + func (e ValidationErrors) Value() starlark.Value + type Value struct + func MustValue(v starlark.Value) *Value + func NewValue(v starlark.Value) (*Value, error) + func (v *Value) Cty() cty.Value + func (v *Value) Hash() (uint32, error) + func (v *Value) Interface() interface{} + func (v *Value) Starlark() starlark.Value + func (v *Value) Type() *Type + type Values struct + func NewValues() *Values + func (a *Values) Set(name string, v *Value) *NamedValue + func (a Values) Cty(schema *configschema.Block) cty.Value + func (a Values) ForEach(cb func(*NamedValue) error) error + func (a Values) Get(name string) *NamedValue + func (a Values) Has(name string) bool + func (a Values) Hash() (uint32, error) + func (a Values) Len() int + func (a Values) List() []*NamedValue + func (a Values) ToStringDict(d starlark.StringDict)