routes

package
v2.11.26 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateRouteCommand

func NewCreateRouteCommand(
	p *config.KfParams,
	c routes.Client,
) *cobra.Command

NewCreateRouteCommand creates a CreateRoute command.

func NewDeleteOrphanedRoutesCommand

func NewDeleteOrphanedRoutesCommand(
	p *config.KfParams,
	c routes.Client,
) *cobra.Command

NewDeleteOrphanedRoutesCommand creates a command to delete orphaned routes.

func NewDeleteRouteCommand

func NewDeleteRouteCommand(
	p *config.KfParams,
	c routes.Client,
	a apps.Client,
) *cobra.Command

NewDeleteRouteCommand creates a DeleteRoute command. To delete a route and not have the controller bring it back, delete is a multistep process. First, unmap the route from each app that has it. Next, delete the Route.

func NewMapRouteCommand

func NewMapRouteCommand(
	p *config.KfParams,
	appsClient apps.Client,
) *cobra.Command

NewMapRouteCommand creates a MapRoute command.

func NewProxyRouteCommand

func NewProxyRouteCommand(p *config.KfParams) *cobra.Command

NewProxyRouteCommand creates a command capable of proxying a remote server locally.

func NewRoutesCommand

func NewRoutesCommand(p *config.KfParams) *cobra.Command

NewRoutesCommand allows users to list routes.

func NewUnmapRouteCommand

func NewUnmapRouteCommand(
	p *config.KfParams,
	appsClient apps.Client,
) *cobra.Command

NewUnmapRouteCommand creates a MapRoute command.

Types

type RouteFlags

type RouteFlags struct {
	Hostname string
	Path     string
}

RouteFlags includes commonly passed in flags to define a HTTP route.

func (*RouteFlags) Add

func (flags *RouteFlags) Add(cmd *cobra.Command)

Add appends the flags to the given command

func (*RouteFlags) RouteSpecFields

func (flags *RouteFlags) RouteSpecFields(domain string) v1alpha1.RouteSpecFields

RouteSpecFields converts the flags to a RouteSpecFields instance

Jump to

Keyboard shortcuts

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