Documentation ¶
Index ¶
- Constants
- func ForEachSource(obj ObjectWithMetadata, fn func(source SourceRef) error) error
- func GatewayContainsVirtualService(gateway *v2.Gateway, virtualService *v1.VirtualService) bool
- func ListenerName(gateway *v2.Gateway) string
- func NewDefaultTranslator() *translator
- func NewTranslator(factories []ListenerFactory) *translator
- func VirtualHostName(vs *v1.VirtualService) string
- type HttpTranslator
- type ListenerFactory
- type ObjectWithMetadata
- type SourceMetadata
- type SourceRef
- type TcpTranslator
- type Translator
Constants ¶
View Source
const GatewayProxyName = defaults.GatewayProxyName
deprecated, use defaults.GatewayProxyName
Variables ¶
This section is empty.
Functions ¶
func ForEachSource ¶ added in v1.0.0
func ForEachSource(obj ObjectWithMetadata, fn func(source SourceRef) error) error
func GatewayContainsVirtualService ¶ added in v0.19.0
func GatewayContainsVirtualService(gateway *v2.Gateway, virtualService *v1.VirtualService) bool
func ListenerName ¶ added in v1.0.0
func NewDefaultTranslator ¶ added in v0.19.0
func NewDefaultTranslator() *translator
func NewTranslator ¶ added in v0.18.0
func NewTranslator(factories []ListenerFactory) *translator
func VirtualHostName ¶ added in v1.0.0
func VirtualHostName(vs *v1.VirtualService) string
Types ¶
type HttpTranslator ¶ added in v0.18.0
type HttpTranslator struct{}
func (*HttpTranslator) GenerateListeners ¶ added in v0.18.0
func (t *HttpTranslator) GenerateListeners(ctx context.Context, snap *v2.ApiSnapshot, filteredGateways []*v2.Gateway, reports reporter.ResourceReports) []*gloov1.Listener
type ListenerFactory ¶ added in v0.18.0
type ListenerFactory interface {
GenerateListeners(ctx context.Context, snap *v2.ApiSnapshot, filteredGateways []*v2.Gateway, reports reporter.ResourceReports) []*gloov1.Listener
}
type ObjectWithMetadata ¶ added in v1.0.0
type SourceMetadata ¶ added in v1.0.0
type SourceMetadata struct {
Sources []SourceRef `json:"sources"`
}
func GetSourceMeta ¶ added in v1.0.0
func GetSourceMeta(obj ObjectWithMetadata) (*SourceMetadata, error)
func SourceMetaFromStruct ¶ added in v1.0.0
func SourceMetaFromStruct(s *types.Struct) (*SourceMetadata, error)
type SourceRef ¶ added in v0.18.41
type SourceRef struct { core.ResourceRef ResourceKind string `json:"kind"` ObservedGeneration int64 `json:"observedGeneration"` }
type TcpTranslator ¶ added in v0.18.0
type TcpTranslator struct{}
func (*TcpTranslator) GenerateListeners ¶ added in v0.18.0
func (t *TcpTranslator) GenerateListeners(ctx context.Context, snap *v2.ApiSnapshot, filteredGateways []*v2.Gateway, reports reporter.ResourceReports) []*gloov1.Listener
type Translator ¶ added in v0.18.0
type Translator interface {
Translate(ctx context.Context, proxyName, namespace string, snap *v2.ApiSnapshot, filteredGateways v2.GatewayList) (*gloov1.Proxy, reporter.ResourceReports)
}
Click to show internal directories.
Click to hide internal directories.