Help us shape the future of Go! Take the 2026 Go Developer Survey

route

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenericRoute

func GenericRoute(routeInfo *GenericRouteDetails) *routev1.Route

GenericRoute func

Types

type GenericRouteDetails

type GenericRouteDetails struct {
	Name           string
	Namespace      string
	Labels         map[string]string
	ServiceName    string
	TargetPortName string
	FQDN           string
}

GenericRouteDetails -

type Route

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

Route -

func NewRoute

func NewRoute(
	route *routev1.Route,
	labels map[string]string,
	timeout time.Duration,
) *Route

NewRoute returns an initialized Route.

func (*Route) CreateOrPatch

func (r *Route) CreateOrPatch(
	ctx context.Context,
	h *helper.Helper,
) (ctrl.Result, error)

CreateOrPatch - creates or patches a route, reconciles after Xs if object won't exist.

func (*Route) Delete

func (r *Route) Delete(
	ctx context.Context,
	h *helper.Helper,
) error

Delete - delete a service.

func (*Route) GetHostname

func (r *Route) GetHostname() string

GetHostname - returns the hostname of the created route

Jump to

Keyboard shortcuts

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