Documentation
¶
Index ¶
- type CommonRoute
- type GatewayID
- type HTTPFilter
- type HTTPFilterType
- type HTTPHeaderFilter
- type HTTPHeaderMatch
- type HTTPHeaderMatchType
- type HTTPMatch
- type HTTPMethod
- type HTTPPathMatch
- type HTTPPathMatchType
- type HTTPQueryMatch
- type HTTPQueryMatchType
- type HTTPRedirectFilter
- type HTTPRoute
- type HTTPRouteBuilder
- func (b *HTTPRouteBuilder) Build() ResolvedRoute
- func (b *HTTPRouteBuilder) WithHostnames(hostnames []string) *HTTPRouteBuilder
- func (b *HTTPRouteBuilder) WithMeta(meta map[string]string) *HTTPRouteBuilder
- func (b *HTTPRouteBuilder) WithName(name string) *HTTPRouteBuilder
- func (b *HTTPRouteBuilder) WithNamespace(namespace string) *HTTPRouteBuilder
- func (b *HTTPRouteBuilder) WithRules(rules []HTTPRouteRule) *HTTPRouteBuilder
- type HTTPRouteRule
- type HTTPService
- type ResolvedGateway
- type ResolvedListener
- type ResolvedRoute
- type ResolvedRouteType
- type ResolvedService
- type SyncAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonRoute ¶
func (CommonRoute) GetMeta ¶
func (c CommonRoute) GetMeta() map[string]string
func (CommonRoute) GetName ¶
func (c CommonRoute) GetName() string
func (CommonRoute) GetNamespace ¶
func (c CommonRoute) GetNamespace() string
type HTTPFilter ¶
type HTTPFilter struct {
Type HTTPFilterType
Header HTTPHeaderFilter
Redirect HTTPRedirectFilter
}
type HTTPFilterType ¶
type HTTPFilterType int
const ( HTTPHeaderFilterType HTTPFilterType = iota HTTPRedirectFilterType )
type HTTPHeaderFilter ¶
type HTTPHeaderMatch ¶
type HTTPHeaderMatch struct {
Type HTTPHeaderMatchType
Name string
Value string
}
type HTTPHeaderMatchType ¶
type HTTPHeaderMatchType int
const ( HTTPHeaderMatchNoneType HTTPHeaderMatchType = iota HTTPHeaderMatchExactType HTTPHeaderMatchPrefixType HTTPHeaderMatchSuffixType HTTPHeaderMatchPresentType HTTPHeaderMatchRegularExpressionType )
type HTTPMatch ¶
type HTTPMatch struct {
Path HTTPPathMatch
Headers []HTTPHeaderMatch
Query []HTTPQueryMatch
Method HTTPMethod
}
type HTTPMethod ¶
type HTTPMethod int
const ( HTTPMethodNone HTTPMethod = iota HTTPMethodConnect HTTPMethodDelete HTTPMethodGet HTTPMethodHead HTTPMethodOptions HTTPMethodPatch HTTPMethodPost HTTPMethodPut HTTPMethodTrace )
type HTTPPathMatch ¶
type HTTPPathMatch struct {
Type HTTPPathMatchType
Value string
}
type HTTPPathMatchType ¶
type HTTPPathMatchType int
const ( HTTPPathMatchNoneType HTTPPathMatchType = iota HTTPPathMatchExactType HTTPPathMatchPrefixType HTTPPathMatchRegularExpressionType )
type HTTPQueryMatch ¶
type HTTPQueryMatch struct {
Type HTTPQueryMatchType
Name string
Value string
}
type HTTPQueryMatchType ¶
type HTTPQueryMatchType int
const ( HTTPQueryMatchNoneType HTTPQueryMatchType = iota HTTPQueryMatchExactType HTTPQueryMatchPresentType HTTPQueryMatchRegularExpressionType )
type HTTPRedirectFilter ¶
type HTTPRoute ¶
type HTTPRoute struct {
CommonRoute
Hostnames []string
Rules []HTTPRouteRule
}
func (HTTPRoute) GetType ¶
func (r HTTPRoute) GetType() ResolvedRouteType
type HTTPRouteBuilder ¶
type HTTPRouteBuilder struct {
// contains filtered or unexported fields
}
func NewHTTPRouteBuilder ¶
func NewHTTPRouteBuilder() *HTTPRouteBuilder
func (*HTTPRouteBuilder) Build ¶
func (b *HTTPRouteBuilder) Build() ResolvedRoute
func (*HTTPRouteBuilder) WithHostnames ¶
func (b *HTTPRouteBuilder) WithHostnames(hostnames []string) *HTTPRouteBuilder
func (*HTTPRouteBuilder) WithMeta ¶
func (b *HTTPRouteBuilder) WithMeta(meta map[string]string) *HTTPRouteBuilder
func (*HTTPRouteBuilder) WithName ¶
func (b *HTTPRouteBuilder) WithName(name string) *HTTPRouteBuilder
func (*HTTPRouteBuilder) WithNamespace ¶
func (b *HTTPRouteBuilder) WithNamespace(namespace string) *HTTPRouteBuilder
func (*HTTPRouteBuilder) WithRules ¶
func (b *HTTPRouteBuilder) WithRules(rules []HTTPRouteRule) *HTTPRouteBuilder
type HTTPRouteRule ¶
type HTTPRouteRule struct {
Matches []HTTPMatch
Filters []HTTPFilter
Services []HTTPService
}
type HTTPService ¶
type HTTPService struct {
Service ResolvedService
Weight int32
Filters []HTTPFilter
}
type ResolvedGateway ¶
type ResolvedGateway struct {
ID GatewayID
Meta map[string]string
Listeners []ResolvedListener
}
type ResolvedListener ¶
type ResolvedRoute ¶
type ResolvedRoute interface {
GetType() ResolvedRouteType
GetMeta() map[string]string
GetName() string
GetNamespace() string
}
type ResolvedRouteType ¶
type ResolvedRouteType int
const ( ResolvedHTTPRouteType ResolvedRouteType = iota ResolvedTCPRouteType ResolvedTLSRouteType ResolvedUDPRouteType )
type ResolvedService ¶
type SyncAdapter ¶
type SyncAdapter interface {
Sync(ctx context.Context, gateway ResolvedGateway) error
Clear(ctx context.Context, id GatewayID) error
}
SyncAdapter is used for synchronizing store state to an external system
Click to show internal directories.
Click to hide internal directories.