mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-08 15:13:56 -06:00
23 lines
485 B
Go
23 lines
485 B
Go
|
package terraform
|
||
|
|
||
|
// EvalInstanceInfo is an EvalNode implementation that fills in the
|
||
|
// InstanceInfo as much as it can.
|
||
|
type EvalInstanceInfo struct {
|
||
|
Info *InstanceInfo
|
||
|
}
|
||
|
|
||
|
func (n *EvalInstanceInfo) Args() ([]EvalNode, []EvalType) {
|
||
|
return nil, nil
|
||
|
}
|
||
|
|
||
|
// TODO: test
|
||
|
func (n *EvalInstanceInfo) Eval(
|
||
|
ctx EvalContext, args []interface{}) (interface{}, error) {
|
||
|
n.Info.ModulePath = ctx.Path()
|
||
|
return nil, nil
|
||
|
}
|
||
|
|
||
|
func (n *EvalInstanceInfo) Type() EvalType {
|
||
|
return EvalTypeNull
|
||
|
}
|