config

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecurityType

type SecurityType string

SecurityType is the enum type of available security modes

const (
	// TypeInsecure is the insecure security mode and it is the default value
	TypeInsecure SecurityType = "insecure"
	// TypeTLS is the TLS security mode, which requires caller to provide
	// credentials to connect to peer
	TypeTLS = "tls"
)

type ServerConfig

type ServerConfig struct {
	RealAddress        string       `yaml:"real_address"`
	Security           SecurityType `yaml:"security"`
	CredentialFile     string       `yaml:"credential_file"`
	ServerNameOverride string       `yaml:"server_name_override"`
}

ServerConfig is the configuration for how to connect to a target

func GetServerConfig

func GetServerConfig(target string) ServerConfig

GetServerConfig returns a connect configuration for the given target

Jump to

Keyboard shortcuts

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