18 lines
586 B
Go
18 lines
586 B
Go
package google
|
|
|
|
import (
|
|
"github.com/snyk/driftctl/enumeration/resource"
|
|
dctlresource "github.com/snyk/driftctl/pkg/resource"
|
|
)
|
|
|
|
const GoogleComputeAddressResourceType = "google_compute_address"
|
|
|
|
func initGoogleComputeAddressMetadata(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
|
|
resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleComputeAddressResourceType, func(res *resource.Resource) map[string]string {
|
|
return map[string]string{
|
|
"Name": *res.Attributes().GetString("name"),
|
|
"Address": *res.Attributes().GetString("address"),
|
|
}
|
|
})
|
|
}
|