Documentation ¶
Overview ¶
Package templates contains data-driven templates for path layouts.
Templates can use functions from the github.com/Masterminds/sprig library. All templates are cleaned with path.Clean().
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithResourceInfo ¶ added in v2.11.0
func WithResourceInfo(i *providerv1beta1.ResourceInfo, tpl string) string
WithResourceInfo renders template stings with ResourceInfo variables
Types ¶
type EmailData ¶
EmailData contains mail data split into local and domain part. It is extracted from splitting the username by @.
type ResourceData ¶ added in v2.11.0
type ResourceData struct { ResourceInfo *providerv1beta1.ResourceInfo ResourceID string }
ResourceData contains the ResourceInfo ResourceData.ResourceID is a stringified form of ResourceInfo.Id
Click to show internal directories.
Click to hide internal directories.