agentpathtemplate

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetEnsureLeadingSlashLog

func SetEnsureLeadingSlashLog(log logrus.FieldLogger)

SetEnsureLeadingSlashLog sets the logger used to report "ensure leading slash" related deprecation warnings. Called by server/server.go. This is a hack. Deprecated: remove in SPIRE 1.3

Types

type Template

type Template struct {
	// contains filtered or unexported fields
}

func MustParse

func MustParse(text string) *Template

MustParse parses an agent path template. It changes the behavior for missing keys to return an error instead of the default behavior, which renders a value that requires percent-encoding to include in a URI, which is against the SPIFFE specification. If parsing fails, the function panics.

func Parse

func Parse(text string) (*Template, error)

Parse parses an agent path template. It changes the behavior for missing keys to return an error instead of the default behavior, which renders a value that requires percent-encoding to include in a URI, which is against the SPIFFE specification.

func (*Template) Execute

func (t *Template) Execute(args interface{}) (string, error)

Jump to

Keyboard shortcuts

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