22 lines
358 B
Go
22 lines
358 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
"os"
|
||
|
|
||
|
"github.com/hashicorp/vault/helper/pluginutil"
|
||
|
"github.com/hashicorp/vault/plugins/database/hana"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
apiClientMeta := &pluginutil.APIClientMeta{}
|
||
|
flags := apiClientMeta.FlagSet()
|
||
|
flags.Parse(os.Args)
|
||
|
|
||
|
err := hana.Run(apiClientMeta.GetTLSConfig())
|
||
|
if err != nil {
|
||
|
log.Println(err)
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
}
|