Versions in this module Expand all Collapse all v1 v1.0.0 Oct 10, 2023 Changes in this version + const BastionFlag + var DefaultConfigFiles = []string + var DefaultUnixConfigLocation = "/usr/local/etc/netscale" + var DefaultUnixLogLocation = "/var/log/netscale" + var ErrNoConfigFile = fmt.Errorf("Cannot determine default configuration path. No file %v in %v", ...) + func DefaultConfigDirectory() string + func DefaultConfigPath() string + func DefaultConfigSearchDirectories() []string + func DefaultLogDirectory() string + func FileExists(path string) (bool, error) + func FindDefaultConfigPath() string + func FindOrCreateConfigPath() string + func ReadConfigFile(c *cli.Context, log *zerolog.Logger) (settings *configFileSettings, warnings string, err error) + func ValidateUnixSocket(c *cli.Context) (string, error) + func ValidateUrl(c *cli.Context, allowURLFromArgs bool) (*url.URL, error) + type AccessConfig struct + AudTag []string + Required bool + TeamName string + type Configuration struct + Ingress []UnvalidatedIngressRule + OriginRequest OriginRequestConfig + TunnelID string + WarpRouting WarpRoutingConfig + func GetConfiguration() *Configuration + func (c *Configuration) Source() string + type CustomDuration struct + func (s *CustomDuration) MarshalYAML() (interface{}, error) + func (s *CustomDuration) UnmarshalJSON(data []byte) error + func (s *CustomDuration) UnmarshalYAML(unmarshal func(interface{}) error) error + func (s CustomDuration) MarshalJSON() ([]byte, error) + type DNSResolver struct + Address string + Bootstraps []string + Enabled bool + MaxUpstreamConnections int + Port uint16 + Upstreams []string + func (r *DNSResolver) AddressOrDefault() string + func (r *DNSResolver) BootstrapsOrDefault() []string + func (r *DNSResolver) EnabledOrDefault() bool + func (r *DNSResolver) Hash() string + func (r *DNSResolver) MaxUpstreamConnectionsOrDefault() int + func (r *DNSResolver) PortOrDefault() uint16 + func (r *DNSResolver) UpstreamsOrDefault() []string + type FileManager struct + ReadConfig func(string, *zerolog.Logger) (Root, error) + func NewFileManager(watcher watcher.Notifier, configPath string, log *zerolog.Logger) (*FileManager, error) + func (m *FileManager) GetConfig() (Root, error) + func (m *FileManager) Shutdown() + func (m *FileManager) Start(notifier Notifier) error + func (m *FileManager) WatcherDidError(err error) + func (m *FileManager) WatcherItemDidChange(filepath string) + type Forwarder struct + Destination string + Listener string + TokenClientID string + TokenSecret string + URL string + func (f *Forwarder) Hash() string + type IngressIPRule struct + Allow bool + Ports []int + Prefix *string + type Manager interface + Shutdown func() + Start func(Notifier) error + type Notifier interface + ConfigDidUpdate func(Root) + type OriginRequestConfig struct + Access *AccessConfig + BastionMode *bool + CAPool *string + ConnectTimeout *CustomDuration + DisableChunkedEncoding *bool + HTTPHostHeader *string + Http2Origin *bool + IPRules []IngressIPRule + KeepAliveConnections *int + KeepAliveTimeout *CustomDuration + NoHappyEyeballs *bool + NoTLSVerify *bool + OriginServerName *string + ProxyAddress *string + ProxyPort *uint + ProxyType *string + TCPKeepAlive *CustomDuration + TLSTimeout *CustomDuration + type Root struct + Forwarders []Forwarder + LogDirectory string + LogLevel string + Resolver DNSResolver + Tunnels []Tunnel + type Tunnel struct + Origin string + ProtocolType string + URL string + type UnvalidatedIngressRule struct + Hostname string + OriginRequest OriginRequestConfig + Path string + Service string + type WarpRoutingConfig struct + ConnectTimeout *CustomDuration + TCPKeepAlive *CustomDuration