Documentation
¶
Index ¶
- func Register(plugin TranslatorPlugin)
- type ClusterGeneratorPlugin
- type ClusterGeneratorPluginParams
- type Dependencies
- type EndpointDiscoveryPlugin
- type EnvoyNameForUpstream
- type FunctionPlugin
- type FunctionPluginParams
- type HttpFilterPlugin
- type HttpFilterPluginParams
- type ListenerFilterPlugin
- type ListenerFilterPluginParams
- type PluginWithDependencies
- type RoutePlugin
- type RoutePluginParams
- type Stage
- type StagedHttpFilter
- type StagedListenerFilter
- type TranslatorPlugin
- type UpstreamPlugin
- type UpstreamPluginParams
- type XdsCallbacks
- func (ps XdsCallbacks) OnFetchRequest(a *envoyapi.DiscoveryRequest)
- func (ps XdsCallbacks) OnFetchResponse(a *envoyapi.DiscoveryRequest, b *envoyapi.DiscoveryResponse)
- func (ps XdsCallbacks) OnStreamClosed(a int64)
- func (ps XdsCallbacks) OnStreamOpen(a int64, b string)
- func (ps XdsCallbacks) OnStreamRequest(a int64, b *envoyapi.DiscoveryRequest)
- func (ps XdsCallbacks) OnStreamResponse(a int64, b *envoyapi.DiscoveryRequest, c *envoyapi.DiscoveryResponse)
- type XdsPlugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(plugin TranslatorPlugin)
Types ¶
type ClusterGeneratorPlugin ¶
type ClusterGeneratorPlugin interface {
TranslatorPlugin
GeneratedClusters(params *ClusterGeneratorPluginParams) ([]*envoyapi.Cluster, error)
}
Plugins that create additional resources
type ClusterGeneratorPluginParams ¶
type ClusterGeneratorPluginParams struct{}
Params for GeneratedClusters()
type Dependencies ¶
type EndpointDiscoveryPlugin ¶
type EndpointDiscoveryPlugin interface {
UpstreamPlugin
SetupEndpointDiscovery() (endpointdiscovery.Interface, error)
}
type EnvoyNameForUpstream ¶
type FunctionPlugin ¶
type FunctionPlugin interface {
UpstreamPlugin
// if the FunctionSpec does not belong to this plugin, return nil, nil
// if the FunctionSpec belongs to this plugin but is not valid, return nil, err
// if the FunctionSpec belongs to this plugin and is valid, return *Struct, nil
ParseFunctionSpec(params *FunctionPluginParams, in v1.FunctionSpec) (*types.Struct, error)
}
type FunctionPluginParams ¶
Params for ParseFunctionSpec()
type HttpFilterPlugin ¶
type HttpFilterPlugin interface {
TranslatorPlugin
HttpFilters(params *HttpFilterPluginParams) []StagedHttpFilter
}
type HttpFilterPluginParams ¶
type HttpFilterPluginParams struct {
Listener *v1.Listener
}
Params for HttpFilters()
type ListenerFilterPlugin ¶
type ListenerFilterPlugin interface {
TranslatorPlugin
ListenerFilters(params *ListenerFilterPluginParams, in *v1.Listener) ([]StagedListenerFilter, error)
}
Plugins for creating network filters for listeners
type ListenerFilterPluginParams ¶
type ListenerFilterPluginParams struct {
EnvoyNameForUpstream EnvoyNameForUpstream
Config *v1.Config
}
Params for ListenerFilters()
type PluginWithDependencies ¶ added in v0.4.2
type PluginWithDependencies interface {
TranslatorPlugin
GetDependencies(cfg *v1.Config) *Dependencies
}
type RoutePlugin ¶
type RoutePlugin interface {
TranslatorPlugin
ProcessRoute(params *RoutePluginParams, in *v1.Route, out *envoyroute.Route) error
}
type RoutePluginParams ¶
type RoutePluginParams struct {
EnvoyNameForUpstream EnvoyNameForUpstream
// some route plugins need to know about the upstream(s) they route to
Upstreams []*v1.Upstream
}
Params for ProcessRoute()
type StagedHttpFilter ¶
type StagedHttpFilter struct {
HttpFilter *envoyhttp.HttpFilter
Stage Stage
}
type StagedListenerFilter ¶
type StagedListenerFilter struct {
ListenerFilter envoylistener.Filter
Stage Stage
}
type TranslatorPlugin ¶
func RegisteredPlugins ¶
func RegisteredPlugins() []TranslatorPlugin
type UpstreamPlugin ¶
type UpstreamPlugin interface {
TranslatorPlugin
ProcessUpstream(params *UpstreamPluginParams, in *v1.Upstream, out *envoyapi.Cluster) error
}
type UpstreamPluginParams ¶
type UpstreamPluginParams struct {
EnvoyNameForUpstream EnvoyNameForUpstream
Secrets secretwatcher.SecretMap
Files filewatcher.Files
}
Parameters for ProcessUpstream()
type XdsCallbacks ¶ added in v0.4.2
func (XdsCallbacks) OnFetchRequest ¶ added in v0.4.2
func (ps XdsCallbacks) OnFetchRequest(a *envoyapi.DiscoveryRequest)
func (XdsCallbacks) OnFetchResponse ¶ added in v0.4.2
func (ps XdsCallbacks) OnFetchResponse(a *envoyapi.DiscoveryRequest, b *envoyapi.DiscoveryResponse)
func (XdsCallbacks) OnStreamClosed ¶ added in v0.4.2
func (ps XdsCallbacks) OnStreamClosed(a int64)
func (XdsCallbacks) OnStreamOpen ¶ added in v0.4.2
func (ps XdsCallbacks) OnStreamOpen(a int64, b string)
func (XdsCallbacks) OnStreamRequest ¶ added in v0.4.2
func (ps XdsCallbacks) OnStreamRequest(a int64, b *envoyapi.DiscoveryRequest)
func (XdsCallbacks) OnStreamResponse ¶ added in v0.4.2
func (ps XdsCallbacks) OnStreamResponse(a int64, b *envoyapi.DiscoveryRequest, c *envoyapi.DiscoveryResponse)
Directories
¶
| Path | Synopsis |
|---|---|
|
Package aws is a generated protocol buffer package.
|
Package aws is a generated protocol buffer package. |
|
Package azure is a generated protocol buffer package.
|
Package azure is a generated protocol buffer package. |
|
common
|
|
|
transformation
Package transformation is a generated protocol buffer package.
|
Package transformation is a generated protocol buffer package. |
|
Package connect is a generated protocol buffer package.
|
Package connect is a generated protocol buffer package. |
|
Package consul is a generated protocol buffer package.
|
Package consul is a generated protocol buffer package. |
|
Package google is a generated protocol buffer package.
|
Package google is a generated protocol buffer package. |
|
Package grpc is a generated protocol buffer package.
|
Package grpc is a generated protocol buffer package. |
|
Package knative is a generated protocol buffer package.
|
Package knative is a generated protocol buffer package. |
|
Package kubernetes is a generated protocol buffer package.
|
Package kubernetes is a generated protocol buffer package. |
|
Package nats is a generated protocol buffer package.
|
Package nats is a generated protocol buffer package. |
|
Package rest is a generated protocol buffer package.
|
Package rest is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.