Documentation ¶
Overview ¶
Package translator is a generated protocol buffer package.
It is generated from these files:
functional_base.proto
It has these top-level messages:
FunctionalFilterRouteConfig
Index ¶
- Constants
- Variables
- func DataSourceFromString(str string) *envoycore.DataSource
- func GlooMatcherToEnvoyMatcher(matcher *matchers.Matcher) envoyroute.RouteMatch
- func MakeRdsResources(routeConfigs []*envoyapi.RouteConfiguration) envoycache.Resources
- func NewAccessLogWithConfig(name string, config proto.Message) (envoyal.AccessLog, error)
- func NewFilterWithConfig(name string, config proto.Message) (*envoylistener.Filter, error)
- func NewHttpConnectionManager(listener *v1.HttpListener, httpFilters []*envoyhttp.HttpFilter, rdsName string) *envoyhttp.HttpConnectionManager
- func ParseConfig(c configObject, config proto.Message) error
- func ParseGogoConfig(c gogoConfigObject, config proto.Message) error
- func UpstreamToClusterName(upstream core.ResourceRef) string
- func ValidateRouteDestinations(snap *v1.ApiSnapshot, action *v1.RouteAction) error
- func ValidateVirtualHostDomains(virtualHosts []*v1.VirtualHost, ...)
- type FunctionalFilterRouteConfig
- type Translator
Constants ¶
View Source
const ( SslCertificateChainKey = "tls.crt" SslPrivateKeyKey = "tls.key" SslRootCaKey = "tls.root" )
View Source
const (
DefaultHttpStatPrefix = "http"
)
View Source
const EnvoyLb = "envoy.lb"
View Source
const SoloAnnotations = "io.solo.annotations"
Variables ¶
View Source
var ( DefaultHealthCheckTimeout = time.Second * 5 DefaultHealthCheckInterval = time.Millisecond * 100 DefaultThreshold = &types.UInt32Value{ Value: 5, } NilFieldError = func(fieldName string) error { return errors.Errorf("The field %s cannot be nil", fieldName) } )
View Source
var ( NoDestinationSpecifiedError = errors.New("must specify at least one weighted destination for multi destination routes") SubsetsMisconfiguredErr = errors.New("route has a subset config, but the upstream does not.") )
View Source
var (
ClusterConnectionTimeout = time.Second * 5
)
Functions ¶
func DataSourceFromString ¶
func DataSourceFromString(str string) *envoycore.DataSource
func GlooMatcherToEnvoyMatcher ¶ added in v1.0.0
func GlooMatcherToEnvoyMatcher(matcher *matchers.Matcher) envoyroute.RouteMatch
utility function to transform gloo matcher to envoy route matcher
func MakeRdsResources ¶ added in v1.0.0
func MakeRdsResources(routeConfigs []*envoyapi.RouteConfiguration) envoycache.Resources
func NewAccessLogWithConfig ¶ added in v0.18.1
func NewFilterWithConfig ¶ added in v0.13.1
func NewHttpConnectionManager ¶
func NewHttpConnectionManager(listener *v1.HttpListener, httpFilters []*envoyhttp.HttpFilter, rdsName string) *envoyhttp.HttpConnectionManager
func ParseConfig ¶ added in v0.13.1
func ParseGogoConfig ¶ added in v1.2.0
func UpstreamToClusterName ¶
func UpstreamToClusterName(upstream core.ResourceRef) string
returns the name of the cluster created for a given upstream
func ValidateRouteDestinations ¶ added in v0.18.0
func ValidateRouteDestinations(snap *v1.ApiSnapshot, action *v1.RouteAction) error
func ValidateVirtualHostDomains ¶ added in v1.2.5
func ValidateVirtualHostDomains(virtualHosts []*v1.VirtualHost, httpListenerReport *validationapi.HttpListenerReport)
returns an error if any of the virtualhost domains overlap Visible for testing
Types ¶
type FunctionalFilterRouteConfig ¶
type FunctionalFilterRouteConfig struct {
FunctionName string `protobuf:"bytes,1,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"`
}
func (*FunctionalFilterRouteConfig) Descriptor ¶
func (*FunctionalFilterRouteConfig) Descriptor() ([]byte, []int)
func (*FunctionalFilterRouteConfig) GetFunctionName ¶
func (m *FunctionalFilterRouteConfig) GetFunctionName() string
func (*FunctionalFilterRouteConfig) ProtoMessage ¶
func (*FunctionalFilterRouteConfig) ProtoMessage()
func (*FunctionalFilterRouteConfig) Reset ¶
func (m *FunctionalFilterRouteConfig) Reset()
func (*FunctionalFilterRouteConfig) String ¶
func (m *FunctionalFilterRouteConfig) String() string
type Translator ¶
type Translator interface {
Translate(params plugins.Params, proxy *v1.Proxy) (envoycache.Snapshot, reporter.ResourceReports, *validationapi.ProxyReport, error)
}
func NewTranslator ¶
func NewTranslator(sslConfigTranslator utils.SslConfigTranslator, settings *v1.Settings, getPlugins func() []plugins.Plugin) Translator
Click to show internal directories.
Click to hide internal directories.