Documentation ¶
Index ¶
- func Extension(r *v1.Route) string
- func FromDetail(rd *Detail) (*v1.Route, error)
- func FromOption(opts *Option, sc storage.Interface) (*v1.Route, error)
- func Interactive(sc storage.Interface, r *v1.Route) error
- func Matcher(r *v1.Route) (string, string, string, string)
- func PrintTable(list []*v1.Route, w io.Writer)
- func SortRoutes(routes []*v1.Route)
- type Destination
- type Detail
- type KubeUpstream
- type Option
- type SelectionResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromOption ¶ added in v0.2.9
func Interactive ¶ added in v0.2.7
Interactive allows user to create/update a route definition interactively
func PrintTable ¶
PrintTable prints the list of routes as a table
func SortRoutes ¶ added in v0.2.7
Types ¶
type Destination ¶
Destination represents a single destination of a route It can be either an upstream or upstream-function pair
func Destinations ¶
func Destinations(r *v1.Route) []Destination
Destinations extracts the list of destinations in a given route
func (*Destination) String ¶
func (d *Destination) String() string
type Detail ¶ added in v0.2.9
type KubeUpstream ¶ added in v0.2.7
type SelectionResult ¶
SelectionResult groups routes into selected and not selected list
func SelectInteractive ¶
func SelectInteractive(routes []*v1.Route, multi bool) (*SelectionResult, error)
SelectInteractive selectes one or more routes interactively. If multi is true it enables selecting multiple routess
Click to show internal directories.
Click to hide internal directories.