sds

package
v0.0.0-...-4b75dde Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretsBuilder

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

SecretsBuilder is responsible for constructing the SDS response.

func NewBuilder

func NewBuilder() *SecretsBuilder

NewBuilder returns a new SecretsBuilder

func (*SecretsBuilder) Build

func (b *SecretsBuilder) Build() []*xds_auth.Secret

Build generates SDS Secret Resources based on requested certs in the DiscoveryRequest

func (*SecretsBuilder) SetIssuers

func (b *SecretsBuilder) SetIssuers(issuers certificate.IssuerInfo) *SecretsBuilder

SetIssuers sets the trust domain on the builder.

func (*SecretsBuilder) SetProxy

func (b *SecretsBuilder) SetProxy(proxy *models.Proxy) *SecretsBuilder

SetProxy sets the proxy these secrets are destined for.

func (*SecretsBuilder) SetProxyCert

func (b *SecretsBuilder) SetProxyCert(cert *certificate.Certificate) *SecretsBuilder

SetProxyCert sets the proxy's certificate on the builder.

func (*SecretsBuilder) SetServiceIdentitiesForService

func (b *SecretsBuilder) SetServiceIdentitiesForService(serviceIdentitiesForServices map[service.MeshService][]identity.ServiceIdentity) *SecretsBuilder

SetServiceIdentitiesForService setes the list of identities for each service, to be used for SAN validation.

Jump to

Keyboard shortcuts

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