zerotrust

package
v4.0.0-dev.14 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenZitiControllerKey = "OpenZitiController"
	ZeroTrustMode         = "zerotrust"
	OpenZitiServicePrefix = "edgex."
)

Variables

This section is empty.

Functions

func HttpTransportFromClient

func HttpTransportFromClient(secretProvider interfaces.SecretProviderExt, clientInfo *config.ClientInfo, lc logger.LoggingClient) (http.RoundTripper, error)

func HttpTransportFromService

func HttpTransportFromService(secretProvider interfaces.SecretProviderExt, serviceInfo config.ServiceInfo, lc logger.LoggingClient) (http.RoundTripper, error)

func ListenOnMode

func ListenOnMode(bootstrapConfig config.BootstrapConfiguration, serverKey, addr string, t startup.Timer, server *http.Server, dic *di.Container) error

ListenOnMode configures and starts an HTTP server based on the provided security mode. If the security mode is set to zerotrust, it establishes a zero trust overlay network using OpenZiti. Otherwise, it listens on the specified address using the default network.

func SetupWebListener

func SetupWebListener(serviceConfig config.ServiceInfo, serviceName, addr string, dic *di.Container) (net.Listener, error)

Types

type OpenZitiIdentityKey

type OpenZitiIdentityKey struct{}

type ZitiDialer

type ZitiDialer struct {
	// contains filtered or unexported fields
}

func (ZitiDialer) Dial

func (z ZitiDialer) Dial(network, address string) (net.Conn, error)

Jump to

Keyboard shortcuts

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