endpoints

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(log logrus.FieldLogger, metrics telemetry.Metrics) middleware.Middleware

Types

type Config

type Config struct {
	BindAddr net.Addr

	AgentAddr *net.TCPAddr

	Attestor attestor.Attestor

	Manager manager.Manager

	Log logrus.FieldLogger

	Metrics telemetry.Metrics

	// The TLS Certificate resource name to use for the default X509-SVID with Envoy SDS
	DefaultSVIDName string

	// The Validation Context resource name to use when fetching X.509 bundle together with federated bundles with Envoy SDS
	DefaultAllBundlesName string

	// The Validation Context resource name to use for the default X.509 bundle with Envoy SDS
	DefaultBundleName string

	// Disable custom Envoy SDS validator
	DisableSPIFFECertValidation bool

	AllowUnauthenticatedVerifiers bool

	AllowedForeignJWTClaims []string

	TrustDomain spiffeid.TrustDomain
	// contains filtered or unexported fields
}

type Endpoints

type Endpoints struct {
	TCPAddr *net.TCPAddr
	// contains filtered or unexported fields
}

func New

func New(c Config) *Endpoints

func (*Endpoints) ListenAndServe

func (e *Endpoints) ListenAndServe(ctx context.Context) error

func (*Endpoints) RunTCPAgent

func (e *Endpoints) RunTCPAgent(ctx context.Context) error

runTCPServer will start the agent and block until it exits or we are dying.

type PeerTrackerAttestor

type PeerTrackerAttestor struct {
	Attestor attestor.Attestor
}

func (PeerTrackerAttestor) Attest

type Server

type Server interface {
	ListenAndServe(ctx context.Context) error
	RunTCPAgent(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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