template

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotSupportedProtocol = errors.New("protocol-not-supported")
	ErrNotConnectedToZk     = errors.New("not-connected-to-zk")
	ErrMissingTemplateFunc  = errors.New("no-template-func")
	ErrBadTemplateFunc      = errors.New("err-bad-template-func")
)

Functions

func ApplyTemplate

func ApplyTemplate(body string, context interface{}, funcs ...template.FuncMap) (string, error)

func ExecuteShell

func ExecuteShell(line string) error

func ExecuteUrl

func ExecuteUrl(zc zk.ZK, url string, authToken string, data interface{}, funcs ...template.FuncMap) ([]byte, error)

func FetchUrl

func FetchUrl(urlRef string, headers map[string]string, zc ...zk.ZK) (body string, mime string, err error)

func FileModeFromString

func FileModeFromString(perm string) os.FileMode

func ParseHostPort

func ParseHostPort(value string) (host, port string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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