merged commit for plugin rework, storage bucket sql and proto, storage bucket secret rewrapping, storage bucket repository
This commit is contained in:
1 parent
38723f8112
commit
a4a14fc7fc
66 files changed
+2332
-980
No files matched your search
@@ -0,0 +1,22 @@
|
||||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
package plugin
|
||||
|
||||
import (
|
||||
"github.com/hashicorp/boundary/internal/db"
|
||||
"github.com/hashicorp/boundary/internal/errors"
|
||||
)
|
||||
|
||||
// PublicId prefixes for the resources in the plugin package.
|
||||
const (
|
||||
PluginPrefix = "pl"
|
||||
)
|
||||
|
||||
func newPluginId() (string, error) {
|
||||
id, err := db.NewPublicId(PluginPrefix)
|
||||
if err != nil {
|
||||
return "", errors.WrapDeprecated(err, "plugin.newPluginId")
|
||||
}
|
||||
return id, nil
|
||||
}
|
||||
Reference in new issue
Block a user