common

package
v0.8.16 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Security

type Security struct {
	// Hostname
	SelfHostname string `json:"self_hostname"`
	// Shared key for authentication.
	SharedKey string `json:"shared_key"`
	// If true, use user based authentication.
	UserAuth bool `json:"user_auth,omitempty"`
	// Allow anonymous source. <client> sections are required if disabled.
	AllowAnonymousSource bool `json:"allow_anonymous_source,omitempty"`
}

func (*Security) ToDirective

func (s *Security) ToDirective(secretLoader secret.SecretLoader, id string) (types.Directive, error)

type Transport

type Transport struct {
	// Protocol Default: :tcp
	Protocol string `json:"protocol,omitempty"`
	// Version Default: 'TLSv1_2'
	Version string `json:"version,omitempty"`
	// Ciphers Default: "ALL:!aNULL:!eNULL:!SSLv2"
	Ciphers string `json:"ciphers,omitempty"`
	// Use secure connection when use tls) Default: false
	Insecure bool `json:"insecure,omitempty"`
	// Specify path to CA certificate file
	CaPath string `json:"ca_path,omitempty"`
	// Specify path to Certificate file
	CertPath string `json:"cert_path,omitempty"`
	// Specify path to private Key file
	PrivateKeyPath string `json:"private_key_path,omitempty"`
	// public CA private key passphrase contained path
	PrivateKeyPassphrase string `json:"private_key_passphrase,omitempty"`
	// When this is set Fluentd will check all incoming HTTPS requests
	// for a client certificate signed by the trusted CA, requests that
	// don't supply a valid client certificate will fail.
	ClientCertAuth bool `json:"client_cert_auth,omitempty"`
	// Specify private CA contained path
	CaCertPath string `json:"ca_cert_path,omitempty"`
	// private CA private key contained path
	CaPrivateKeyPath string `json:"ca_private_key_path,omitempty"`
	// private CA private key passphrase contained path
	CaPrivateKeyPassphrase string `json:"ca_private_key_passphrase,omitempty"`
}

func (*Transport) ToDirective

func (t *Transport) ToDirective(secretLoader secret.SecretLoader, id string) (types.Directive, error)

Jump to

Keyboard shortcuts

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