Documentation ¶
Index ¶
- Variables
- type Client
- type SWIFTv2Middleware
- func (m *SWIFTv2Middleware) GetIPConfig(_ context.Context, podInfo cns.PodInfo) (cns.PodIpInfo, error)
- func (m *SWIFTv2Middleware) SetEnvVar()
- func (m *SWIFTv2Middleware) SetMTPNCReady()
- func (m *SWIFTv2Middleware) SetRoutes(podIPInfo *cns.PodIpInfo) error
- func (m *SWIFTv2Middleware) UnsetEnvVar() error
- func (m *SWIFTv2Middleware) ValidateIPConfigsRequest(_ context.Context, req *cns.IPConfigsRequest) (respCode types.ResponseCode, message string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPodNotFound = errors.New("pod not found") ErrMTPNCNotFound = errors.New("mtpnc not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client implements the client.Client interface for testing. We only care about Get, the rest is nil ops.
type SWIFTv2Middleware ¶
type SWIFTv2Middleware struct {
// contains filtered or unexported fields
}
func NewMockSWIFTv2Middleware ¶
func NewMockSWIFTv2Middleware() *SWIFTv2Middleware
func (*SWIFTv2Middleware) GetIPConfig ¶
func (m *SWIFTv2Middleware) GetIPConfig(_ context.Context, podInfo cns.PodInfo) (cns.PodIpInfo, error)
GetSWIFTv2IPConfig(podInfo PodInfo) (*PodIpInfo, error) GetMultitenantIPConfig returns the IP config for a multitenant pod from the MTPNC CRD
func (*SWIFTv2Middleware) SetEnvVar ¶
func (m *SWIFTv2Middleware) SetEnvVar()
func (*SWIFTv2Middleware) SetMTPNCReady ¶
func (m *SWIFTv2Middleware) SetMTPNCReady()
func (*SWIFTv2Middleware) SetRoutes ¶
func (m *SWIFTv2Middleware) SetRoutes(podIPInfo *cns.PodIpInfo) error
func (*SWIFTv2Middleware) UnsetEnvVar ¶
func (m *SWIFTv2Middleware) UnsetEnvVar() error
func (*SWIFTv2Middleware) ValidateIPConfigsRequest ¶
func (m *SWIFTv2Middleware) ValidateIPConfigsRequest(_ context.Context, req *cns.IPConfigsRequest) (respCode types.ResponseCode, message string)
validateMultitenantIPConfigsRequest validates if pod is multitenant nolint
Click to show internal directories.
Click to hide internal directories.