17 lines
517 B
Go
17 lines
517 B
Go
package google
|
|
|
|
import (
|
|
"github.com/snyk/driftctl/enumeration/resource"
|
|
dctlresource "github.com/snyk/driftctl/pkg/resource"
|
|
)
|
|
|
|
const GoogleComputeDiskResourceType = "google_compute_disk"
|
|
|
|
func initGoogleComputeDiskMetadata(resourceSchemaRepository dctlresource.SchemaRepositoryInterface) {
|
|
resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleComputeDiskResourceType, func(res *resource.Resource) map[string]string {
|
|
return map[string]string{
|
|
"Name": *res.Attributes().GetString("name"),
|
|
}
|
|
})
|
|
}
|