config

package
v0.0.0-...-d90bf5f Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	LogLevel:                   "debug",
	Listen:                     ":8080",
	EnableServerTLS:            false,
	Cert:                       "test/server.crt",
	Key:                        "test/server.key",
	CfAPI:                      "https://api.cf.aws-cfn02.aws.cfi.sapcloud.io",
	PcapServerPort:             "9494",
	PcapServerClientCert:       "test/client.crt",
	PcapServerClientKey:        "test/client.key",
	PcapServerCaCert:           "test/cacert.pem",
	PcapServerName:             "",
	PcapServerClientSkipVerify: true,
	CLIDownloadRoot:            "cli/build",
}

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel                   string `yaml:"log_level"`
	Listen                     string `yaml:"listen"`
	EnableServerTLS            bool   `yaml:"enable_server_tls"`
	Cert                       string `yaml:"cert"`
	Key                        string `yaml:"key"`
	CfAPI                      string `yaml:"cf_api"`
	PcapServerPort             string `yaml:"pcap_server_port"`
	PcapServerClientCert       string `yaml:"pcap_server_client_cert"`
	PcapServerClientKey        string `yaml:"pcap_server_client_key"`
	PcapServerCaCert           string `yaml:"pcap_server_ca_cert"`
	PcapServerName             string `yaml:"pcap_server_name"`
	PcapServerClientSkipVerify bool   `yaml:"pcap_server_client_skip_verify"`
	CLIDownloadRoot            string `yaml:"cli_download_root"`
}

func NewConfigFromFile

func NewConfigFromFile(filename string) (*Config, error)

Jump to

Keyboard shortcuts

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