mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Docs: Implementing the plugin version interface (#19606)
This commit is contained in:
@@ -100,6 +100,19 @@ be omitted.
|
||||
|
||||
[api_addr]: /vault/docs/configuration#api_addr
|
||||
|
||||
## Leveraging plugin versioning
|
||||
|
||||
@include 'plugin-versioning.mdx'
|
||||
|
||||
Auth and secrets plugins based on `framework.Backend` from the SDK should set the
|
||||
[`RunningVersion`](https://github.com/hashicorp/vault/blob/sdk/v0.6.0/sdk/framework/backend.go#L95-L96)
|
||||
variable, and the framework will implement the version interface.
|
||||
|
||||
Database plugins have a smaller API than `framework.Backend` exposes, and should
|
||||
instead implement the
|
||||
[`PluginVersioner`](https://github.com/hashicorp/vault/blob/sdk/v0.6.0/sdk/logical/logical.go#L150-L154)
|
||||
interface directly.
|
||||
|
||||
## Building a Plugin from Source
|
||||
|
||||
To build a plugin from source, first navigate to the location holding the
|
||||
|
||||
Reference in New Issue
Block a user