2017-05-11 21:38:54 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/hashicorp/vault/helper/pluginutil"
|
|
|
|
"github.com/hashicorp/vault/plugins/database/mongodb"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
apiClientMeta := &pluginutil.APIClientMeta{}
|
|
|
|
flags := apiClientMeta.FlagSet()
|
2017-09-07 20:30:00 +00:00
|
|
|
flags.Parse(os.Args[1:])
|
2017-05-11 21:38:54 +00:00
|
|
|
|
|
|
|
err := mongodb.Run(apiClientMeta.GetTLSConfig())
|
|
|
|
if err != nil {
|
|
|
|
log.Println(err)
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
}
|