vault/plugins/database/postgresql/postgresql-database-plugin/main.go

28 lines
463 B
Go
Raw Permalink Normal View History

// Copyright IBM Corp. 2016, 2025
// SPDX-License-Identifier: BUSL-1.1
2017-04-13 16:48:32 -04:00
package main
import (
"log"
2017-04-13 16:48:32 -04:00
"os"
"github.com/hashicorp/vault/plugins/database/postgresql"
"github.com/hashicorp/vault/sdk/database/dbplugin/v5"
2017-04-13 16:48:32 -04:00
)
func main() {
err := Run()
2017-04-13 16:48:32 -04:00
if err != nil {
log.Println(err)
2017-04-13 16:48:32 -04:00
os.Exit(1)
}
}
// Run instantiates a PostgreSQL object, and runs the RPC server for the plugin
func Run() error {
dbplugin.ServeMultiplex(postgresql.New)
return nil
}