func (t *T) Run(configuration model.Config) (items []model.Item, err error) {
	log.GetLogger().Info("run windows registry gatherer begin")
	var result model.Item
	currentTime := time.Now().UTC()
	captureTime := currentTime.Format(time.RFC3339)
	var data []model.RegistryData
	data, err = collectData(configuration)
	result = model.Item{
		Name:          t.Name(),
		SchemaVersion: SchemaVersionOfRegistryGatherer,
		Content:       data,
		CaptureTime:   captureTime,
	}
	items = append(items, result)
	log.GetLogger().Infof("run windows registry gatherer end, got %d registry", len(data))
	return
}
Run executes Registry gatherer and returns list of inventory.Item comprising of registry data
package registry
import (
	"time"
	"github.com/aliyun/aliyun_assist_client/agent/inventory/model"
	"github.com/aliyun/aliyun_assist_client/agent/log"
)
const (
	GathererName = "ACS:WindowsRegistry"
	SchemaVersionOfRegistryGatherer = "1.0"
)
type T struct{}
func Gatherer() *T {
	return new(T)
}
var collectData = collectRegistryData
func (t *T) Name() string {
	return GathererName
}