Documentation ¶
Index ¶
- type SWIFTv2Middleware
- func (m *SWIFTv2Middleware) GetIPConfig(ctx context.Context, podInfo cns.PodInfo) (cns.PodIpInfo, error)
- func (m *SWIFTv2Middleware) SetRoutes(podIPInfo *cns.PodIpInfo) error
- func (m *SWIFTv2Middleware) ValidateIPConfigsRequest(ctx context.Context, req *cns.IPConfigsRequest) (respCode types.ResponseCode, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SWIFTv2Middleware ¶
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
Click to show internal directories.
Click to hide internal directories.