Documentation
¶
Index ¶
- Constants
- func AddProxyHost(caddyID string, domain string) error
- func AddStaticDomain(projectID string, domain string) error
- func CreateStaticProject(projectID string, domain string) error
- func DeleteCaddyDefaultServer()
- func DeleteStaticProject(projectID string) error
- func GetMasterProxyHosts(caddyID string) ([]string, error)
- func GetProxyHosts(caddyID string) ([]string, []string, error)
- func GetReverseProxyConfig(caddyID string) (int, []byte, error)
- func HasCaddyConfig() (bool, error)
- func HttpCaddyRequest(url string, method string, data *string) (int, []byte, error)
- func Initialize()
- func RemoveProxyHost(caddyID string, domain string) error
- func RemoveStaticDomain(projectID string, domain string) error
- type CaddyError
- type CaddyHandle
- type CaddyMatch
- type CaddyRoute
- type CaddyRule
- type CaddyUpstream
- type ProxyOpts
Constants ¶
View Source
const BasicCaddyConfig string = `{ "listen": [ ":80", ":443" ], "routes": [], "tls_connection_policies": [] }`
Variables ¶
This section is empty.
Functions ¶
func AddProxyHost ¶
func AddStaticDomain ¶
func CreateStaticProject ¶
func DeleteCaddyDefaultServer ¶
func DeleteCaddyDefaultServer()
func DeleteStaticProject ¶
func GetMasterProxyHosts ¶
func HasCaddyConfig ¶
func HttpCaddyRequest ¶
func Initialize ¶
func Initialize()
func RemoveProxyHost ¶
func RemoveStaticDomain ¶
Types ¶
type CaddyError ¶
func DeleteReverseProxy ¶
func DeleteReverseProxy(containerName string) CaddyError
func SetReverseProxy ¶
func SetReverseProxy(containerName string, opts ProxyOpts) CaddyError
type CaddyHandle ¶
type CaddyHandle struct {
Handler string `json:"handler"`
Upstreams []CaddyUpstream `json:"upstreams"`
}
type CaddyMatch ¶
type CaddyMatch struct {
Host []string `json:"host"`
}
type CaddyRoute ¶
type CaddyRoute struct {
Match []CaddyMatch `json:"match"`
Handle []CaddyHandle `json:"handle"`
}
type CaddyRule ¶
type CaddyRule struct {
Listen []string `json:"listen"`
Routes []CaddyRoute `json:"routes"`
}
type CaddyUpstream ¶
type CaddyUpstream struct {
Dial string `json:"dial"`
}
Click to show internal directories.
Click to hide internal directories.