pluginidentityutil

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

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)

AddPluginIdentityTokenFields adds plugin identity token fields to the given field schema map.

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