config

package
v0.0.0-...-562eb29 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BearerToken string
	Timeout     time.Duration
	TLS         *TLSConfig
}

type TLSConfig

type TLSConfig struct {
	// Server should be accessed without verifying the TLS certificate. For testing only.
	Insecure bool

	// Override for the server name passed to the server for SNI and used to verify certificates..
	ServerName string

	// Server requires TLS client certificate authentication
	CertFile string
	// Server requires TLS client certificate authentication
	KeyFile string
	// Trusted root certificates for server
	CAFile string

	// Bytes of the PEM-encoded server trusted root certificates. Supersedes CAFile.
	CAData []byte
	// Bytes of the PEM-encoded client certificate. Supersedes CertFile.
	CertData []byte
	// Bytes of the PEM-encoded client key. Supersedes KeyFile.
	KeyData []byte
}

TLSConfig contains settings to enable transport layer security

Jump to

Keyboard shortcuts

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