embedded

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTemplate = "events"

DefautlTemplate is the default function signature / environmental context of the resultant template. All runtimes are expected to have at least an HTTP Handler ("http") and Cloud Events ("events")

Variables

This section is empty.

Functions

func ReadDir

func ReadDir(src string, accessor FileAccessor) ([]os.FileInfo, error)

Types

type FileAccessor

type FileAccessor interface {
	Stat(name string) (os.FileInfo, error)
	Open(p string) (file, error)
}

FileAccessor encapsulates methods for accessing template files.

type Initializer

type Initializer struct {
	Verbose bool
	// contains filtered or unexported fields
}

func NewInitializer

func NewInitializer(templates string) *Initializer

NewInitializer with an optional path to extended repositories directory (by default only internally embedded templates are used)

func (*Initializer) Initialize

func (n *Initializer) Initialize(runtime, template string, dest string) error

Jump to

Keyboard shortcuts

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