utils

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 7 Imported by: 16

Documentation

Index

Constants

This section is empty.

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
}

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