config

package
v0.0.0-...-dc44bb0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxTenantId uint16 = (1 << 16) - 1

Functions

func Credentials

func Credentials(entries []string) (map[string]string, error)

Types

type Config

type Config struct {
	AutoEnrollEnabled                 bool
	Azure                             *auth.Azure
	BindAddress                       string
	ControlPlaneAuthenticationEnabled bool
	AdminCredentialEntries            []string
	PrometheusCredentialEntries       []string
	DBPath                            string
	DeviceAuthenticationProvider      string
	Endpoint                          string
	GRPCBindAddress                   string
	GatewayConfigBucketName           string
	GatewayConfigBucketObjectName     string
	Google                            *auth.Google
	JitaPassword                      string
	JitaUrl                           string
	JitaUsername                      string
	JitaEnabled                       bool
	KolideEventHandlerAddress         string
	KolideEventHandlerEnabled         bool
	KolideEventHandlerToken           string
	KolideEventHandlerSecure          bool
	LogLevel                          string
	PrometheusAddr                    string
	PrometheusPublicKey               string
	PrometheusTunnelIP                string
	GatewayConfigurer                 string
	WireGuardEnabled                  bool
	WireGuardIP                       string // for passing in raw string
	WireGuardIPv6                     string // for passing in raw string
	WireGuardConfigPath               string
	WireGuardPrivateKey               wireguard.PrivateKey
	WireGuardPrivateKeyPath           string
	WireGuardNetworkAddress           string
	WireGuardIPv4Prefix               *netip.Prefix `ignored:"true"`
	WireGuardIPv6Prefix               *netip.Prefix `ignored:"true"`
}

func DefaultConfig

func DefaultConfig() Config

func (*Config) APIServerPeer

func (cfg *Config) APIServerPeer() *pb.Gateway

func (*Config) Parse

func (cfg *Config) Parse() error

func (*Config) StaticPeers

func (cfg *Config) StaticPeers() []*pb.Gateway

Jump to

Keyboard shortcuts

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