Documentation
¶
Index ¶
- func Extension(r *v1.Route) string
- func FromRouteDetail(rd *RouteDetail) (*v1.Route, error)
- func FromRouteOption(opts *RouteOption, 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 KubeUpstream
- type RouteDetail
- type RouteOption
- type SelectionResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extension ¶
func Extension(r *v1.Route) string
Extension extracts extensions in a given route as a pretty printed string
func FromRouteDetail ¶ added in v0.2.7
func FromRouteDetail(rd *RouteDetail) (*v1.Route, error)
func FromRouteOption ¶ added in v0.2.7
func FromRouteOption(opts *RouteOption, sc storage.Interface) (*v1.Route, error)
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
func SortRoutes(routes []*v1.Route)
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 KubeUpstream ¶ added in v0.2.7
type RouteDetail ¶ added in v0.2.7
type RouteOption ¶ added in v0.2.7
type SelectionResult ¶
type SelectionResult struct {
Selected []*v1.Route
NotSelected []*v1.Route
}
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.