Documentation

Index

Constants

View Source
const (
	ACLTemplating = iota // must be the first value for backwards compatibility
	JSONTemplating
)

Variables

View Source
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