Documentation
¶
Index ¶
Constants ¶
View Source
const ( CaddyGroup = "uncloud" VerifyPath = "/.uncloud-verify" )
Variables ¶
This section is empty.
Functions ¶
func GenerateConfig ¶
func GenerateConfig(containers []api.ServiceContainer, verifyResponse string) (*caddy.Config, error)
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller monitors container changes in the cluster store and generates a configuration file for Caddy reverse proxy. The generated Caddyfile allows Caddy to route external traffic to service containers across the internal network.
func NewController ¶
Click to show internal directories.
Click to hide internal directories.