cadet

package
v0.0.0-...-a071561 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoReverseProxyConfig

type AutoReverseProxyConfig struct {
	HTTPPort   int               `json:"http_port"`
	HTTPSPort  int               `json:"https_port"`
	TLSIssuers []json.RawMessage `json:"tls_issuers" caddy:"namespace=tls.issuance inline_key=module"`
	Protocols  []string          `json:"protocols"`
}

func DefaultAutoReverseProxyConfig

func DefaultAutoReverseProxyConfig() *AutoReverseProxyConfig

func MergeAutoReverseProxyConfig

func MergeAutoReverseProxyConfig(a, b *AutoReverseProxyConfig) *AutoReverseProxyConfig

type DashboardConfig

type DashboardConfig struct {
	Enabled bool `json:"enabled"`
	Port    int  `json:"port"`
}

func DefaultDashboardConfig

func DefaultDashboardConfig() *DashboardConfig

type Plugin

type Plugin struct {
	Consul           *config.ConsulConfig    `json:"consul"`
	AutoReverseProxy *AutoReverseProxyConfig `json:"auto_reverse_proxy"`
	Dashboard        *DashboardConfig        `json:"dashboard,omitempty"`
	// contains filtered or unexported fields
}

func NewPlugin

func NewPlugin() *Plugin

func (Plugin) CaddyModule

func (plug Plugin) CaddyModule() caddy.ModuleInfo

func (*Plugin) Cleanup

func (plug *Plugin) Cleanup() error

func (*Plugin) Provision

func (plug *Plugin) Provision(ctx caddy.Context) error

func (*Plugin) Start

func (plug *Plugin) Start() error

func (*Plugin) Stop

func (plug *Plugin) Stop() error

func (*Plugin) Validate

func (plug *Plugin) Validate() error

type ProxyConfig

type ProxyConfig struct {
	Servers map[string]ProxyServer
}

type ProxyServer

type ProxyServer struct {
	Port     int            `json:"port"`
	Services []ProxyService `json:"servers"`
}

type ProxyService

type ProxyService struct {
	Name      string     `json:"name"`
	Hostnames []string   `json:"hostnames"`
	Upstreams []string   `json:"upstreams"`
	ACL       acl.Policy `json:"acl"`
}

Jump to

Keyboard shortcuts

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