package parse
import "github.com/gravitational/teleport/lib/utils/parse"
Index ¶
Functions ¶
func IsRoleVariable ¶
IsRoleVariable checks if the passed in string matches the variable pattern {{external.foo}} or {{internal.bar}}. If it does, it returns the variable prefix and the variable name. In the previous example this would be "external" or "internal" for the variable prefix and "foo" or "bar" for the variable name. If no variable pattern is found, trace.NotFound is returned.
Source Files ¶
- Version
- v3.2.17+incompatible (latest)
- Published
- Feb 4, 2021
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 week ago –
Tools for package owners.