rpcserver

package
v0.0.0-...-e1628ab Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetEnv

func SetEnv(request *cnipb.CniRequest)

Types

type CNIServer

type CNIServer struct {
	// contains filtered or unexported fields
}

func NewCNIServer

func NewCNIServer(k8sClient client.Client, datapathManager *datapath.DpManager) *CNIServer

func (*CNIServer) CmdAdd

func (s *CNIServer) CmdAdd(ctx context.Context, request *cnipb.CniRequest) (*cnipb.CniResponse, error)

func (*CNIServer) CmdCheck

func (s *CNIServer) CmdCheck(ctx context.Context, request *cnipb.CniRequest) (*cnipb.CniResponse, error)

func (*CNIServer) CmdDel

func (s *CNIServer) CmdDel(ctx context.Context, request *cnipb.CniRequest) (*cnipb.CniResponse, error)

func (*CNIServer) ParseConf

func (s *CNIServer) ParseConf(request *cnipb.CniRequest) (*cnitypes.NetConf, *etypes.CNIArgs, error)

func (*CNIServer) ParseResult

func (s *CNIServer) ParseResult(result *cniv1.Result) (*cnipb.CniResponse, error)

func (*CNIServer) RetError

func (s *CNIServer) RetError(code cnipb.ErrorCode, msg string, err error) (*cnipb.CniResponse, error)

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func NewCollectorServer

func NewCollectorServer(datapathManager *datapath.DpManager, stopChan <-chan struct{}) *Collector

func (*Collector) ArpStream

func (*Collector) GetChainBridge

func (c *Collector) GetChainBridge(ctx context.Context, req *emptypb.Empty) (*v1alpha1.ChainBridgeResp, error)

func (*Collector) Policy

type Getter

type Getter struct {
	// contains filtered or unexported fields
}

func NewGetterServer

func NewGetterServer(datapathManager *datapath.DpManager, proxyCache *ctrlProxy.Cache) *Getter

func (*Getter) GetAllRules

func (g *Getter) GetAllRules(context.Context, *emptypb.Empty) (*v1alpha1.RuleEntries, error)

func (*Getter) GetRulesByFlow

func (g *Getter) GetRulesByFlow(ctx context.Context, flowIDs *v1alpha1.FlowIDs) (*v1alpha1.RuleEntries, error)

func (*Getter) GetRulesByName

func (g *Getter) GetRulesByName(ctx context.Context, ruleIDs *v1alpha1.RuleIDs) (*v1alpha1.RuleEntries, error)

func (*Getter) GetSvcInfoBySvcID

func (g *Getter) GetSvcInfoBySvcID(ctx context.Context, svcID *v1alpha1.SvcID) (*v1alpha1.SvcInfo, error)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func Initialize

func Initialize(datapathManager *datapath.DpManager, k8sClient client.Client, enableCNI bool, proxyCache *ctrlProxy.Cache) *Server

func (*Server) Run

func (s *Server) Run(stopChan <-chan struct{})

Jump to

Keyboard shortcuts

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