route

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (
	EndpointTypePassthrough  = "EndpointTypePassthrough"
	EndpointTypeInsecureEdge = "EndpointTypeInsecureEdge"
)

Variables

This section is empty.

Functions

func GetEndpointFromKubeObjects

func GetEndpointFromKubeObjects(c client.Client, obj types.NamespacedName) (endpoint.Endpoint, error)

GetEndpointFromKubeObjects check if the required Route is created and healthy. It populates the fields for the Endpoint needed for transfer and transport objects.

func NewEndpoint

func NewEndpoint(namespacedName types.NamespacedName, eType RouteEndpointType, labels map[string]string, subdomain string) endpoint.Endpoint

Types

type RouteEndpoint

type RouteEndpoint struct {
	// contains filtered or unexported fields
}

func (*RouteEndpoint) Create

func (r *RouteEndpoint) Create(c client.Client) error

func (*RouteEndpoint) ExposedPort

func (r *RouteEndpoint) ExposedPort() int32

func (*RouteEndpoint) Hostname

func (r *RouteEndpoint) Hostname() string

func (*RouteEndpoint) IsHealthy

func (r *RouteEndpoint) IsHealthy(c client.Client) (bool, error)

func (*RouteEndpoint) Labels

func (r *RouteEndpoint) Labels() map[string]string

func (*RouteEndpoint) NamespacedName

func (r *RouteEndpoint) NamespacedName() types.NamespacedName

func (*RouteEndpoint) Port

func (r *RouteEndpoint) Port() int32

type RouteEndpointType

type RouteEndpointType string

Jump to

Keyboard shortcuts

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