builder

package
v2.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 (*BackendRefBuilder) ToSlice

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 (*HTTPBackendRefBuilder) WithGroup

func (b *HTTPBackendRefBuilder) WithGroup(group string) *HTTPBackendRefBuilder

func (*HTTPBackendRefBuilder) WithKind

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 (*HTTPRouteMatchBuilder) WithHeader

func (b *HTTPRouteMatchBuilder) WithHeader(name, value string) *HTTPRouteMatchBuilder

func (*HTTPRouteMatchBuilder) WithMethod

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 (*KongstateServiceBackendBuilder) WithNamespace

func (*KongstateServiceBackendBuilder) WithPortNumber

func (*KongstateServiceBackendBuilder) WithWeight

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

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

Build returns the configured RouteGroupKind.

func (*RouteGroupKindBuilder) HTTPRoute

func (*RouteGroupKindBuilder) IntoSlice

IntoSlice returns the configured RouteGroupKind in a slice.

func (*RouteGroupKindBuilder) TCPRoute

func (*RouteGroupKindBuilder) TLSRoute

func (*RouteGroupKindBuilder) UDPRoute

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

Build returns the configured RouteNamespaces.

func (*RouteNamespacesBuilder) FromAll

func (*RouteNamespacesBuilder) FromSame

func (*RouteNamespacesBuilder) FromSelector

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL