pluginidentityutil

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2026 License: MPL-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPluginWorkloadIdentityUnsupported = errors.New("plugin workload identity not supported in Vault community edition")

Functions

func AddPluginIdentityTokenFields

func AddPluginIdentityTokenFields(m map[string]*framework.FieldSchema)

stubbing original function for compatibility AddPluginIdentityTokenFieldsWithGroup should be used directly future utils that define fields should include a group parameter

func AddPluginIdentityTokenFieldsWithGroup added in v0.19.0

func AddPluginIdentityTokenFieldsWithGroup(m map[string]*framework.FieldSchema, group string)

AddPluginIdentityTokenFields adds plugin identity token fields to the given field schema map the fields are associated to the provided display attribute group

Types

type PluginIdentityTokenParams

type PluginIdentityTokenParams struct {
	// IdentityTokenTTL is the duration that tokens will be valid for
	IdentityTokenTTL time.Duration `json:"identity_token_ttl"`
	// IdentityTokenAudience identifies the recipient of the token
	IdentityTokenAudience string `json:"identity_token_audience"`
}

PluginIdentityTokenParams contains a set of common parameters that plugins can use for setting plugin identity token behavior.

func (*PluginIdentityTokenParams) ParsePluginIdentityTokenFields

func (p *PluginIdentityTokenParams) ParsePluginIdentityTokenFields(d *framework.FieldData) error

ParsePluginIdentityTokenFields provides common field parsing to embedding structs.

func (*PluginIdentityTokenParams) PopulatePluginIdentityTokenData

func (p *PluginIdentityTokenParams) PopulatePluginIdentityTokenData(m map[string]interface{})

PopulatePluginIdentityTokenData adds PluginIdentityTokenParams info into the given map.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL