pilot

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const OUTBOUND = "outbound"

OUTBOUND outbound

Variables

View Source
var DefaultPilotRefresh = 10 * time.Second

DefaultPilotRefresh is default pilot refresh time TODO: use stream instead

Functions

func GetEgressRule

func GetEgressRule() map[string][]*config.EgressRule

GetEgressRule get egress rule

func InitPilotFetcher

func InitPilotFetcher(o egress.Options) error

InitPilotFetcher init the config mgr and add several sources

func SetEgressRule

func SetEgressRule(rule map[string][]*config.EgressRule)

SetEgressRule set egress rule

Types

type PilotEgress

type PilotEgress struct{}

PilotEgress is pilot egress service

func (*PilotEgress) FetchEgressRule

func (r *PilotEgress) FetchEgressRule() map[string][]*config.EgressRule

FetchEgressRule return all rules

func (*PilotEgress) Init

func (r *PilotEgress) Init(o egress.Options) error

Init init egress config

func (*PilotEgress) SetEgressRule

func (r *PilotEgress) SetEgressRule(rr map[string][]*config.EgressRule)

SetEgressRule set rules

Jump to

Keyboard shortcuts

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