driftctl/enumeration/terraform/resource_reader.go

18 lines
322 B
Go

package terraform
import (
"github.com/snyk/driftctl/enumeration/resource"
"github.com/zclconf/go-cty/cty"
)
type ResourceReader interface {
ReadResource(args ReadResourceArgs) (*cty.Value, error)
}
type ReadResourceArgs struct {
Ty resource.ResourceType
ID string
Attributes map[string]string
}