tokftemplating

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVarHandler

type EnvVarHandler struct {
	// contains filtered or unexported fields
}

func NewEnvVarHandler

func NewEnvVarHandler(prefixes []string) *EnvVarHandler

func (*EnvVarHandler) GetPrefixes

func (h *EnvVarHandler) GetPrefixes() []string

func (*EnvVarHandler) HasPrefix

func (h *EnvVarHandler) HasPrefix(key string) bool

type InfoCommand

type InfoCommand struct{}

func NewInfoCommand

func NewInfoCommand() *InfoCommand

func (*InfoCommand) Show

func (c *InfoCommand) Show(configPath, dbPath string, filterCount int, version string) string

type PermissionEngine

type PermissionEngine struct {
	// contains filtered or unexported fields
}

func NewPermissionEngine

func NewPermissionEngine() *PermissionEngine

func (*PermissionEngine) Allow

func (e *PermissionEngine) Allow(command string)

func (*PermissionEngine) Deny

func (e *PermissionEngine) Deny(command string)

func (*PermissionEngine) IsAllowed

func (e *PermissionEngine) IsAllowed(command string) bool

func (*PermissionEngine) ListAllowed

func (e *PermissionEngine) ListAllowed() []string

type TemplateEngine

type TemplateEngine struct{}

func NewTemplateEngine

func NewTemplateEngine() *TemplateEngine

func (*TemplateEngine) CarryForward

func (e *TemplateEngine) CarryForward(data map[string]interface{}, keys []string) map[string]interface{}

func (*TemplateEngine) ChildrenAs

func (e *TemplateEngine) ChildrenAs(data map[string]interface{}, key, delimiter string) string

func (*TemplateEngine) Render

func (e *TemplateEngine) Render(template string, data map[string]interface{}) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL