Documentation
¶
Overview ¶
Package target provides experimental dynamic target resolution.
Index ¶
- func FuncMap() template.FuncMap
- func Stage() partial.RenderStage
- func TargetHeader(ctx ...*partial.RenderContext) string
- func TargetIs(values ...string) bool
- func TargetValue(ctx ...*partial.RenderContext) string
- func WithResolver(p *partial.Partial, resolver Resolver) *partial.Partial
- type Resolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Stage ¶
func Stage() partial.RenderStage
Stage installs target helpers and applies configured target resolvers.
func TargetHeader ¶
func TargetHeader(ctx ...*partial.RenderContext) string
TargetHeader returns the connector target header name.
go-doc:sig func() string
func TargetIs ¶
TargetIs reports whether the current target matches any provided value.
go-doc:sig func(values ...string) bool
func TargetValue ¶
func TargetValue(ctx ...*partial.RenderContext) string
TargetValue returns the current target value from the request.
go-doc:sig func() string
Types ¶
Click to show internal directories.
Click to hide internal directories.