config

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TLSClientConfig

type TLSClientConfig struct {
	Enable             bool           `help:"Enable client-side TLS."`
	Refresh            time.Duration  `default:"0s" help:"Interval for refreshing client TLS certificates."`
	InsecureSkipVerify bool           `help:"Skip TLS verification on client side."`
	File               TLSClientFiles `embed:"" prefix:"file."`
	KeyPassword        string         `help:"Optional password to decrypt RSA private key."`
	UseSystemPool      bool           `help:"Use system pool for root CAs."`
}

type TLSClientFiles

type TLSClientFiles struct {
	Key     string `placeholder:"FILE" help:"Optional path to client TLS key file."`
	Cert    string `placeholder:"FILE" help:"Optional path to client TLS certificate file."`
	RootCAs string `placeholder:"FILE" name:"root-ca" help:"Optional path to client root CAs for server verification."`
}

type TLSServerConfig

type TLSServerConfig struct {
	Enable      bool           `help:"Enable server-side TLS."`
	Refresh     time.Duration  `default:"0s" help:"Interval for refreshing server TLS certificates."`
	File        TLSServerFiles `embed:"" prefix:"file."`
	KeyPassword string         `help:"Optional password to decrypt RSA private key."`
}

type TLSServerFiles

type TLSServerFiles struct {
	Key       string `placeholder:"FILE" help:"Path to the server TLS key file."`
	Cert      string `placeholder:"FILE" help:"Path to the server TLS certificate file."`
	ClientCAs string `placeholder:"FILE" name:"client-ca" help:"Optional path to server client CA file for client verification."`
	ClientCRL string `` /* 145-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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