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 ¶
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 ¶
func (s SDSServer) StreamSecrets(stream sdsAPI.SecretDiscoveryService_StreamSecretsServer) error
StreamSecrets is the callback of envoy SDS API
Click to show internal directories.
Click to hide internal directories.