templater

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

This file contains the implementation of a template function for retrieving IP addresses from DNS

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 GetIPsFromDNS added in v1.3.0

func GetIPsFromDNS(host string) ([]interface{}, error)

Types

type DNSError added in v1.3.0

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

type PassError

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

type RenderedResource added in v1.1.0

type RenderedResource struct {
	Filename string
	Rendered string
}

type RenderedResourceSet added in v1.1.0

type RenderedResourceSet struct {
	Name      string
	Resources []RenderedResource
}

func LoadAndApplyTemplates added in v1.1.0

func LoadAndApplyTemplates(include *[]string, exclude *[]string, c *context.Context) ([]RenderedResourceSet, error)

type TemplateNotFoundError

type TemplateNotFoundError struct {
	meep.AllTraits
	Name string
	Path 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