package identitytpl
import "github.com/hashicorp/vault/sdk/helper/identitytpl"
Index ¶
- Constants
- Variables
- func PopulateString(p PopulateStringInput) (bool, string, error)
- type PopulateStringInput
Constants ¶
const ( ACLTemplating = iota // must be the first value for backwards compatibility JSONTemplating )
Variables ¶
var ( ErrUnbalancedTemplatingCharacter = errors.New("unbalanced templating characters") ErrNoEntityAttachedToToken = errors.New("string contains entity template directives but no entity was provided") ErrNoGroupsAttachedToToken = errors.New("string contains groups template directives but no groups were provided") ErrTemplateValueNotFound = errors.New("no value could be found for one of the template directives") )
Functions ¶
func PopulateString ¶
func PopulateString(p PopulateStringInput) (bool, string, error)
Types ¶
type PopulateStringInput ¶
type PopulateStringInput struct { String string ValidityCheckOnly bool Entity *logical.Entity Groups []*logical.Group NamespaceID string Mode int // processing mode, ACLTemplate or JSONTemplating Now time.Time // optional, defaults to current time // contains filtered or unexported fields }
Source Files ¶
- Version
- v0.18.0 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 1 month ago –
Tools for package owners.