route

package
v0.0.0-...-23d2596 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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
}

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