Documentation ¶
Index ¶
- func NewAllowedRoutesFromAllNamespaces() *gatewayv1beta1.AllowedRoutes
- func NewAllowedRoutesFromSameNamespaces() *gatewayv1beta1.AllowedRoutes
- type BackendRefBuilder
- func (b *BackendRefBuilder) Build() gatewayv1alpha2.BackendRef
- func (b *BackendRefBuilder) ToSlice() []gatewayv1alpha2.BackendRef
- func (b *BackendRefBuilder) WithGroup(group string) *BackendRefBuilder
- func (b *BackendRefBuilder) WithKind(kind string) *BackendRefBuilder
- func (b *BackendRefBuilder) WithNamespace(namespace string) *BackendRefBuilder
- func (b *BackendRefBuilder) WithPort(port int) *BackendRefBuilder
- func (b *BackendRefBuilder) WithWeight(weight int) *BackendRefBuilder
- type HTTPBackendRefBuilder
- func (b *HTTPBackendRefBuilder) Build() gatewayv1beta1.HTTPBackendRef
- func (b *HTTPBackendRefBuilder) ToSlice() []gatewayv1beta1.HTTPBackendRef
- func (b *HTTPBackendRefBuilder) WithGroup(group string) *HTTPBackendRefBuilder
- func (b *HTTPBackendRefBuilder) WithKind(kind string) *HTTPBackendRefBuilder
- func (b *HTTPBackendRefBuilder) WithNamespace(namespace string) *HTTPBackendRefBuilder
- func (b *HTTPBackendRefBuilder) WithPort(port int) *HTTPBackendRefBuilder
- func (b *HTTPBackendRefBuilder) WithWeight(weight int) *HTTPBackendRefBuilder
- type HTTPRouteMatchBuilder
- func (b *HTTPRouteMatchBuilder) Build() gatewayv1beta1.HTTPRouteMatch
- func (b *HTTPRouteMatchBuilder) WithHeader(name, value string) *HTTPRouteMatchBuilder
- func (b *HTTPRouteMatchBuilder) WithMethod(method gatewayv1beta1.HTTPMethod) *HTTPRouteMatchBuilder
- func (b *HTTPRouteMatchBuilder) WithPathExact(pathRegexp string) *HTTPRouteMatchBuilder
- func (b *HTTPRouteMatchBuilder) WithPathPrefix(pathPrefix string) *HTTPRouteMatchBuilder
- func (b *HTTPRouteMatchBuilder) WithPathRegex(pathRegexp string) *HTTPRouteMatchBuilder
- func (b *HTTPRouteMatchBuilder) WithPathType(pathValuePtr *string, pathTypePtr *gatewayv1beta1.PathMatchType) *HTTPRouteMatchBuilder
- func (b *HTTPRouteMatchBuilder) WithQueryParam(name, value string) *HTTPRouteMatchBuilder
- type KongstateServiceBackendBuilder
- func (b *KongstateServiceBackendBuilder) Build() kongstate.ServiceBackend
- func (b *KongstateServiceBackendBuilder) WithNamespace(namespace string) *KongstateServiceBackendBuilder
- func (b *KongstateServiceBackendBuilder) WithPortNumber(port int) *KongstateServiceBackendBuilder
- func (b *KongstateServiceBackendBuilder) WithWeight(weight int) *KongstateServiceBackendBuilder
- type ListenerBuilder
- func (b *ListenerBuilder) Build() gatewayv1beta1.Listener
- func (b *ListenerBuilder) HTTP() *ListenerBuilder
- func (b *ListenerBuilder) HTTPS() *ListenerBuilder
- func (b *ListenerBuilder) IntoSlice() []gatewayv1beta1.Listener
- func (b *ListenerBuilder) TCP() *ListenerBuilder
- func (b *ListenerBuilder) TLS() *ListenerBuilder
- func (b *ListenerBuilder) UDP() *ListenerBuilder
- func (b *ListenerBuilder) WithAllowedRoutes(routes *gatewayv1beta1.AllowedRoutes) *ListenerBuilder
- func (b *ListenerBuilder) WithHostname(hostname string) *ListenerBuilder
- func (b *ListenerBuilder) WithPort(port int) *ListenerBuilder
- func (b *ListenerBuilder) WithTLSConfig(tlsConfig *gatewayv1beta1.GatewayTLSConfig) *ListenerBuilder
- type RouteGroupKindBuilder
- func (b *RouteGroupKindBuilder) Build() gatewayv1beta1.RouteGroupKind
- func (b *RouteGroupKindBuilder) GRPCRoute() *RouteGroupKindBuilder
- func (b *RouteGroupKindBuilder) HTTPRoute() *RouteGroupKindBuilder
- func (b *RouteGroupKindBuilder) IntoSlice() []gatewayv1beta1.RouteGroupKind
- func (b *RouteGroupKindBuilder) TCPRoute() *RouteGroupKindBuilder
- func (b *RouteGroupKindBuilder) TLSRoute() *RouteGroupKindBuilder
- func (b *RouteGroupKindBuilder) UDPRoute() *RouteGroupKindBuilder
- type RouteNamespacesBuilder
- func (b *RouteNamespacesBuilder) Build() *gatewayv1beta1.RouteNamespaces
- func (b *RouteNamespacesBuilder) FromAll() *RouteNamespacesBuilder
- func (b *RouteNamespacesBuilder) FromSame() *RouteNamespacesBuilder
- func (b *RouteNamespacesBuilder) FromSelector(s *metav1.LabelSelector) *RouteNamespacesBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAllowedRoutesFromAllNamespaces ¶
func NewAllowedRoutesFromAllNamespaces() *gatewayv1beta1.AllowedRoutes
func NewAllowedRoutesFromSameNamespaces ¶
func NewAllowedRoutesFromSameNamespaces() *gatewayv1beta1.AllowedRoutes
Types ¶
type BackendRefBuilder ¶
type BackendRefBuilder struct {
// contains filtered or unexported fields
}
BackendRefBuilder is a builder for gateway api BackendRef. Will set default values, as specified in the gateway API, for fields that are not set. Primarily used for testing.
func NewBackendRef ¶
func NewBackendRef(name string) *BackendRefBuilder
func (*BackendRefBuilder) Build ¶
func (b *BackendRefBuilder) Build() gatewayv1alpha2.BackendRef
func (*BackendRefBuilder) ToSlice ¶
func (b *BackendRefBuilder) ToSlice() []gatewayv1alpha2.BackendRef
func (*BackendRefBuilder) WithGroup ¶
func (b *BackendRefBuilder) WithGroup(group string) *BackendRefBuilder
func (*BackendRefBuilder) WithKind ¶
func (b *BackendRefBuilder) WithKind(kind string) *BackendRefBuilder
func (*BackendRefBuilder) WithNamespace ¶
func (b *BackendRefBuilder) WithNamespace(namespace string) *BackendRefBuilder
func (*BackendRefBuilder) WithPort ¶
func (b *BackendRefBuilder) WithPort(port int) *BackendRefBuilder
func (*BackendRefBuilder) WithWeight ¶
func (b *BackendRefBuilder) WithWeight(weight int) *BackendRefBuilder
type HTTPBackendRefBuilder ¶
type HTTPBackendRefBuilder struct {
// contains filtered or unexported fields
}
HTTPBackendRefBuilder is a builder for gateway api HTTPBackendRef. Will set default values, as specified in the gateway API, for fields that are not set. Primarily used for testing.
func NewHTTPBackendRef ¶
func NewHTTPBackendRef(name string) *HTTPBackendRefBuilder
func (*HTTPBackendRefBuilder) Build ¶
func (b *HTTPBackendRefBuilder) Build() gatewayv1beta1.HTTPBackendRef
func (*HTTPBackendRefBuilder) ToSlice ¶ added in v2.9.0
func (b *HTTPBackendRefBuilder) ToSlice() []gatewayv1beta1.HTTPBackendRef
func (*HTTPBackendRefBuilder) WithGroup ¶
func (b *HTTPBackendRefBuilder) WithGroup(group string) *HTTPBackendRefBuilder
func (*HTTPBackendRefBuilder) WithKind ¶
func (b *HTTPBackendRefBuilder) WithKind(kind string) *HTTPBackendRefBuilder
func (*HTTPBackendRefBuilder) WithNamespace ¶
func (b *HTTPBackendRefBuilder) WithNamespace(namespace string) *HTTPBackendRefBuilder
func (*HTTPBackendRefBuilder) WithPort ¶
func (b *HTTPBackendRefBuilder) WithPort(port int) *HTTPBackendRefBuilder
func (*HTTPBackendRefBuilder) WithWeight ¶
func (b *HTTPBackendRefBuilder) WithWeight(weight int) *HTTPBackendRefBuilder
type HTTPRouteMatchBuilder ¶
type HTTPRouteMatchBuilder struct {
// contains filtered or unexported fields
}
HTTPRouteMatchBuilder is a builder for gateway api HTTPRouteMatch. Primarily used for testing. Please note that some methods are not provided yet, as we don't need them yet. Feel free to add them as needed.
func NewHTTPRouteMatch ¶
func NewHTTPRouteMatch() *HTTPRouteMatchBuilder
func (*HTTPRouteMatchBuilder) Build ¶
func (b *HTTPRouteMatchBuilder) Build() gatewayv1beta1.HTTPRouteMatch
func (*HTTPRouteMatchBuilder) WithHeader ¶
func (b *HTTPRouteMatchBuilder) WithHeader(name, value string) *HTTPRouteMatchBuilder
func (*HTTPRouteMatchBuilder) WithMethod ¶
func (b *HTTPRouteMatchBuilder) WithMethod(method gatewayv1beta1.HTTPMethod) *HTTPRouteMatchBuilder
func (*HTTPRouteMatchBuilder) WithPathExact ¶
func (b *HTTPRouteMatchBuilder) WithPathExact(pathRegexp string) *HTTPRouteMatchBuilder
func (*HTTPRouteMatchBuilder) WithPathPrefix ¶
func (b *HTTPRouteMatchBuilder) WithPathPrefix(pathPrefix string) *HTTPRouteMatchBuilder
func (*HTTPRouteMatchBuilder) WithPathRegex ¶
func (b *HTTPRouteMatchBuilder) WithPathRegex(pathRegexp string) *HTTPRouteMatchBuilder
func (*HTTPRouteMatchBuilder) WithPathType ¶
func (b *HTTPRouteMatchBuilder) WithPathType(pathValuePtr *string, pathTypePtr *gatewayv1beta1.PathMatchType) *HTTPRouteMatchBuilder
func (*HTTPRouteMatchBuilder) WithQueryParam ¶
func (b *HTTPRouteMatchBuilder) WithQueryParam(name, value string) *HTTPRouteMatchBuilder
type KongstateServiceBackendBuilder ¶
type KongstateServiceBackendBuilder struct {
// contains filtered or unexported fields
}
KongstateServiceBackendBuilder is a builder for KongstateServiceBackend. Primarily used for testing.
func NewKongstateServiceBackend ¶
func NewKongstateServiceBackend(name string) *KongstateServiceBackendBuilder
func (*KongstateServiceBackendBuilder) Build ¶
func (b *KongstateServiceBackendBuilder) Build() kongstate.ServiceBackend
func (*KongstateServiceBackendBuilder) WithNamespace ¶
func (b *KongstateServiceBackendBuilder) WithNamespace(namespace string) *KongstateServiceBackendBuilder
func (*KongstateServiceBackendBuilder) WithPortNumber ¶
func (b *KongstateServiceBackendBuilder) WithPortNumber(port int) *KongstateServiceBackendBuilder
func (*KongstateServiceBackendBuilder) WithWeight ¶
func (b *KongstateServiceBackendBuilder) WithWeight(weight int) *KongstateServiceBackendBuilder
type ListenerBuilder ¶
type ListenerBuilder struct {
// contains filtered or unexported fields
}
ListenerBuilder is a builder for gateway api Listener. Will set default values, as specified in the gateway API, for fields that are not set. Primarily used for testing.
func NewListener ¶
func NewListener(name string) *ListenerBuilder
func (*ListenerBuilder) Build ¶
func (b *ListenerBuilder) Build() gatewayv1beta1.Listener
Build returns the configured Listener.
func (*ListenerBuilder) HTTP ¶
func (b *ListenerBuilder) HTTP() *ListenerBuilder
func (*ListenerBuilder) HTTPS ¶
func (b *ListenerBuilder) HTTPS() *ListenerBuilder
func (*ListenerBuilder) IntoSlice ¶
func (b *ListenerBuilder) IntoSlice() []gatewayv1beta1.Listener
IntoSlice returns the configured Listener in a slice.
func (*ListenerBuilder) TCP ¶
func (b *ListenerBuilder) TCP() *ListenerBuilder
func (*ListenerBuilder) TLS ¶
func (b *ListenerBuilder) TLS() *ListenerBuilder
func (*ListenerBuilder) UDP ¶
func (b *ListenerBuilder) UDP() *ListenerBuilder
func (*ListenerBuilder) WithAllowedRoutes ¶
func (b *ListenerBuilder) WithAllowedRoutes(routes *gatewayv1beta1.AllowedRoutes) *ListenerBuilder
func (*ListenerBuilder) WithHostname ¶
func (b *ListenerBuilder) WithHostname(hostname string) *ListenerBuilder
func (*ListenerBuilder) WithPort ¶
func (b *ListenerBuilder) WithPort(port int) *ListenerBuilder
func (*ListenerBuilder) WithTLSConfig ¶
func (b *ListenerBuilder) WithTLSConfig(tlsConfig *gatewayv1beta1.GatewayTLSConfig) *ListenerBuilder
type RouteGroupKindBuilder ¶
type RouteGroupKindBuilder struct {
// contains filtered or unexported fields
}
RouteGroupKindBuilder is a builder for gateway api RouteGroupKind. Will set default values, as specified in the gateway API, for fields that are not set. Primarily used for testing.
func NewRouteGroupKind ¶
func NewRouteGroupKind() *RouteGroupKindBuilder
func (*RouteGroupKindBuilder) Build ¶
func (b *RouteGroupKindBuilder) Build() gatewayv1beta1.RouteGroupKind
Build returns the configured RouteGroupKind.
func (*RouteGroupKindBuilder) GRPCRoute ¶ added in v2.9.0
func (b *RouteGroupKindBuilder) GRPCRoute() *RouteGroupKindBuilder
func (*RouteGroupKindBuilder) HTTPRoute ¶
func (b *RouteGroupKindBuilder) HTTPRoute() *RouteGroupKindBuilder
func (*RouteGroupKindBuilder) IntoSlice ¶
func (b *RouteGroupKindBuilder) IntoSlice() []gatewayv1beta1.RouteGroupKind
IntoSlice returns the configured RouteGroupKind in a slice.
func (*RouteGroupKindBuilder) TCPRoute ¶
func (b *RouteGroupKindBuilder) TCPRoute() *RouteGroupKindBuilder
func (*RouteGroupKindBuilder) TLSRoute ¶
func (b *RouteGroupKindBuilder) TLSRoute() *RouteGroupKindBuilder
func (*RouteGroupKindBuilder) UDPRoute ¶
func (b *RouteGroupKindBuilder) UDPRoute() *RouteGroupKindBuilder
type RouteNamespacesBuilder ¶
type RouteNamespacesBuilder struct {
// contains filtered or unexported fields
}
RouteNamespacesBuilder is a builder for gateway api RouteNamespaces. Will set default values, as specified in the gateway API, for fields that are not set. Primarily used for testing.
func NewRouteNamespaces ¶
func NewRouteNamespaces() *RouteNamespacesBuilder
func (*RouteNamespacesBuilder) Build ¶
func (b *RouteNamespacesBuilder) Build() *gatewayv1beta1.RouteNamespaces
Build returns the configured RouteNamespaces.
func (*RouteNamespacesBuilder) FromAll ¶
func (b *RouteNamespacesBuilder) FromAll() *RouteNamespacesBuilder
func (*RouteNamespacesBuilder) FromSame ¶
func (b *RouteNamespacesBuilder) FromSame() *RouteNamespacesBuilder
func (*RouteNamespacesBuilder) FromSelector ¶
func (b *RouteNamespacesBuilder) FromSelector(s *metav1.LabelSelector) *RouteNamespacesBuilder