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-12 21:54:35 +00:00
|
|
|
"github.com/hashicorp/vault/sdk/helper/pluginutil"
|
2017-04-13 20:48:32 +00:00
|
|
|
"github.com/hashicorp/vault/plugins/database/mssql"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2019-04-12 21:54:35 +00:00
|
|
|
apiClientMeta := &api.APIClientMeta{}
|
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 := mssql.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)
|
|
|
|
}
|
|
|
|
}
|