func Zone(resource string) string {
	return extractZone.FindStringSubmatch(resource)[1]
}
Zone returns the zone of the instance.
package sha
import (
	"regexp"
	"strings"
)
const resourcePrefix = "//storage.googleapis.com/"
var (
	extractZone = regexp.MustCompile(`/zones/(.+)/instances`)
	extractInstance = regexp.MustCompile(`/instances/(.+)`)
	extractDataset = regexp.MustCompile(`/datasets/(.+)`)
	extractFirewallID = regexp.MustCompile(`/global/firewalls/(.*)$`)
	extractClusterZone = regexp.MustCompile(`/zones/(.+)/clusters`)
	extractClusterID = regexp.MustCompile(`/clusters/(.+)`)
	extractOrganizationID = regexp.MustCompile(`organizations/(.+)/sources`)
)
type GenericFindingState interface {
	GetState() string
}
func IgnoreFinding(finding GenericFindingState) bool {
	return finding.GetState() != "ACTIVE"
}