server

package
v0.0.0-...-58e557b Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NICMServer

type NICMServer struct {
	rpc.UnimplementedCNIBackendServer
	// contains filtered or unexported fields
}

func NewNICMServer

func NewNICMServer(conf conf2.ServerConf) *NICMServer

func (*NICMServer) AddNetwork

func (s *NICMServer) AddNetwork(context context.Context, in *rpc.NICMMessage) (*rpc.NICMMessage, error)

AddNetwork handle add pod request

func (*NICMServer) DelNetwork

func (s *NICMServer) DelNetwork(context context.Context, in *rpc.NICMMessage) (*rpc.NICMMessage, error)

DelNetwork handle del pod request

func (*NICMServer) GetNicStat

func (s *NICMServer) GetNicStat(context context.Context, args *rpc.NicStatMessage) (*rpc.NicStatMessage, error)

func (*NICMServer) Start

func (s *NICMServer) Start(stopCh <-chan struct{}) error

Jump to

Keyboard shortcuts

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