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 ¶
func ForEachSource(obj ObjectWithMetadata, fn func(source SourceRef) error) error
func GatewayContainsVirtualService ¶
func GatewayContainsVirtualService(gateway *v2.Gateway, virtualService *v1.VirtualService) bool
func ListenerName ¶
func NewDefaultTranslator ¶
func NewDefaultTranslator() *translator
func NewTranslator ¶
func NewTranslator(factories []ListenerFactory) *translator
func VirtualHostName ¶
func VirtualHostName(vs *v1.VirtualService) string
Types ¶
type HttpTranslator ¶
type HttpTranslator struct{}
func (*HttpTranslator) GenerateListeners ¶
func (t *HttpTranslator) GenerateListeners(ctx context.Context, snap *v2.ApiSnapshot, filteredGateways []*v2.Gateway, reports reporter.ResourceReports) []*gloov1.Listener
type ListenerFactory ¶
type ListenerFactory interface {
GenerateListeners(ctx context.Context, snap *v2.ApiSnapshot, filteredGateways []*v2.Gateway, reports reporter.ResourceReports) []*gloov1.Listener
}
type ObjectWithMetadata ¶
type SourceMetadata ¶
type SourceMetadata struct {
Sources []SourceRef `json:"sources"`
}
func GetSourceMeta ¶
func GetSourceMeta(obj ObjectWithMetadata) (*SourceMetadata, error)
func SourceMetaFromStruct ¶
func SourceMetaFromStruct(s *types.Struct) (*SourceMetadata, error)
type SourceRef ¶
type SourceRef struct { core.ResourceRef ResourceKind string `json:"kind"` ObservedGeneration int64 `json:"observedGeneration"` }
type TcpTranslator ¶
type TcpTranslator struct{}
func (*TcpTranslator) GenerateListeners ¶
func (t *TcpTranslator) GenerateListeners(ctx context.Context, snap *v2.ApiSnapshot, filteredGateways []*v2.Gateway, reports reporter.ResourceReports) []*gloov1.Listener
type Translator ¶
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.