2017-07-07 20:11:23 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
|
2019-04-12 21:54:35 +00:00
|
|
|
"github.com/hashicorp/vault/sdk/helper/pluginutil"
|
2017-07-07 20:11:23 +00:00
|
|
|
"github.com/hashicorp/vault/plugins/database/hana"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2019-04-12 21:54:35 +00:00
|
|
|
apiClientMeta := &api.APIClientMeta{}
|
2017-07-07 20:11:23 +00:00
|
|
|
flags := apiClientMeta.FlagSet()
|
2017-09-07 20:30:00 +00:00
|
|
|
flags.Parse(os.Args[1:])
|
2017-07-07 20:11:23 +00:00
|
|
|
|
|
|
|
err := hana.Run(apiClientMeta.GetTLSConfig())
|
|
|
|
if err != nil {
|
|
|
|
log.Println(err)
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
}
|