templates

package
v0.1.0-techpreview2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DepSizeWarning = 128

DepSizeWarning is the threshold of dependencies that we warn the user of CTS potentially DDoSing their Consul cluster.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver interface {
	Run(tmpl hcat.Templater, w hcat.Watcherer) (hcat.ResolveEvent, error)
}

Resolver describes the interface for hashicat's Resolver structure which does implement any hashicat interface at time of writing https://github.com/hashicorp/hcat

type Template

type Template interface {
	Render(content []byte) (hcat.RenderResult, error)
	Execute(hcat.Watcherer) ([]byte, error)
	ID() string
}

Template describes the interface for hashicat's Template structure which implements the interfaces Templater and Renderer https://github.com/hashicorp/hcat

type Watcher

type Watcher interface {
	WaitCh(context.Context) <-chan error
	Buffer(tmplID string) bool
	SetBufferPeriod(min, max time.Duration, tmplIDs ...string)
	Size() int
	Stop()
	// not used but needed to meet the hcat.Watcherer interface
	Complete(hcat.Notifier) bool
	Recaller(hcat.Notifier) hcat.Recaller
}

Watcher describes the interface for hashicat's Watcher structure used by this project https://github.com/hashicorp/hcat

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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