middlewares

package
v1.5.14 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SWIFTv2Middleware

type SWIFTv2Middleware struct {
	Cli client.Client
}

func (*SWIFTv2Middleware) GetIPConfig

func (m *SWIFTv2Middleware) GetIPConfig(ctx context.Context, podInfo cns.PodInfo) (cns.PodIpInfo, error)

GetIPConfig returns the pod's SWIFT V2 IP configuration.

func (*SWIFTv2Middleware) SetRoutes

func (m *SWIFTv2Middleware) SetRoutes(podIPInfo *cns.PodIpInfo) error

SetRoutes sets the routes for podIPInfo used in SWIFT V2 scenario.

func (*SWIFTv2Middleware) ValidateIPConfigsRequest

func (m *SWIFTv2Middleware) ValidateIPConfigsRequest(ctx context.Context, req *cns.IPConfigsRequest) (respCode types.ResponseCode, message string)

ValidateIPConfigsRequest validates if pod is multitenant by checking the pod labels, used in SWIFT V2 scenario. nolint

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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