server

package
v1.15.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSnapshotVersion

func GetSnapshotVersion(certs ...interface{}) (string, error)

GetSnapshotVersion generates a version string by hashing the certs

Types

type Secret added in v1.5.0

type Secret struct {
	SslCaFile         string
	SslKeyFile        string
	SslCertFile       string
	SslOcspFile       string
	ServerCert        string // name of a tls_certificate_sds_secret_config
	ValidationContext string // name of the validation_context_sds_secret_config
}

Secret represents an envoy auth secret

type Server added in v1.5.0

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

Server is the SDS server. Holds config & secrets.

func SetupEnvoySDS

func SetupEnvoySDS(secrets []Secret, sdsClient, serverAddress string) *Server

SetupEnvoySDS creates a new SDSServer. The returned server can be started with Run()

func (*Server) ID added in v1.5.0

ID needed for snapshotCache

func (*Server) Run added in v1.5.0

func (s *Server) Run(ctx context.Context) (<-chan struct{}, error)

Run starts the server

func (*Server) UpdateSDSConfig added in v1.5.0

func (s *Server) UpdateSDSConfig(ctx context.Context) error

UpdateSDSConfig updates with the current certs

Jump to

Keyboard shortcuts

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