mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
Stub updates for Ent (#30890)
This commit is contained in:
parent
dad218cba2
commit
9fe8945005
4 changed files with 24 additions and 1 deletions
3
changelog/30890.txt
Normal file
3
changelog/30890.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:change
|
||||
logical/system: add ent stub for plugin catalog handling
|
||||
```
|
||||
|
|
@ -203,7 +203,7 @@ func NewSystemBackend(core *Core, logger log.Logger, config *logical.BackendConf
|
|||
b.Backend.Paths = append(b.Backend.Paths, b.sealPaths()...)
|
||||
b.Backend.Paths = append(b.Backend.Paths, b.statusPaths()...)
|
||||
b.Backend.Paths = append(b.Backend.Paths, b.pluginsCatalogListPaths()...)
|
||||
b.Backend.Paths = append(b.Backend.Paths, b.pluginsCatalogCRUDPath())
|
||||
b.Backend.Paths = append(b.Backend.Paths, entWrappedPluginsCRUDPath(b)...)
|
||||
b.Backend.Paths = append(b.Backend.Paths, b.pluginsCatalogPinsListPath())
|
||||
b.Backend.Paths = append(b.Backend.Paths, b.pluginsCatalogPinsCRUDPath())
|
||||
b.Backend.Paths = append(b.Backend.Paths, b.pluginsReloadPath())
|
||||
|
|
|
|||
|
|
@ -31,3 +31,7 @@ func (s *SystemBackend) makeSnapshotSource(ctx context.Context, _ *framework.Fie
|
|||
}
|
||||
return snapshots.NewManualSnapshotSource(body), nil
|
||||
}
|
||||
|
||||
func entWrappedPluginsCRUDPath(b *SystemBackend) []*framework.Path {
|
||||
return []*framework.Path{b.pluginsCatalogCRUDPath()}
|
||||
}
|
||||
|
|
|
|||
16
vault/plugincatalog/plugin_catalog_stubs_oss.go
Normal file
16
vault/plugincatalog/plugin_catalog_stubs_oss.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Copyright (c) HashiCorp, Inc.
|
||||
// SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
//go:build !enterprise
|
||||
|
||||
package plugincatalog
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/hashicorp/vault/sdk/helper/pluginutil"
|
||||
)
|
||||
|
||||
func (c *PluginCatalog) entPrepareDownloadedPlugin(ctx context.Context, plugin pluginutil.SetPluginInput) (string, string, error) {
|
||||
return "", "", nil
|
||||
}
|
||||
Loading…
Reference in a new issue