package
Version:
v2.10.0
Opens a new window with list of versions in this module.
Published: Sep 9, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
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().
WithSpacePropertiesAndUser generates a layout based on user data and a space type.
WithUser generates a layout based on user data.
EmailData contains mail data
split into local and domain part.
It is extracted from splitting the username by @.
SpaceData contains the templace placeholders for a space.
For example {{.SpaceName}} {{.SpaceType}} or {{.User.Id.OpaqueId}}
UserData contains the template placeholders for a user.
For example {{.Username}} or {{.Id.Idp}}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.