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

22 lines
349 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"
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{}
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)
}
}