serveroption

package
v0.0.0-...-c34bea4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const MinTLSVersion = tls.VersionTLS13

MinTLSVersion defines the minimum TLS version clients are expected to support in order to establish a connection to the hubble server.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options) error

Option customizes the hubble server's configuration.

func WithHealthService

func WithHealthService() Option

WithHealthService configures the server to expose the gRPC health service.

func WithInsecure

func WithInsecure() Option

WithInsecure disables transport security. Transport security is required unless WithInsecure is set. Use WithTLS to set transport credentials for transport security.

func WithObserverService

func WithObserverService(svc observerpb.ObserverServer) Option

WithObserverService configures the server to expose the given observer server service.

func WithPeerService

func WithPeerService(svc peerpb.PeerServer) Option

WithPeerService configures the server to expose the given peer server service.

func WithRecorderService

func WithRecorderService(svc recorderpb.RecorderServer) Option

WithRecorderService configures the server to expose the given recorder server service.

func WithServerTLS

func WithServerTLS(cfg certloader.ServerConfigBuilder) Option

WithServerTLS sets the transport credentials for the server based on TLS.

func WithTCPListener

func WithTCPListener(address string) Option

WithTCPListener configures a TCP listener with the address.

func WithUnixSocketListener

func WithUnixSocketListener(path string) Option

WithUnixSocketListener configures a unix domain socket listener with the given file path. When the process runs in privileged mode, the file group owner is set to socketGroup.

type Options

type Options struct {
	Listener        net.Listener
	HealthService   healthpb.HealthServer
	ObserverService observerpb.ObserverServer
	PeerService     peerpb.PeerServer
	RecorderService recorderpb.RecorderServer
	ServerTLSConfig certloader.ServerConfigBuilder
	Insecure        bool
}

Options stores all the configuration values for the hubble server.

Jump to

Keyboard shortcuts

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