Documentation ¶
Index ¶
- func NewAllowedRoutesFromAllNamespaces() *gatewayv1beta1.AllowedRoutes
- func NewAllowedRoutesFromSameNamespaces() *gatewayv1beta1.AllowedRoutes
- func NewAllowedRoutesFromSelectorNamespace(selector *metav1.LabelSelector) *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 EndpointPortBuilder
- 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 HTTPRouteFilterBuilder
- func (b *HTTPRouteFilterBuilder) Build() gatewayv1beta1.HTTPRouteFilter
- func (b *HTTPRouteFilterBuilder) WithRequestHeaderAdd(headers []gatewayv1beta1.HTTPHeader) *HTTPRouteFilterBuilder
- func (b *HTTPRouteFilterBuilder) WithRequestHeaderRemove(headerNames []string) *HTTPRouteFilterBuilder
- func (b *HTTPRouteFilterBuilder) WithRequestHeaderSet(headers []gatewayv1beta1.HTTPHeader) *HTTPRouteFilterBuilder
- func (b *HTTPRouteFilterBuilder) WithRequestRedirectHost(host string) *HTTPRouteFilterBuilder
- func (b *HTTPRouteFilterBuilder) WithRequestRedirectScheme(scheme string) *HTTPRouteFilterBuilder
- func (b *HTTPRouteFilterBuilder) WithRequestRedirectStatusCode(code int) *HTTPRouteFilterBuilder
- type HTTPRouteMatchBuilder
- func (b *HTTPRouteMatchBuilder) Build() gatewayv1beta1.HTTPRouteMatch
- func (b *HTTPRouteMatchBuilder) ToSlice() []gatewayv1beta1.HTTPRouteMatch
- func (b *HTTPRouteMatchBuilder) WithHeader(name, value string) *HTTPRouteMatchBuilder
- func (b *HTTPRouteMatchBuilder) WithHeaderRegex(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 IngressBuilder
- 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
- type ServicePortBuilder
- func (b *ServicePortBuilder) Build() corev1.ServicePort
- func (b *ServicePortBuilder) IntoSlice() []corev1.ServicePort
- func (b *ServicePortBuilder) WithAppProtocol(appproto string) *ServicePortBuilder
- func (b *ServicePortBuilder) WithName(name string) *ServicePortBuilder
- func (b *ServicePortBuilder) WithNodePort(port int32) *ServicePortBuilder
- func (b *ServicePortBuilder) WithPort(port int32) *ServicePortBuilder
- func (b *ServicePortBuilder) WithProtocol(proto corev1.Protocol) *ServicePortBuilder
- func (b *ServicePortBuilder) WithTargetPort(targetport intstr.IntOrString) *ServicePortBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAllowedRoutesFromAllNamespaces ¶
func NewAllowedRoutesFromAllNamespaces() *gatewayv1beta1.AllowedRoutes
func NewAllowedRoutesFromSameNamespaces ¶
func NewAllowedRoutesFromSameNamespaces() *gatewayv1beta1.AllowedRoutes
func NewAllowedRoutesFromSelectorNamespace ¶ added in v2.10.0
func NewAllowedRoutesFromSelectorNamespace(selector *metav1.LabelSelector) *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 EndpointPortBuilder ¶ added in v2.10.0
type EndpointPortBuilder struct {
// contains filtered or unexported fields
}
EndpointPortBuilder is a builder for discovery v1 EndpointPort. Primarily used for testing.
func NewEndpointPort ¶ added in v2.10.0
func NewEndpointPort(port int32) *EndpointPortBuilder
func (*EndpointPortBuilder) Build ¶ added in v2.10.0
func (b *EndpointPortBuilder) Build() discoveryv1.EndpointPort
Build returns the configured EndpointPort.
func (*EndpointPortBuilder) IntoSlice ¶ added in v2.10.0
func (b *EndpointPortBuilder) IntoSlice() []discoveryv1.EndpointPort
IntoSlice returns the configured EndpointPort in a slice.
func (*EndpointPortBuilder) WithName ¶ added in v2.10.0
func (b *EndpointPortBuilder) WithName(name string) *EndpointPortBuilder
WithName sets the name on the endpoint port.
func (*EndpointPortBuilder) WithProtocol ¶ added in v2.10.0
func (b *EndpointPortBuilder) WithProtocol(proto corev1.Protocol) *EndpointPortBuilder
WithProtocol sets the protocol on the endpoint port.
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 HTTPRouteFilterBuilder ¶ added in v2.10.0
type HTTPRouteFilterBuilder struct {
// contains filtered or unexported fields
}
HTTPRouteFilterBuilder is a builder for gateway api HTTPRouteMatch. Primarily used for testing.
func NewHTTPRouteRequestHeaderModifierFilter ¶ added in v2.10.0
func NewHTTPRouteRequestHeaderModifierFilter() *HTTPRouteFilterBuilder
NewHTTPRouteRequestHeaderModifierFilter builds a request header modifier HTTPRoute filter.
func NewHTTPRouteRequestRedirectFilter ¶ added in v2.10.0
func NewHTTPRouteRequestRedirectFilter() *HTTPRouteFilterBuilder
NewHTTPRouteRequestRedirectFilter builds a request redirect HTTPRoute filter.
func (*HTTPRouteFilterBuilder) Build ¶ added in v2.10.0
func (b *HTTPRouteFilterBuilder) Build() gatewayv1beta1.HTTPRouteFilter
func (*HTTPRouteFilterBuilder) WithRequestHeaderAdd ¶ added in v2.10.0
func (b *HTTPRouteFilterBuilder) WithRequestHeaderAdd(headers []gatewayv1beta1.HTTPHeader) *HTTPRouteFilterBuilder
func (*HTTPRouteFilterBuilder) WithRequestHeaderRemove ¶ added in v2.10.0
func (b *HTTPRouteFilterBuilder) WithRequestHeaderRemove(headerNames []string) *HTTPRouteFilterBuilder
func (*HTTPRouteFilterBuilder) WithRequestHeaderSet ¶ added in v2.10.0
func (b *HTTPRouteFilterBuilder) WithRequestHeaderSet(headers []gatewayv1beta1.HTTPHeader) *HTTPRouteFilterBuilder
func (*HTTPRouteFilterBuilder) WithRequestRedirectHost ¶ added in v2.10.0
func (b *HTTPRouteFilterBuilder) WithRequestRedirectHost(host string) *HTTPRouteFilterBuilder
WithRequestRedirectHost sets host of request redirect filter.
func (*HTTPRouteFilterBuilder) WithRequestRedirectScheme ¶ added in v2.10.0
func (b *HTTPRouteFilterBuilder) WithRequestRedirectScheme(scheme string) *HTTPRouteFilterBuilder
WithRequestRedirectScheme sets scheme of request redirect filter.
func (*HTTPRouteFilterBuilder) WithRequestRedirectStatusCode ¶ added in v2.10.0
func (b *HTTPRouteFilterBuilder) WithRequestRedirectStatusCode(code int) *HTTPRouteFilterBuilder
WithRequestRedirectStatusCode sets status code of response in request redirect filter.
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) ToSlice ¶ added in v2.9.4
func (b *HTTPRouteMatchBuilder) ToSlice() []gatewayv1beta1.HTTPRouteMatch
func (*HTTPRouteMatchBuilder) WithHeader ¶
func (b *HTTPRouteMatchBuilder) WithHeader(name, value string) *HTTPRouteMatchBuilder
func (*HTTPRouteMatchBuilder) WithHeaderRegex ¶ added in v2.10.0
func (b *HTTPRouteMatchBuilder) WithHeaderRegex(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 IngressBuilder ¶ added in v2.12.0
type IngressBuilder struct {
// contains filtered or unexported fields
}
func NewIngress ¶ added in v2.12.0
func NewIngress(name string, class string) *IngressBuilder
NewIngress builds an Ingress object with the given name and class, when "" is passed as class parameter the field .Spec.IngressClassName is not set.
func (*IngressBuilder) Build ¶ added in v2.12.0
func (b *IngressBuilder) Build() *netv1.Ingress
func (*IngressBuilder) WithLegacyClassAnnotation ¶ added in v2.12.0
func (b *IngressBuilder) WithLegacyClassAnnotation(class string) *IngressBuilder
func (*IngressBuilder) WithRules ¶ added in v2.12.0
func (b *IngressBuilder) WithRules(rules ...netv1.IngressRule) *IngressBuilder
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
type ServicePortBuilder ¶ added in v2.11.0
type ServicePortBuilder struct {
// contains filtered or unexported fields
}
ServicePortBuilder is a builder for core v1 ServicePort. Primarily used for testing.
func NewServicePort ¶ added in v2.11.0
func NewServicePort() *ServicePortBuilder
func (*ServicePortBuilder) Build ¶ added in v2.11.0
func (b *ServicePortBuilder) Build() corev1.ServicePort
Build returns the configured ServicePort.
func (*ServicePortBuilder) IntoSlice ¶ added in v2.11.0
func (b *ServicePortBuilder) IntoSlice() []corev1.ServicePort
IntoSlice returns the configured ServicePort in a slice.
func (*ServicePortBuilder) WithAppProtocol ¶ added in v2.11.0
func (b *ServicePortBuilder) WithAppProtocol(appproto string) *ServicePortBuilder
WithAppProtocol sets the app protocol on the service port.
func (*ServicePortBuilder) WithName ¶ added in v2.11.0
func (b *ServicePortBuilder) WithName(name string) *ServicePortBuilder
WithName sets the name on the service port.
func (*ServicePortBuilder) WithNodePort ¶ added in v2.11.0
func (b *ServicePortBuilder) WithNodePort(port int32) *ServicePortBuilder
WithNodePort sets the target port on the service port.
func (*ServicePortBuilder) WithPort ¶ added in v2.11.0
func (b *ServicePortBuilder) WithPort(port int32) *ServicePortBuilder
WithPort sets the port on the service port.
func (*ServicePortBuilder) WithProtocol ¶ added in v2.11.0
func (b *ServicePortBuilder) WithProtocol(proto corev1.Protocol) *ServicePortBuilder
WithProtocol sets the protocol on the service port.
func (*ServicePortBuilder) WithTargetPort ¶ added in v2.11.0
func (b *ServicePortBuilder) WithTargetPort(targetport intstr.IntOrString) *ServicePortBuilder
WithTargetPort sets the target port on the service port.