Documentation
¶
Overview ¶
Package lbexport renders a load balancer config as Terraform, CDK, CloudFormation, Caddyfile or Caddy JSON. It never calls any cloud API.
Index ¶
Constants ¶
View Source
const ( FormatTerraform = "terraform" FormatCDK = "cdk" FormatCloudFormation = "cloudformation" FormatCaddy = "caddy" FormatCaddyJSON = "caddy-json" )
Export formats accepted by Export.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Artifact ¶
type Artifact struct {
Format string `json:"format"`
Filename string `json:"filename"`
ContentType string `json:"content_type"`
Body string `json:"body"`
Warnings []string `json:"warnings,omitempty"`
}
Artifact is one generated file.
type ExportInput ¶
type ExportInput struct {
Service string
Port int
Domains []string
Config loadbalancer.Config
// Upstreams are the current dial addresses; used by the Caddy formats only.
Upstreams []string
}
ExportInput is everything a generator needs about one service.
Click to show internal directories.
Click to hide internal directories.