publish

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 32 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPattern           = errors.New("endpoint pattern is invalid")
	ErrSegmentExceededMaxLength = errors.New("segment exceeded maximum length of 63 characters")
	ErrParsedEndpointIsNil      = errors.New("parsed endpoint pattern and recieved nil")
)

Functions

func Ingress

func Ingress(req router.Request, svc *v1.ServiceInstance) (result []kclient.Object, _ error)

func IngressClassNameIfNoDefault

func IngressClassNameIfNoDefault(ctx context.Context, client kclient.Client) (*string, error)

IngressClassNameIfNoDefault returns an ingress class name if there is exactly one IngressClass and it is not set as the default. We return a pointer here because "" is not a valid value for ingressClassName and will cause the ingress to fail.

func ServiceLoadBalancer

func ServiceLoadBalancer(req router.Request, svc *v1.ServiceInstance) (result []kclient.Object, _ error)

func ValidateEndpointPattern

func ValidateEndpointPattern(pattern string) error

Types

type TLSCert

type TLSCert struct {
	Certificate     x509.Certificate `json:"certificate,omitempty"`
	SecretName      string           `json:"secret-name,omitempty"`
	SecretNamespace string           `json:"secret-namespace,omitempty"`
}

type Target

type Target struct {
	Port    int32  `json:"port,omitempty"`
	Path    string `json:"path,omitempty"`
	Service string `json:"service,omitempty"`
}

Jump to

Keyboard shortcuts

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