plugins

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRetriesPlugin

func NewRetriesPlugin() *retriesPlugin

Types

type InitParams

type InitParams struct {
	Ctx context.Context
}

type Params

type Params struct {
	Ctx       context.Context
	Upstreams gloov1.UpstreamList
}

type Plugin

type Plugin interface {
	// init on first loop, flush cache
	Init(params InitParams) error
}

func Plugins

func Plugins(kc kubernetes.Interface) []Plugin

type RoutingPlugin

type RoutingPlugin interface {
	Plugin
	ProcessRoutes(params Params, in v1.RoutingRuleSpec, out []*v1alpha1.RouteSpec) error
}

type ServiceProfilePlugin

type ServiceProfilePlugin interface {
	Plugin
	ProcessServiceProfile(params Params, in v1.RoutingRuleSpec, out *v1alpha1.ServiceProfileSpec) error
}

Jump to

Keyboard shortcuts

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