nns

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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