utils

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetadataPluginName = "envoy.grpc_credentials.file_based_metadata"
)

Variables

This section is empty.

Functions

func PathAsString

func PathAsString(matcher *v1.Matcher) string

func SortRoutesByPath

func SortRoutesByPath(routes []*v1.Route)

opinionated method to sort routes by convention routes are sorted in the following way: 1. exact path < regex path < path prefix 2. longer path string < shorter path string

Types

type CertSource

type CertSource interface {
	GetSecretRef() *core.ResourceRef
	GetSslFiles() *v1.SSLFiles
	GetSds() *v1.SDSConfig
	GetVerifySubjectAltName() []string
	GetParameters() *v1.SslParameters
}

type SslConfigTranslator

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

func NewSslConfigTranslator

func NewSslConfigTranslator(secrets v1.SecretList) *SslConfigTranslator

func (*SslConfigTranslator) ResolveCommonSslConfig

func (s *SslConfigTranslator) ResolveCommonSslConfig(cs CertSource) (*envoyauth.CommonTlsContext, error)

func (*SslConfigTranslator) ResolveDownstreamSslConfig

func (s *SslConfigTranslator) ResolveDownstreamSslConfig(dc *v1.SslConfig) (*envoyauth.DownstreamTlsContext, error)

func (*SslConfigTranslator) ResolveUpstreamSslConfig

func (s *SslConfigTranslator) ResolveUpstreamSslConfig(uc *v1.UpstreamSslConfig) (*envoyauth.UpstreamTlsContext, error)

Jump to

Keyboard shortcuts

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