trafficconfig

package
v0.0.0-...-59d7cbf Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleRateLimiter

func HandleRateLimiter(ctx context.Context, trafficConfig *admiralv1.TrafficConfig, eventType types.EventType)

func HandleVirtualServiceForTrafficConfig

func HandleVirtualServiceForTrafficConfig(ctx context.Context, trafficconfig *admiralv1.TrafficConfig, _ chan controller.EventProcessStatus)

Types

type AppDialingDetails

type AppDialingDetails map[string]map[string]map[string]int // map[TGgroupName][AppAssetName][hostName][weightPercentage]  == per targetGroup - group all app assets and then host Details

type DefaultTrafficConfigHandler

type DefaultTrafficConfigHandler struct{}

func (*DefaultTrafficConfigHandler) Added

func (tch *DefaultTrafficConfigHandler) Added(ctx context.Context, obj interface{}, statusChan chan controller.EventProcessStatus) controller.EventStatus

func (*DefaultTrafficConfigHandler) Deleted

func (tch *DefaultTrafficConfigHandler) Deleted(ctx context.Context, obj interface{}, statusChan chan controller.EventProcessStatus) controller.EventStatus

func (*DefaultTrafficConfigHandler) OnStatus

func (*DefaultTrafficConfigHandler) TriggerTrafficConfigHandlerForIdentity

func (tch *DefaultTrafficConfigHandler) TriggerTrafficConfigHandlerForIdentity(ctx context.Context, identity string, statusChan chan controller.EventProcessStatus)

func (*DefaultTrafficConfigHandler) Updated

func (tch *DefaultTrafficConfigHandler) Updated(ctx context.Context, newObj interface{}, _ interface{}, statusChan chan controller.EventProcessStatus) controller.EventStatus

type Opts

type Opts struct{}

type RouteDetails

type RouteDetails struct {
	RouteName          string
	Inbound            string
	Outbound           string
	ConfigDetails      []*routeTargetInfo
	Timeout            *durationpb.Duration
	ServiceDialDetails []*endpointWeight
	AppDialingDetails  map[string][]*endpointWeight
}

type TrafficConfigHandler

type TrafficConfigHandler interface {
	handler.Handler
	TriggerTrafficConfigHandlerForIdentity(ctx context.Context, identity string, statusChan chan controller.EventProcessStatus)
}

func NewTrafficConfigHandler

func NewTrafficConfigHandler() TrafficConfigHandler

Jump to

Keyboard shortcuts

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