2019-01-09 01:26:16 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
|
2019-04-13 02:14:50 +00:00
|
|
|
"github.com/hashicorp/vault/api"
|
2019-01-09 01:26:16 +00:00
|
|
|
"github.com/hashicorp/vault/plugins/database/influxdb"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2019-04-15 18:10:07 +00:00
|
|
|
apiClientMeta := &api.PluginAPIClientMeta{}
|
2019-01-09 01:26:16 +00:00
|
|
|
flags := apiClientMeta.FlagSet()
|
|
|
|
flags.Parse(os.Args[1:])
|
|
|
|
|
|
|
|
err := influxdb.Run(apiClientMeta.GetTLSConfig())
|
|
|
|
if err != nil {
|
|
|
|
log.Println(err)
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
}
|