caddyfile

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caddyfile

type Caddyfile interface {
	Scope
	Save() error
}

Caddyfile provides API for creating and editing caddyfile

func NewCaddyfile

func NewCaddyfile(path string) Caddyfile

NewCaddyfile creates new instance of Caddyfile

type Scope

type Scope interface {
	fmt.Stringer
	Write(string) Scope
	WriteScope(string) Scope
	Up() Scope
	HasScope(string) bool
	GetOrCreate(string) Scope
	Records() []fmt.Stringer
	Remove(string)
	Name() string
}

Scope is part of caddyfile, represented as a block of records

Jump to

Keyboard shortcuts

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