glooclient

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlooClient

type GlooClient struct {
	Store storage.Interface
}

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 (c *GlooClient) ConfigureService(serviceType string, retries uint32, timeout time.Duration) error

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"`
}

Jump to

Keyboard shortcuts

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