2017-04-23 01:02:57 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2017-05-03 20:01:05 +00:00
|
|
|
"log"
|
2017-04-23 01:02:57 +00:00
|
|
|
"os"
|
|
|
|
|
2017-05-02 21:40:11 +00:00
|
|
|
"github.com/hashicorp/vault/helper/pluginutil"
|
2017-04-23 01:02:57 +00:00
|
|
|
"github.com/hashicorp/vault/plugins/database/cassandra"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2017-05-02 21:40:11 +00:00
|
|
|
apiClientMeta := &pluginutil.APIClientMeta{}
|
|
|
|
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 := cassandra.Run(apiClientMeta.GetTLSConfig())
|
2017-04-23 01:02:57 +00:00
|
|
|
if err != nil {
|
2017-05-03 20:01:05 +00:00
|
|
|
log.Println(err)
|
2017-04-23 01:02:57 +00:00
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
}
|