Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigurationDirectory ¶
GetConfigurationDirectory returns the directory where all state is stored
func InitializeEnvironment ¶ added in v0.7.2
func InitializeEnvironment(options ...EnvironmentOption)
InitializeEnvironment initializes the environment with the specified options
func SaveConfiguration ¶ added in v0.7.1
func SaveConfiguration(toSave Configuration) error
SaveConfiguration saves a configuration to the file
Types ¶
type Configuration ¶ added in v0.7.1
type Configuration struct { // BaseDirectories stores all the places where configuration files can be found BaseDirectories []string }
Configuration stores general configuration for the proxy
func LoadConfiguration ¶ added in v0.7.1
func LoadConfiguration() (*Configuration, error)
LoadConfiguration loads the current user configuration
type Environment ¶ added in v0.7.2
Environment stores information about the runtime
func GetEnvironment ¶ added in v0.7.2
func GetEnvironment() Environment
GetEnvironment returns the current runtime environment
type EnvironmentOption ¶ added in v0.7.2
type EnvironmentOption func(*Environment)
EnvironmentOption represents an option to be applied on the environment
func WithAdminPort ¶ added in v0.7.2
func WithAdminPort(port int) EnvironmentOption
WithAdminPort configuration option to setup an Admin server and UI port
func WithCertificateFile ¶ added in v0.7.2
func WithCertificateFile(pathToCertFile string) EnvironmentOption
WithCertificateFile configuration option to setup the certificate file to use for TLS
func WithKeyFile ¶ added in v0.7.2
func WithKeyFile(pathToKeyFile string) EnvironmentOption
WithKeyFile configuration option to setup the key file to use for TLS
func WithProxyPort ¶ added in v0.7.2
func WithProxyPort(port int) EnvironmentOption
WithProxyPort configuration option to setup the proxy port