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