Documentation
¶
Index ¶
Constants ¶
View Source
const (
TunnelConfigFile = "moley.yml"
)
Variables ¶
View Source
var MoleyConfig *shared.BaseConfigManager[TunnelConfig]
MoleyConfig represents the configuration manager for the tunnel
Functions ¶
func NewTunnelConfigManager ¶ added in v1.2.0
func NewTunnelConfigManager() *shared.BaseConfigManager[TunnelConfig]
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner provides a high-level API for tunnel operations
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service orchestrates tunnel deployment and cleanup
func NewService ¶
func NewService(globalConfig *config.GlobalConfig, tunnelConfig *TunnelConfig, tunnelName string) (*Service, error)
NewService creates a new tunnel manager
type TunnelConfig ¶
type TunnelConfig struct {
// Zone is the DNS zone to use for the tunnel
Zone string `mapstructure:"zone" yaml:"zone" json:"zone" validate:"required"`
// Apps is a list of applications to expose via the tunnel
Apps []domain.AppConfig `mapstructure:"apps" yaml:"apps" json:"apps" validate:"required,min=1"`
}
TunnelConfig holds the configuration for the tunnel feature
func GetDefaultConfig ¶
func GetDefaultConfig() *TunnelConfig
GetDefaultConfig returns the default tunnel configuration
Click to show internal directories.
Click to hide internal directories.