open-vault/plugins/database/mysql/mysql-database-plugin/main.go

22 lines
364 B
Go
Raw Normal View History

2017-04-13 20:48:32 +00:00
package main
import (
"log"
2017-04-13 20:48:32 +00:00
"os"
"github.com/hashicorp/vault/helper/pluginutil"
2017-04-13 20:48:32 +00:00
"github.com/hashicorp/vault/plugins/database/mysql"
)
func main() {
apiClientMeta := &pluginutil.APIClientMeta{}
flags := apiClientMeta.FlagSet()
flags.Parse(os.Args[1:])
err := mysql.Run(apiClientMeta.GetTLSConfig())
2017-04-13 20:48:32 +00:00
if err != nil {
log.Println(err)
2017-04-13 20:48:32 +00:00
os.Exit(1)
}
}