2022-03-16 17:04:07 -04:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-02-02 17:15:17 -08:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
2022-03-16 17:04:07 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
|
|
|
|
"os"
|
|
|
|
|
|
|
|
|
|
gkwp "github.com/hashicorp/go-kms-wrapping/plugin/v2"
|
|
|
|
|
"github.com/hashicorp/go-kms-wrapping/wrappers/ocikms/v2"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
if err := gkwp.ServePlugin(ocikms.NewWrapper()); err != nil {
|
|
|
|
|
fmt.Println("Error serving plugin", err)
|
|
|
|
|
os.Exit(1)
|
|
|
|
|
}
|
|
|
|
|
os.Exit(0)
|
|
|
|
|
}
|