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

22 lines
361 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/sdk/helper/pluginutil"
2017-04-13 20:48:32 +00:00
"github.com/hashicorp/vault/plugins/database/mssql"
)
func main() {
apiClientMeta := &api.APIClientMeta{}
flags := apiClientMeta.FlagSet()
flags.Parse(os.Args[1:])
err := mssql.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)
}
}