Documentation ¶
Index ¶
- type GrpcClient
- func (c *GrpcClient) AddContainerNetworking(ctx context.Context, podName, nwNamespace string) (error, *contracts.ConfigureContainerNetworkingResponse)
- func (c *GrpcClient) DeleteContainerNetworking(ctx context.Context, podName, nwNamespace string) (error, *contracts.ConfigureContainerNetworkingResponse)
- type MockGrpcClient
- func (c *MockGrpcClient) AddContainerNetworking(ctx context.Context, podName, nwNamespace string) (error, *contracts.ConfigureContainerNetworkingResponse)
- func (c *MockGrpcClient) DeleteContainerNetworking(ctx context.Context, podName, nwNamespace string) (error, *contracts.ConfigureContainerNetworkingResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcClient ¶
type GrpcClient struct { }
client to invoke Node network service APIs using grpc
func (*GrpcClient) AddContainerNetworking ¶
func (c *GrpcClient) AddContainerNetworking( ctx context.Context, podName, nwNamespace string) (error, *contracts.ConfigureContainerNetworkingResponse)
Add container to the network. Container Id is appended to the podName
func (*GrpcClient) DeleteContainerNetworking ¶
func (c *GrpcClient) DeleteContainerNetworking( ctx context.Context, podName, nwNamespace string) (error, *contracts.ConfigureContainerNetworkingResponse)
Add container to the network. Container Id is appended to the podName
type MockGrpcClient ¶
type MockGrpcClient struct { }
Mock client to simulate Node network service APIs
func (*MockGrpcClient) AddContainerNetworking ¶
func (c *MockGrpcClient) AddContainerNetworking( ctx context.Context, podName, nwNamespace string) (error, *contracts.ConfigureContainerNetworkingResponse)
Add container to the network. Container Id is appended to the podName
func (*MockGrpcClient) DeleteContainerNetworking ¶
func (c *MockGrpcClient) DeleteContainerNetworking( ctx context.Context, podName, nwNamespace string) (error, *contracts.ConfigureContainerNetworkingResponse)
Add container to the network. Container Id is appended to the podName
Click to show internal directories.
Click to hide internal directories.