agentpathtemplate

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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