Documentation ¶
Index ¶
- type GlooClient
- func (c *GlooClient) AddRoute(origin, destination string, route Route) error
- func (c *GlooClient) ConfigureService(serviceType string, retries uint32, timeout time.Duration) error
- func (c *GlooClient) Demo() error
- func (c *GlooClient) EnableBasicHttp(origin, destination string, config *types.Struct) error
- type Route
- type RouteList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlooClient ¶
func (*GlooClient) AddRoute ¶
func (c *GlooClient) AddRoute(origin, destination string, route Route) error
Currently routes are only supported on outbound listeners TODO(ilackarms): modify here and connect/plugin.go to support both ways
func (*GlooClient) ConfigureService ¶
func (*GlooClient) Demo ¶
func (c *GlooClient) Demo() error
func (*GlooClient) EnableBasicHttp ¶
func (c *GlooClient) EnableBasicHttp(origin, destination string, config *types.Struct) error
type Route ¶
type Route struct { Matcher *v1.RequestMatcher `json:"matcher"` Config *types.Struct `json:"config"` }
type RouteList ¶
type RouteList struct { // name of the origin service where the routes will be applied // leave empty to apply to all origins OriginServiceName string `json:"origin_service_name"` // name of the upstream service for all the routes // leave empty to apply to all destinations DestinationServiceName string `json:"destination_service_name"` }
Click to show internal directories.
Click to hide internal directories.