templater

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

This file contains the implementation of a template function for retrieving variables from 'pass', the standard UNIX password manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFromPass

func GetFromPass(key string) (string, error)

func LoadAndPrepareTemplates

func LoadAndPrepareTemplates(include *[]string, exclude *[]string, c *context.Context) (output []string, err error)

Types

type PassError

type PassError struct {
	meep.TraitAutodescribing
	meep.TraitCausable
	Output string
}

type TemplateNotFoundError

type TemplateNotFoundError struct {
	meep.AllTraits
	Name string
}

Error that is caused by non-existent template files being specified

type TemplatingError

type TemplatingError struct {
	meep.TraitAutodescribing
	meep.TraitCausable
}

Error that is caused during templating, e.g. required value being absent or invalid template format

Jump to

Keyboard shortcuts

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