mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-23 11:41:24 +01:00
* plugins: Add Deprecation Status to builtinRegistry * changelog: Deprecation Status method
30 lines
577 B
Go
30 lines
577 B
Go
package consts
|
|
|
|
// DeprecationStatus represents the current deprecation state for builtins
|
|
type DeprecationStatus uint32
|
|
|
|
// These are the states of deprecation for builtin plugins
|
|
const (
|
|
Supported = iota
|
|
Deprecated
|
|
PendingRemoval
|
|
Removed
|
|
Unknown
|
|
)
|
|
|
|
// String returns the string representation of a builtin deprecation status
|
|
func (s DeprecationStatus) String() string {
|
|
switch s {
|
|
case Supported:
|
|
return "supported"
|
|
case Deprecated:
|
|
return "deprecated"
|
|
case PendingRemoval:
|
|
return "pending removal"
|
|
case Removed:
|
|
return "removed"
|
|
default:
|
|
return ""
|
|
}
|
|
}
|