Ejemplo n.º 1
0
func pipelineIpRoute() transformer.Pipeline {
	flagset := flag.NewFlagSet("iproute", flag.ExitOnError)
	dbRoot := flagset.String("health_leveldb_root", "/data/users/sburnett/bismark-health-leveldb", "Write leveldbs in this directory.")
	sqliteFilename := flagset.String("sqlite_filename", "/dev/null", "Write to this sqlite database.")
	flagset.Parse(flag.Args()[1:])
	return health.IpRoutePipeline(store.NewLevelDbManager(*dbRoot), store.NewSqliteManager(*sqliteFilename))
}
Ejemplo n.º 2
0
func pipelinePackages() transformer.Pipeline {
	flagset := flag.NewFlagSet("packages", flag.ExitOnError)
	dbRoot := flagset.String("health_leveldb_root", "/data/users/sburnett/bismark-health-leveldb", "Write leveldbs in this directory.")
	csvOutput := flagset.String("csv_output", "/dev/null", "Write reboots to a CSV file in this directory.")
	sqliteFilename := flagset.String("sqlite_filename", "/dev/null", "Write to this sqlite database.")
	flagset.Parse(flag.Args()[1:])
	return health.PackagesPipeline(store.NewLevelDbManager(*dbRoot), store.NewCsvFileManager(*csvOutput), store.NewSqliteManager(*sqliteFilename))
}