Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
Block can represent any of those caddyfile elements: - GlobalOptions - Snippet - Site - MatcherDefinition - Option - Directive - Subdirective
It's structure is rendered in caddyfile as: Keys[0] Keys[1] Keys[2]
When children are defined, each child is also recursively rendered as:
Keys[0] Keys[1] Keys[2] { Children[0].Keys[0] Children[0].Keys[1] Children[1].Keys[0] Children[1].Keys[1] }
func (*Block) IsGlobalBlock ¶
IsGlobalBlock returns if block is a global block
type Container ¶
type Container struct {
Children []*Block
}
Container represents a collection of blocks
func FromLabels ¶
func FromLabels(labels map[string]string, templateData interface{}, templateFuncs template.FuncMap) (*Container, error)
FromLabels converts key value labels into a caddyfile
func (*Container) GetAllByFirstKey ¶
GetAllByFirstKey gets all blocks with the specified firstKey
Click to show internal directories.
Click to hide internal directories.