Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGlobalManager ¶
func NewGlobalManager() (*platformconfig.Manager[GlobalConfig], error)
NewGlobalManager creates a new global configuration manager
func NewTunnelManager ¶
func NewTunnelManager(path string) (*platformconfig.Manager[TunnelConfig], error)
NewTunnelManager creates a new tunnel configuration manager
Types ¶
type GlobalConfig ¶
type GlobalConfig struct {
Cloudflare struct {
Token string `yaml:"token" validate:"required"`
} `yaml:"cloudflare"`
}
GlobalConfig represents the global application configuration
type TunnelConfig ¶
type TunnelConfig struct {
Tunnel *domain.Tunnel `yaml:"tunnel" validate:"required"`
Ingress *domain.Ingress `yaml:"ingress" validate:"required"`
Access *domain.Access `yaml:"access,omitempty"`
}
TunnelConfig represents tunnel-specific configuration
func ExampleTunnelConfig ¶
func ExampleTunnelConfig() (*TunnelConfig, error)
Click to show internal directories.
Click to hide internal directories.