Versions in this module Expand all Collapse all v0 v0.3.2 Jan 23, 2024 v0.3.1 Jan 22, 2024 Changes in this version + func InterfaceMeteringParamsToProtoMeteringParams(meteringParams *MeteringParams) *proto.MeteringParams type InterfaceSpec + Metering *MeteringParams + type MeteringParams struct + PublicRate uint64 + TotalRate uint64 + func ProtoMeteringParamsToInterfaceMeteringParams(meteringParams *proto.MeteringParams) *MeteringParams v0.3.0 Dec 11, 2023 Changes in this version + var CaptureStartKind = reflect.TypeOf(CaptureStart{}).Name() + var CaptureStatusKind = reflect.TypeOf(CaptureStatus{}).Name() + var CaptureStopKind = reflect.TypeOf(CaptureStop{}).Name() + var FirewallRuleKind = reflect.TypeOf(FirewallRule{}).Name() + var FirewallRuleListKind = reflect.TypeOf(FirewallRuleList{}).Name() + var InitializedKind = reflect.TypeOf(Initialized{}).Name() + var InterfaceKind = reflect.TypeOf(Interface{}).Name() + var InterfaceListKind = reflect.TypeOf(InterfaceList{}).Name() + var LoadBalancerKind = reflect.TypeOf(LoadBalancer{}).Name() + var LoadBalancerPrefixKind = reflect.TypeOf(LoadBalancerPrefix{}).Name() + var LoadBalancerTargetKind = reflect.TypeOf(LoadBalancerTarget{}).Name() + var LoadBalancerTargetListKind = reflect.TypeOf(LoadBalancerTargetList{}).Name() + var NatKind = reflect.TypeOf(Nat{}).Name() + var NatListKind = reflect.TypeOf(NatList{}).Name() + var NeighborNatKind = reflect.TypeOf(NeighborNat{}).Name() + var PrefixKind = reflect.TypeOf(Prefix{}).Name() + var PrefixListKind = reflect.TypeOf(PrefixList{}).Name() + var RouteKind = reflect.TypeOf(Route{}).Name() + var RouteListKind = reflect.TypeOf(RouteList{}).Name() + var VersionKind = reflect.TypeOf(Version{}).Name() + var VirtualIPKind = reflect.TypeOf(VirtualIP{}).Name() + var VniKind = reflect.TypeOf(Vni{}).Name() + func CaptureIfaceTypeToProtoIfaceType(interfaceType string) (proto.CaptureInterfaceType, error) + func FillCaptureIfaceInfo(interfaceInfo string, request *proto.CapturedInterface) error + func NetIPAddrToProtoIPConfig(addr netip.Addr) *proto.IpConfig + func NetIPAddrToProtoIPVersion(addr *netip.Addr) proto.IpVersion + func NetIPAddrToProtoIpAddress(addr netip.Addr) *proto.IpAddress + func ProtoIfaceInfoToCaptureIfaceInfo(request *proto.CapturedInterface) (string, error) + func ProtoIfaceTypeToCaptureIfaceType(interfaceType proto.CaptureInterfaceType) (string, error) + func ProtoIpAddressToNetIPAddr(protoIP *proto.IpAddress) (*netip.Addr, error) + func ProtoLBPrefixToProtoPrefix(lbprefix *proto.Prefix) *proto.Prefix + type CaptureConfig struct + SinkNodeIP *netip.Addr + UdpDstPort uint32 + UdpSrcPort uint32 + type CaptureGetStatusSpec struct + Config CaptureConfig + Interfaces []CaptureInterface + OperationStatus bool + type CaptureInterface struct + InterfaceInfo string + InterfaceType string + type CaptureStart struct + Spec CaptureStartSpec + Status Status + func (m *CaptureStart) GetStatus() Status + type CaptureStartMeta struct + Config *CaptureConfig + func (m *CaptureStartMeta) GetName() string + type CaptureStartSpec struct + Interfaces []CaptureInterface + type CaptureStatus struct + Spec CaptureGetStatusSpec + Status Status + func (m *CaptureStatus) GetStatus() Status + type CaptureStatusMeta struct + func (m *CaptureStatusMeta) GetName() string + type CaptureStop struct + Spec CaptureStopSpec + Status Status + func (m *CaptureStop) GetStatus() Status + type CaptureStopMeta struct + func (m *CaptureStopMeta) GetName() string + type CaptureStopSpec struct + InterfaceCount uint32 + type FirewallRule struct + Spec FirewallRuleSpec + Status Status + func ProtoFwRuleToFwRule(dpdkFwRule *proto.FirewallRule, interfaceID string) (*FirewallRule, error) + func (m *FirewallRule) GetName() string + func (m *FirewallRule) GetStatus() Status + type FirewallRuleList struct + Items []FirewallRule + Status Status + func (l *FirewallRuleList) GetItems() []Object + func (m *FirewallRuleList) GetStatus() Status + type FirewallRuleListMeta struct + InterfaceID string + type FirewallRuleMeta struct + InterfaceID string + type FirewallRuleSpec struct + DestinationPrefix *netip.Prefix + FirewallAction string + Priority uint32 + ProtocolFilter *proto.ProtocolFilter + RuleID string + SourcePrefix *netip.Prefix + TrafficDirection string + type Initialized struct + Spec InitializedSpec + Status Status + func (m *Initialized) GetStatus() Status + type InitializedMeta struct + func (m *InitializedMeta) GetName() string + type InitializedSpec struct + UUID string + type Interface struct + Spec InterfaceSpec + Status Status + func ProtoInterfaceToInterface(dpdkIface *proto.Interface) (*Interface, error) + func (m *Interface) GetStatus() Status + type InterfaceList struct + Items []Interface + Status Status + func (l *InterfaceList) GetItems() []Object + func (m *InterfaceList) GetStatus() Status + type InterfaceListMeta struct + type InterfaceMeta struct + ID string + func (m *InterfaceMeta) GetName() string + type InterfaceSpec struct + Device string + IPv4 *netip.Addr + IPv6 *netip.Addr + Nat *Nat + PXE *PXE + UnderlayRoute *netip.Addr + VIP *VirtualIP + VNI uint32 + VirtualFunction *VirtualFunction + type LBPort struct + Port uint32 + Protocol uint32 + func StringLbportToLbport(lbport string) (LBPort, error) + type List interface + GetItems func() []Object + GetStatus func() Status + type LoadBalancer struct + Spec LoadBalancerSpec + Status Status + func ProtoLoadBalancerToLoadBalancer(dpdkLB *proto.GetLoadBalancerResponse, lbID string) (*LoadBalancer, error) + func (m *LoadBalancer) GetStatus() Status + type LoadBalancerMeta struct + ID string + func (m *LoadBalancerMeta) GetName() string + type LoadBalancerPrefix struct + Spec LoadBalancerPrefixSpec + Status Status + func (m *LoadBalancerPrefix) GetName() string + func (m *LoadBalancerPrefix) GetStatus() Status + type LoadBalancerPrefixMeta struct + InterfaceID string + type LoadBalancerPrefixSpec struct + Prefix netip.Prefix + UnderlayRoute *netip.Addr + type LoadBalancerSpec struct + LbVipIP *netip.Addr + Lbports []LBPort + UnderlayRoute *netip.Addr + VNI uint32 + type LoadBalancerTarget struct + Spec LoadBalancerTargetSpec + Status Status + func (m *LoadBalancerTarget) GetName() string + func (m *LoadBalancerTarget) GetStatus() Status + type LoadBalancerTargetList struct + Items []LoadBalancerTarget + Status Status + func (l *LoadBalancerTargetList) GetItems() []Object + func (m *LoadBalancerTargetList) GetStatus() Status + type LoadBalancerTargetListMeta struct + LoadBalancerID string + type LoadBalancerTargetMeta struct + LoadbalancerID string + type LoadBalancerTargetSpec struct + TargetIP *netip.Addr + type Nat struct + Spec NatSpec + Status Status + func ProtoNatToNat(dpdkNat *proto.GetNatResponse, interfaceID string) (*Nat, error) + func (m *Nat) GetStatus() Status + func (m *Nat) String() string + type NatList struct + Items []Nat + Status Status + func (l *NatList) GetItems() []Object + func (m *NatList) GetStatus() Status + type NatListMeta struct + NatIP *netip.Addr + NatType string + type NatMeta struct + InterfaceID string + func (m *NatMeta) GetName() string + type NatSpec struct + MaxPort uint32 + MinPort uint32 + NatIP *netip.Addr + UnderlayRoute *netip.Addr + Vni uint32 + type NeighborNat struct + Spec NeighborNatSpec + Status Status + func (m *NeighborNat) GetStatus() Status + type NeighborNatMeta struct + NatIP *netip.Addr + func (m *NeighborNatMeta) GetName() string + type NeighborNatSpec struct + MaxPort uint32 + MinPort uint32 + UnderlayRoute *netip.Addr + Vni uint32 + type Object interface + GetKind func() string + GetName func() string + GetStatus func() Status + type PXE struct + FileName string + Server string + type Prefix struct + Spec PrefixSpec + Status Status + func ProtoPrefixToPrefix(interfaceID string, dpdkPrefix *proto.Prefix) (*Prefix, error) + func (m *Prefix) GetName() string + func (m *Prefix) GetStatus() Status + type PrefixList struct + Items []Prefix + Status Status + func (l *PrefixList) GetItems() []Object + func (m *PrefixList) GetStatus() Status + type PrefixListMeta struct + InterfaceID string + type PrefixMeta struct + InterfaceID string + type PrefixSpec struct + Prefix netip.Prefix + UnderlayRoute *netip.Addr + type Route struct + Spec RouteSpec + Status Status + func ProtoRouteToRoute(vni uint32, dpdkRoute *proto.Route) (*Route, error) + func (m *Route) GetName() string + func (m *Route) GetStatus() Status + type RouteList struct + Items []Route + Status Status + func (l *RouteList) GetItems() []Object + func (m *RouteList) GetStatus() Status + type RouteListMeta struct + VNI uint32 + type RouteMeta struct + VNI uint32 + type RouteNextHop struct + IP *netip.Addr + VNI uint32 + type RouteSpec struct + NextHop *RouteNextHop + Prefix *netip.Prefix + type Status struct + Code uint32 + Message string + func ProtoStatusToStatus(dpdkStatus *proto.Status) Status + func (status *Status) String() string + type TypeMeta struct + Kind string + func (m *TypeMeta) GetKind() string + type Version struct + Spec VersionSpec + Status Status + func (m *Version) GetStatus() Status + type VersionMeta struct + ClientName string + ClientProtocol string + ClientVersion string + func (m *VersionMeta) GetName() string + type VersionSpec struct + ServiceProtocol string + ServiceVersion string + type VirtualFunction struct + Bus uint32 + Domain uint32 + Function uint32 + Name string + Slot uint32 + func (vf *VirtualFunction) String() string + type VirtualIP struct + Spec VirtualIPSpec + Status Status + func ProtoVirtualIPToVirtualIP(interfaceID string, dpdkVIP *proto.GetVipResponse) (*VirtualIP, error) + func (m *VirtualIP) GetName() string + func (m *VirtualIP) GetStatus() Status + type VirtualIPMeta struct + InterfaceID string + type VirtualIPSpec struct + IP *netip.Addr + UnderlayRoute *netip.Addr + type Vni struct + Spec VniSpec + Status Status + func (m *Vni) GetStatus() Status + type VniMeta struct + VNI uint32 + VniType uint8 + func (m *VniMeta) GetName() string + type VniSpec struct + InUse bool