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

22 lines
372 B
Go
Raw Normal View History

2017-04-23 01:02:57 +00:00
package main
import (
"log"
2017-04-23 01:02:57 +00:00
"os"
"github.com/hashicorp/vault/helper/pluginutil"
2017-04-23 01:02:57 +00:00
"github.com/hashicorp/vault/plugins/database/cassandra"
)
func main() {
apiClientMeta := &pluginutil.APIClientMeta{}
flags := apiClientMeta.FlagSet()
flags.Parse(os.Args[1:])
err := cassandra.Run(apiClientMeta.GetTLSConfig())
2017-04-23 01:02:57 +00:00
if err != nil {
log.Println(err)
2017-04-23 01:02:57 +00:00
os.Exit(1)
}
}