sds

package
v0.0.0-...-b174aa1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDSServer

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

SDSServer implements sdsAPI.SecretDiscoveryServiceServer

func NewSDSServer

func NewSDSServer(log *logrus.Logger, tlsCertificateName string, validateContextName string, allowedSpiffeIds []string) *SDSServer

NewSDSServer creates a new SDS server according to the given config

func (*SDSServer) FetchSecrets

func (s *SDSServer) FetchSecrets(ctx context.Context, req *v2.DiscoveryRequest) (*v2.DiscoveryResponse, error)

FetchSecrets is the callback of envoy SDS API

func (*SDSServer) Run

func (s *SDSServer) Run(ctx context.Context, socketPath string) error

Run connects to the workload API, handles updates, and serves SDS API clients. API calls that happen before Run is called will block until the call is canceled or Run is invoked. Run does not return until the provided context is done.

func (SDSServer) StreamSecrets

StreamSecrets is the callback of envoy SDS API

Jump to

Keyboard shortcuts

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