Documentation
¶
Index ¶
- Variables
- func CloseGNMIConn()
- func CloseP4RtCCon()
- func GetFwdPipe(ctx context.Context, responseType client.GetFwdPipeResponseType) (*client.FwdPipeConfig, error)
- func GetLogLevel() string
- func InitModCtr()
- func InsertDefaultRule()
- func OpenGNMICCon() error
- func OpenP4RtC(ctx context.Context, high uint64, low uint64, stopCh <-chan struct{}) error
- func PutConf(c *conf.Configuration)
- func SetFwdPipe(ctx context.Context, binPath string, p4InfoPath string, cookie uint64) (*client.FwdPipeConfig, error)
- func SetHostInterface()
- type ApiServer
- func (s *ApiServer) ActivePolicyRemove(ctx context.Context, in *proto.ActivePolicyRemove) (*proto.Reply, error)
- func (s *ApiServer) ActivePolicyUpdate(ctx context.Context, in *proto.ActivePolicyUpdate) (*proto.Reply, error)
- func (s *ApiServer) AddDelSnatPrefix(ctx context.Context, in *proto.AddDelSnatPrefixRequest) (*proto.Reply, error)
- func (s *ApiServer) Check(ctx context.Context, in *healthgrpc.HealthCheckRequest) (*healthgrpc.HealthCheckResponse, error)
- func (s *ApiServer) CreateNetwork(ctx context.Context, in *proto.CreateNetworkRequest) (*proto.AddReply, error)
- func (s *ApiServer) DeleteNetwork(ctx context.Context, in *proto.DeleteNetworkRequest) (*proto.DelReply, error)
- func (s *ApiServer) NatTranslationAdd(ctx context.Context, in *proto.NatTranslation) (*proto.Reply, error)
- func (s *ApiServer) NatTranslationDelete(ctx context.Context, in *proto.NatTranslation) (*proto.Reply, error)
- func (s *ApiServer) RemoveActiveProfile(ctx context.Context, in *proto.ActiveProfileRemove) (*proto.Reply, error)
- func (s *ApiServer) RemoveHostEndpoint(ctx context.Context, in *proto.HostEndpointRemove) (*proto.Reply, error)
- func (s *ApiServer) RemoveHostMetaData(ctx context.Context, in *proto.HostMetadataRemove) (*proto.Reply, error)
- func (s *ApiServer) RemoveIPAMPool(ctx context.Context, in *proto.IPAMPoolRemove) (*proto.Reply, error)
- func (s *ApiServer) RemoveIPSet(ctx context.Context, in *proto.IPSetRemove) (*proto.Reply, error)
- func (s *ApiServer) RemoveLocalEndpoint(ctx context.Context, in *proto.WorkloadEndpointRemove) (*proto.Reply, error)
- func (s *ApiServer) RemoveNamespace(ctx context.Context, in *proto.NamespaceRemove) (*proto.Reply, error)
- func (s *ApiServer) RemoveRoute(ctx context.Context, in *proto.RouteRemove) (*proto.Reply, error)
- func (s *ApiServer) RemoveServiceAccount(ctx context.Context, in *proto.ServiceAccountRemove) (*proto.Reply, error)
- func (s *ApiServer) RemoveVXLANTunnelEndpoint(ctx context.Context, in *proto.VXLANTunnelEndpointRemove) (*proto.Reply, error)
- func (s *ApiServer) RemoveWireguardEndpoint(ctx context.Context, in *proto.WireguardEndpointRemove) (*proto.Reply, error)
- func (s *ApiServer) SetSnatAddress(ctx context.Context, in *proto.SetSnatAddressRequest) (*proto.Reply, error)
- func (s *ApiServer) SetupHostInterface(ctx context.Context, in *proto.SetupHostInterfaceRequest) (*proto.Reply, error)
- func (s *ApiServer) Start(t *tomb.Tomb)
- func (s *ApiServer) Stop()
- func (s *ApiServer) UpdateActiveProfile(ctx context.Context, in *proto.ActiveProfileUpdate) (*proto.Reply, error)
- func (s *ApiServer) UpdateGlobalBGPConfig(ctx context.Context, in *proto.GlobalBGPConfigUpdate) (*proto.Reply, error)
- func (s *ApiServer) UpdateHostEndpoint(ctx context.Context, in *proto.HostEndpointUpdate) (*proto.Reply, error)
- func (s *ApiServer) UpdateHostMetaData(ctx context.Context, in *proto.HostMetadataUpdate) (*proto.Reply, error)
- func (s *ApiServer) UpdateIPAMPool(ctx context.Context, in *proto.IPAMPoolUpdate) (*proto.Reply, error)
- func (s *ApiServer) UpdateIPSet(ctx context.Context, in *proto.IPSetUpdate) (*proto.Reply, error)
- func (s *ApiServer) UpdateIPSetDelta(ctx context.Context, in *proto.IPSetDeltaUpdate) (*proto.Reply, error)
- func (s *ApiServer) UpdateLocalEndpoint(ctx context.Context, in *proto.WorkloadEndpointUpdate) (*proto.Reply, error)
- func (s *ApiServer) UpdateNamespace(ctx context.Context, in *proto.NamespaceUpdate) (*proto.Reply, error)
- func (s *ApiServer) UpdateRoute(ctx context.Context, in *proto.RouteUpdate) (*proto.Reply, error)
- func (s *ApiServer) UpdateServiceAccount(ctx context.Context, in *proto.ServiceAccountUpdate) (*proto.Reply, error)
- func (s *ApiServer) UpdateVXLANTunnelEndpoint(ctx context.Context, in *proto.VXLANTunnelEndpointUpdate) (*proto.Reply, error)
- func (s *ApiServer) UpdateWireguardEndpoint(ctx context.Context, in *proto.WireguardEndpointUpdate) (*proto.Reply, error)
- func (s *ApiServer) Watch(in *healthgrpc.HealthCheckRequest, _ healthgrpc.Health_WatchServer) error
- type Protocol
- type RuleGroupIDX
Constants ¶
This section is empty.
Variables ¶
View Source
var MAX_PER_DIR_RULES = 8
Functions ¶
func CloseGNMIConn ¶
func CloseGNMIConn()
func CloseP4RtCCon ¶
func CloseP4RtCCon()
func GetFwdPipe ¶
func GetFwdPipe(ctx context.Context, responseType client.GetFwdPipeResponseType) (*client.FwdPipeConfig, error)
func GetLogLevel ¶
func GetLogLevel() string
func InitModCtr ¶
func InitModCtr()
func InsertDefaultRule ¶
func InsertDefaultRule()
func OpenGNMICCon ¶
func OpenGNMICCon() error
func PutConf ¶
func PutConf(c *conf.Configuration)
func SetFwdPipe ¶
func SetHostInterface ¶
func SetHostInterface()
Types ¶
type ApiServer ¶
type ApiServer struct {
// contains filtered or unexported fields
}
func CreateServer ¶
func NewApiServer ¶
func NewApiServer() *ApiServer
func (*ApiServer) ActivePolicyRemove ¶
func (*ApiServer) ActivePolicyUpdate ¶
func (*ApiServer) AddDelSnatPrefix ¶
func (*ApiServer) Check ¶
func (s *ApiServer) Check(ctx context.Context, in *healthgrpc.HealthCheckRequest) (*healthgrpc.HealthCheckResponse, error)
Check is used to check the status of GRPC service
func (*ApiServer) CreateNetwork ¶
func (*ApiServer) DeleteNetwork ¶
func (*ApiServer) NatTranslationAdd ¶
func (*ApiServer) NatTranslationDelete ¶
func (*ApiServer) RemoveActiveProfile ¶
func (*ApiServer) RemoveHostEndpoint ¶
func (*ApiServer) RemoveHostMetaData ¶
func (*ApiServer) RemoveIPAMPool ¶
func (*ApiServer) RemoveIPSet ¶
func (*ApiServer) RemoveLocalEndpoint ¶
func (*ApiServer) RemoveNamespace ¶
func (*ApiServer) RemoveRoute ¶
func (*ApiServer) RemoveServiceAccount ¶
func (*ApiServer) RemoveVXLANTunnelEndpoint ¶
func (*ApiServer) RemoveWireguardEndpoint ¶
func (*ApiServer) SetSnatAddress ¶
func (*ApiServer) SetupHostInterface ¶
func (*ApiServer) UpdateActiveProfile ¶
func (*ApiServer) UpdateGlobalBGPConfig ¶
func (*ApiServer) UpdateHostEndpoint ¶
func (*ApiServer) UpdateHostMetaData ¶
func (*ApiServer) UpdateIPAMPool ¶
func (*ApiServer) UpdateIPSet ¶
func (*ApiServer) UpdateIPSetDelta ¶
func (*ApiServer) UpdateLocalEndpoint ¶
func (*ApiServer) UpdateNamespace ¶
func (*ApiServer) UpdateRoute ¶
func (*ApiServer) UpdateServiceAccount ¶
func (*ApiServer) UpdateVXLANTunnelEndpoint ¶
func (*ApiServer) UpdateWireguardEndpoint ¶
func (*ApiServer) Watch ¶
func (s *ApiServer) Watch(in *healthgrpc.HealthCheckRequest, _ healthgrpc.Health_WatchServer) error
Watch was created to fulfil interface requirements, unused
type RuleGroupIDX ¶
Click to show internal directories.
Click to hide internal directories.