Documentation
¶
Overview ¶
Package templates is responsible for managing the creating of caddyfiles through templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ApplyTemplate ¶
ApplyTemplate applies the given template to the given dot.
Types ¶
type DotClient ¶
type DotClient struct {
NetworkName string
IP net.IP
Endpoint string
EndpointPort uint16
Private wgapi.PrivateKey
Public wgapi.PublicKey
Directive string
}
DotClient is a client template config.
func (DotClient) GetNetworkName ¶ added in v0.1.0
type DotDockerfile ¶
func (DotDockerfile) ApplyTemplate ¶
func (dd DotDockerfile) ApplyTemplate(t errs.Testing) []byte
type DotServer ¶
type DotServer struct {
NetworkName string
FwdNetworkName string
IP net.IP
Port uint16
Private wgapi.PrivateKey
Peers []DotServerPeer
}
DotServer is a server template config.
func (DotServer) GetNetworkName ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.