Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterGwSidecarServiceServer(s grpc.ServiceRegistrar, srv GwSidecarServiceServer)
- func SetStatusMonitor(sm *status.Monitor)
- type ClassType
- type GwPodStatus
- func (*GwPodStatus) Descriptor() ([]byte, []int)deprecated
- func (x *GwPodStatus) GetGatewayPodIP() string
- func (x *GwPodStatus) GetGatewayPodName() string
- func (x *GwPodStatus) GetNodeIP() string
- func (x *GwPodStatus) GetNsmIntfStatus() *NsmInterfaceStatus
- func (x *GwPodStatus) GetTunnelStatus() *TunnelInterfaceStatus
- func (*GwPodStatus) ProtoMessage()
- func (x *GwPodStatus) ProtoReflect() protoreflect.Message
- func (x *GwPodStatus) Reset()
- func (x *GwPodStatus) String() string
- type GwSidecar
- func (s *GwSidecar) GetSliceGwRemotePodName(ctx context.Context, remoteGwVpnIP *RemoteGwVpnIP) (*GwPodStatus, error)
- func (s *GwSidecar) GetStatus(ctx context.Context, in *empty.Empty) (*GwPodStatus, error)
- func (s *GwSidecar) UpdateConnectionContext(ctx context.Context, conContext *SliceGwConnectionContext) (*SidecarResponse, error)
- func (s *GwSidecar) UpdateSliceQosProfile(ctx context.Context, qosProfile *SliceQosProfile) (*SidecarResponse, error)
- type GwSidecarServiceClient
- type GwSidecarServiceServer
- type NsmInterfaceStatus
- func (*NsmInterfaceStatus) Descriptor() ([]byte, []int)deprecated
- func (x *NsmInterfaceStatus) GetNsmIP() string
- func (x *NsmInterfaceStatus) GetNsmInterfaceName() string
- func (*NsmInterfaceStatus) ProtoMessage()
- func (x *NsmInterfaceStatus) ProtoReflect() protoreflect.Message
- func (x *NsmInterfaceStatus) Reset()
- func (x *NsmInterfaceStatus) String() string
- type RemoteGwVpnIP
- type SidecarResponse
- type SliceGwConnectionContext
- func (*SliceGwConnectionContext) Descriptor() ([]byte, []int)deprecated
- func (x *SliceGwConnectionContext) GetLocalSliceGwHostType() SliceGwHostType
- func (x *SliceGwConnectionContext) GetLocalSliceGwId() string
- func (x *SliceGwConnectionContext) GetLocalSliceGwNodeIP() string
- func (x *SliceGwConnectionContext) GetLocalSliceGwNodePort() string
- func (x *SliceGwConnectionContext) GetLocalSliceGwNsmSubnet() string
- func (x *SliceGwConnectionContext) GetLocalSliceGwVpnIP() string
- func (x *SliceGwConnectionContext) GetRemoteSliceGwHostType() SliceGwHostType
- func (x *SliceGwConnectionContext) GetRemoteSliceGwId() string
- func (x *SliceGwConnectionContext) GetRemoteSliceGwNodeIP() string
- func (x *SliceGwConnectionContext) GetRemoteSliceGwNodePort() string
- func (x *SliceGwConnectionContext) GetRemoteSliceGwNsmSubnet() string
- func (x *SliceGwConnectionContext) GetRemoteSliceGwVpnIP() string
- func (x *SliceGwConnectionContext) GetSliceId() string
- func (*SliceGwConnectionContext) ProtoMessage()
- func (x *SliceGwConnectionContext) ProtoReflect() protoreflect.Message
- func (x *SliceGwConnectionContext) Reset()
- func (x *SliceGwConnectionContext) String() string
- type SliceGwHostType
- func (SliceGwHostType) Descriptor() protoreflect.EnumDescriptor
- func (x SliceGwHostType) Enum() *SliceGwHostType
- func (SliceGwHostType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SliceGwHostType) Number() protoreflect.EnumNumber
- func (x SliceGwHostType) String() string
- func (SliceGwHostType) Type() protoreflect.EnumType
- type SliceQosProfile
- func (*SliceQosProfile) Descriptor() ([]byte, []int)deprecated
- func (x *SliceQosProfile) GetBwCeiling() uint32
- func (x *SliceQosProfile) GetBwGuaranteed() uint32
- func (x *SliceQosProfile) GetClassType() ClassType
- func (x *SliceQosProfile) GetDscpClass() string
- func (x *SliceQosProfile) GetPriority() uint32
- func (x *SliceQosProfile) GetQosProfileName() string
- func (x *SliceQosProfile) GetSliceId() string
- func (x *SliceQosProfile) GetSliceName() string
- func (x *SliceQosProfile) GetTcType() TcType
- func (*SliceQosProfile) ProtoMessage()
- func (x *SliceQosProfile) ProtoReflect() protoreflect.Message
- func (x *SliceQosProfile) Reset()
- func (x *SliceQosProfile) String() string
- type TcInfo
- type TcType
- type TunnelInterfaceStatus
- func (*TunnelInterfaceStatus) Descriptor() ([]byte, []int)deprecated
- func (x *TunnelInterfaceStatus) GetLatency() uint64
- func (x *TunnelInterfaceStatus) GetLocalIP() string
- func (x *TunnelInterfaceStatus) GetNetInterface() string
- func (x *TunnelInterfaceStatus) GetPacketLoss() uint64
- func (x *TunnelInterfaceStatus) GetPeerIP() string
- func (x *TunnelInterfaceStatus) GetRxRate() uint64
- func (x *TunnelInterfaceStatus) GetStatus() TunnelStatusType
- func (x *TunnelInterfaceStatus) GetTxRate() uint64
- func (*TunnelInterfaceStatus) ProtoMessage()
- func (x *TunnelInterfaceStatus) ProtoReflect() protoreflect.Message
- func (x *TunnelInterfaceStatus) Reset()
- func (x *TunnelInterfaceStatus) String() string
- type TunnelStatusType
- func (TunnelStatusType) Descriptor() protoreflect.EnumDescriptor
- func (x TunnelStatusType) Enum() *TunnelStatusType
- func (TunnelStatusType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TunnelStatusType) Number() protoreflect.EnumNumber
- func (x TunnelStatusType) String() string
- func (TunnelStatusType) Type() protoreflect.EnumType
- type UnimplementedGwSidecarServiceServer
- func (UnimplementedGwSidecarServiceServer) GetSliceGwRemotePodName(context.Context, *RemoteGwVpnIP) (*GwPodStatus, error)
- func (UnimplementedGwSidecarServiceServer) GetStatus(context.Context, *empty.Empty) (*GwPodStatus, error)
- func (UnimplementedGwSidecarServiceServer) UpdateConnectionContext(context.Context, *SliceGwConnectionContext) (*SidecarResponse, error)
- func (UnimplementedGwSidecarServiceServer) UpdateSliceQosProfile(context.Context, *SliceQosProfile) (*SidecarResponse, error)
- type UnsafeGwSidecarServiceServer
Constants ¶
const (
HTB classType = "HTB"
)
classType - Qdisc Class type - HTB
Variables ¶
var ( SliceGwHostType_name = map[int32]string{ 0: "SLICE_GW_SERVER", 1: "SLICE_GW_CLIENT", } SliceGwHostType_value = map[string]int32{ "SLICE_GW_SERVER": 0, "SLICE_GW_CLIENT": 1, } )
Enum value maps for SliceGwHostType.
var ( TcType_name = map[int32]string{ 0: "BANDWIDTH_CONTROL", } TcType_value = map[string]int32{ "BANDWIDTH_CONTROL": 0, } )
Enum value maps for TcType.
var ( ClassType_name = map[int32]string{ 0: "HTB", 1: "TBF", } ClassType_value = map[string]int32{ "HTB": 0, "TBF": 1, } )
Enum value maps for ClassType.
var ( TunnelStatusType_name = map[int32]string{ 0: "GW_TUNNEL_STATE_UP", 1: "GW_TUNNEL_STATE_DOWN", } TunnelStatusType_value = map[string]int32{ "GW_TUNNEL_STATE_UP": 0, "GW_TUNNEL_STATE_DOWN": 1, } )
Enum value maps for TunnelStatusType.
var File_pkg_sidecar_sidecarpb_gw_sidecar_proto protoreflect.FileDescriptor
var GwSidecarService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sidecar.GwSidecarService", HandlerType: (*GwSidecarServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStatus", Handler: _GwSidecarService_GetStatus_Handler, }, { MethodName: "GetSliceGwRemotePodName", Handler: _GwSidecarService_GetSliceGwRemotePodName_Handler, }, { MethodName: "UpdateConnectionContext", Handler: _GwSidecarService_UpdateConnectionContext_Handler, }, { MethodName: "UpdateSliceQosProfile", Handler: _GwSidecarService_UpdateSliceQosProfile_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/sidecar/sidecarpb/gw_sidecar.proto", }
GwSidecarService_ServiceDesc is the grpc.ServiceDesc for GwSidecarService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var SliceGwRemoteClusterNodePort string = ""
Stores the node port of the remote cluster. We need this to set the dscp config when the mode of the Gw is of type CLIENT, in which case the remote cluster would be the SERVER and the client is connected to it over this node port.
Functions ¶
func RegisterGwSidecarServiceServer ¶
func RegisterGwSidecarServiceServer(s grpc.ServiceRegistrar, srv GwSidecarServiceServer)
func SetStatusMonitor ¶
Types ¶
type ClassType ¶
type ClassType int32
func (ClassType) Descriptor ¶
func (ClassType) Descriptor() protoreflect.EnumDescriptor
func (ClassType) EnumDescriptor
deprecated
func (ClassType) Number ¶
func (x ClassType) Number() protoreflect.EnumNumber
func (ClassType) Type ¶
func (ClassType) Type() protoreflect.EnumType
type GwPodStatus ¶
type GwPodStatus struct { // Node IP. NodeIP string `protobuf:"bytes,1,opt,name=nodeIP,proto3" json:"nodeIP,omitempty"` // Gateway Pod IP. GatewayPodIP string `protobuf:"bytes,2,opt,name=gatewayPodIP,proto3" json:"gatewayPodIP,omitempty"` // Gateway Pod Name. GatewayPodName string `protobuf:"bytes,3,opt,name=gatewayPodName,proto3" json:"gatewayPodName,omitempty"` // The Tunnel Interface Status. TunnelStatus *TunnelInterfaceStatus `protobuf:"bytes,4,opt,name=tunnelStatus,proto3" json:"tunnelStatus,omitempty"` // NSM Interface Status NsmIntfStatus *NsmInterfaceStatus `protobuf:"bytes,5,opt,name=nsmIntfStatus,proto3" json:"nsmIntfStatus,omitempty"` // contains filtered or unexported fields }
GwPodStatus represents overall status of Pod.
func (*GwPodStatus) Descriptor
deprecated
func (*GwPodStatus) Descriptor() ([]byte, []int)
Deprecated: Use GwPodStatus.ProtoReflect.Descriptor instead.
func (*GwPodStatus) GetGatewayPodIP ¶
func (x *GwPodStatus) GetGatewayPodIP() string
func (*GwPodStatus) GetGatewayPodName ¶ added in v0.2.0
func (x *GwPodStatus) GetGatewayPodName() string
func (*GwPodStatus) GetNodeIP ¶
func (x *GwPodStatus) GetNodeIP() string
func (*GwPodStatus) GetNsmIntfStatus ¶
func (x *GwPodStatus) GetNsmIntfStatus() *NsmInterfaceStatus
func (*GwPodStatus) GetTunnelStatus ¶
func (x *GwPodStatus) GetTunnelStatus() *TunnelInterfaceStatus
func (*GwPodStatus) ProtoMessage ¶
func (*GwPodStatus) ProtoMessage()
func (*GwPodStatus) ProtoReflect ¶
func (x *GwPodStatus) ProtoReflect() protoreflect.Message
func (*GwPodStatus) Reset ¶
func (x *GwPodStatus) Reset()
func (*GwPodStatus) String ¶
func (x *GwPodStatus) String() string
type GwSidecar ¶
type GwSidecar struct {
UnimplementedGwSidecarServiceServer
}
func (*GwSidecar) GetSliceGwRemotePodName ¶ added in v0.2.0
func (s *GwSidecar) GetSliceGwRemotePodName(ctx context.Context, remoteGwVpnIP *RemoteGwVpnIP) (*GwPodStatus, error)
GetSliceGwRemotePodName get the remote GwPodName
func (*GwSidecar) UpdateConnectionContext ¶
func (s *GwSidecar) UpdateConnectionContext(ctx context.Context, conContext *SliceGwConnectionContext) (*SidecarResponse, error)
func (*GwSidecar) UpdateSliceQosProfile ¶
func (s *GwSidecar) UpdateSliceQosProfile(ctx context.Context, qosProfile *SliceQosProfile) (*SidecarResponse, error)
type GwSidecarServiceClient ¶
type GwSidecarServiceClient interface { // The Interface to get the Pod status. GetStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GwPodStatus, error) // The Interface to get the Remote Gw Pod Name. GetSliceGwRemotePodName(ctx context.Context, in *RemoteGwVpnIP, opts ...grpc.CallOption) (*GwPodStatus, error) // The Interface to update the connection context. It also adds the route. UpdateConnectionContext(ctx context.Context, in *SliceGwConnectionContext, opts ...grpc.CallOption) (*SidecarResponse, error) // Update Slice QoS Profile UpdateSliceQosProfile(ctx context.Context, in *SliceQosProfile, opts ...grpc.CallOption) (*SidecarResponse, error) }
GwSidecarServiceClient is the client API for GwSidecarService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewGwSidecarServiceClient ¶
func NewGwSidecarServiceClient(cc grpc.ClientConnInterface) GwSidecarServiceClient
type GwSidecarServiceServer ¶
type GwSidecarServiceServer interface { // The Interface to get the Pod status. GetStatus(context.Context, *empty.Empty) (*GwPodStatus, error) // The Interface to get the Remote Gw Pod Name. GetSliceGwRemotePodName(context.Context, *RemoteGwVpnIP) (*GwPodStatus, error) // The Interface to update the connection context. It also adds the route. UpdateConnectionContext(context.Context, *SliceGwConnectionContext) (*SidecarResponse, error) // Update Slice QoS Profile UpdateSliceQosProfile(context.Context, *SliceQosProfile) (*SidecarResponse, error) // contains filtered or unexported methods }
GwSidecarServiceServer is the server API for GwSidecarService service. All implementations must embed UnimplementedGwSidecarServiceServer for forward compatibility
type NsmInterfaceStatus ¶
type NsmInterfaceStatus struct { // NSM Interface Name NsmInterfaceName string `protobuf:"bytes,1,opt,name=nsmInterfaceName,proto3" json:"nsmInterfaceName,omitempty"` // NSM IP NsmIP string `protobuf:"bytes,2,opt,name=nsmIP,proto3" json:"nsmIP,omitempty"` // contains filtered or unexported fields }
NsmInterfaceStatus represents the status of NSM Interface to Slice Router.
func (*NsmInterfaceStatus) Descriptor
deprecated
func (*NsmInterfaceStatus) Descriptor() ([]byte, []int)
Deprecated: Use NsmInterfaceStatus.ProtoReflect.Descriptor instead.
func (*NsmInterfaceStatus) GetNsmIP ¶
func (x *NsmInterfaceStatus) GetNsmIP() string
func (*NsmInterfaceStatus) GetNsmInterfaceName ¶
func (x *NsmInterfaceStatus) GetNsmInterfaceName() string
func (*NsmInterfaceStatus) ProtoMessage ¶
func (*NsmInterfaceStatus) ProtoMessage()
func (*NsmInterfaceStatus) ProtoReflect ¶
func (x *NsmInterfaceStatus) ProtoReflect() protoreflect.Message
func (*NsmInterfaceStatus) Reset ¶
func (x *NsmInterfaceStatus) Reset()
func (*NsmInterfaceStatus) String ¶
func (x *NsmInterfaceStatus) String() string
type RemoteGwVpnIP ¶ added in v0.2.0
type RemoteGwVpnIP struct { // Remote Slice Gateway VPN IP. RemoteGwVpnIP string `protobuf:"bytes,1,opt,name=remoteGwVpnIP,proto3" json:"remoteGwVpnIP,omitempty"` // contains filtered or unexported fields }
RemoteGwVpnIP represents remote SliceGwPod VPN IP
func (*RemoteGwVpnIP) Descriptor
deprecated
added in
v0.2.0
func (*RemoteGwVpnIP) Descriptor() ([]byte, []int)
Deprecated: Use RemoteGwVpnIP.ProtoReflect.Descriptor instead.
func (*RemoteGwVpnIP) GetRemoteGwVpnIP ¶ added in v0.2.0
func (x *RemoteGwVpnIP) GetRemoteGwVpnIP() string
func (*RemoteGwVpnIP) ProtoMessage ¶ added in v0.2.0
func (*RemoteGwVpnIP) ProtoMessage()
func (*RemoteGwVpnIP) ProtoReflect ¶ added in v0.2.0
func (x *RemoteGwVpnIP) ProtoReflect() protoreflect.Message
func (*RemoteGwVpnIP) Reset ¶ added in v0.2.0
func (x *RemoteGwVpnIP) Reset()
func (*RemoteGwVpnIP) String ¶ added in v0.2.0
func (x *RemoteGwVpnIP) String() string
type SidecarResponse ¶
type SidecarResponse struct { StatusMsg string `protobuf:"bytes,1,opt,name=statusMsg,proto3" json:"statusMsg,omitempty"` // contains filtered or unexported fields }
SidecarResponse represents the Sidecar response format.
func (*SidecarResponse) Descriptor
deprecated
func (*SidecarResponse) Descriptor() ([]byte, []int)
Deprecated: Use SidecarResponse.ProtoReflect.Descriptor instead.
func (*SidecarResponse) GetStatusMsg ¶
func (x *SidecarResponse) GetStatusMsg() string
func (*SidecarResponse) ProtoMessage ¶
func (*SidecarResponse) ProtoMessage()
func (*SidecarResponse) ProtoReflect ¶
func (x *SidecarResponse) ProtoReflect() protoreflect.Message
func (*SidecarResponse) Reset ¶
func (x *SidecarResponse) Reset()
func (*SidecarResponse) String ¶
func (x *SidecarResponse) String() string
type SliceGwConnectionContext ¶
type SliceGwConnectionContext struct { // Slice-Id SliceId string `protobuf:"bytes,1,opt,name=sliceId,proto3" json:"sliceId,omitempty"` // Local slice gateway ID LocalSliceGwId string `protobuf:"bytes,2,opt,name=localSliceGwId,proto3" json:"localSliceGwId,omitempty"` // Local slice gateway VPN IP LocalSliceGwVpnIP string `protobuf:"bytes,3,opt,name=localSliceGwVpnIP,proto3" json:"localSliceGwVpnIP,omitempty"` // Local slice gateway-host-type - client/server LocalSliceGwHostType SliceGwHostType `protobuf:"varint,4,opt,name=localSliceGwHostType,proto3,enum=sidecar.SliceGwHostType" json:"localSliceGwHostType,omitempty"` // Local slice gateway NSM Subnet LocalSliceGwNsmSubnet string `protobuf:"bytes,5,opt,name=localSliceGwNsmSubnet,proto3" json:"localSliceGwNsmSubnet,omitempty"` // Local slice gateway Node IP LocalSliceGwNodeIP string `protobuf:"bytes,6,opt,name=localSliceGwNodeIP,proto3" json:"localSliceGwNodeIP,omitempty"` // Local slice gateway Node Port LocalSliceGwNodePort string `protobuf:"bytes,7,opt,name=localSliceGwNodePort,proto3" json:"localSliceGwNodePort,omitempty"` // Remote slice gateway ID RemoteSliceGwId string `protobuf:"bytes,8,opt,name=remoteSliceGwId,proto3" json:"remoteSliceGwId,omitempty"` // Remote slice gateway VPN IP RemoteSliceGwVpnIP string `protobuf:"bytes,9,opt,name=remoteSliceGwVpnIP,proto3" json:"remoteSliceGwVpnIP,omitempty"` // Remote-slice gateway-host-type client or server RemoteSliceGwHostType SliceGwHostType `` /* 126-byte string literal not displayed */ // Remote slice gateway NSM subnet RemoteSliceGwNsmSubnet string `protobuf:"bytes,11,opt,name=remoteSliceGwNsmSubnet,proto3" json:"remoteSliceGwNsmSubnet,omitempty"` // Remote slice gateway Node IP RemoteSliceGwNodeIP string `protobuf:"bytes,12,opt,name=remoteSliceGwNodeIP,proto3" json:"remoteSliceGwNodeIP,omitempty"` // Remote slice gateway Node Port RemoteSliceGwNodePort string `protobuf:"bytes,13,opt,name=remoteSliceGwNodePort,proto3" json:"remoteSliceGwNodePort,omitempty"` // contains filtered or unexported fields }
SliceGwConnectionContext - Slice Gateway Connection Context.
func (*SliceGwConnectionContext) Descriptor
deprecated
func (*SliceGwConnectionContext) Descriptor() ([]byte, []int)
Deprecated: Use SliceGwConnectionContext.ProtoReflect.Descriptor instead.
func (*SliceGwConnectionContext) GetLocalSliceGwHostType ¶
func (x *SliceGwConnectionContext) GetLocalSliceGwHostType() SliceGwHostType
func (*SliceGwConnectionContext) GetLocalSliceGwId ¶
func (x *SliceGwConnectionContext) GetLocalSliceGwId() string
func (*SliceGwConnectionContext) GetLocalSliceGwNodeIP ¶
func (x *SliceGwConnectionContext) GetLocalSliceGwNodeIP() string
func (*SliceGwConnectionContext) GetLocalSliceGwNodePort ¶
func (x *SliceGwConnectionContext) GetLocalSliceGwNodePort() string
func (*SliceGwConnectionContext) GetLocalSliceGwNsmSubnet ¶
func (x *SliceGwConnectionContext) GetLocalSliceGwNsmSubnet() string
func (*SliceGwConnectionContext) GetLocalSliceGwVpnIP ¶
func (x *SliceGwConnectionContext) GetLocalSliceGwVpnIP() string
func (*SliceGwConnectionContext) GetRemoteSliceGwHostType ¶
func (x *SliceGwConnectionContext) GetRemoteSliceGwHostType() SliceGwHostType
func (*SliceGwConnectionContext) GetRemoteSliceGwId ¶
func (x *SliceGwConnectionContext) GetRemoteSliceGwId() string
func (*SliceGwConnectionContext) GetRemoteSliceGwNodeIP ¶
func (x *SliceGwConnectionContext) GetRemoteSliceGwNodeIP() string
func (*SliceGwConnectionContext) GetRemoteSliceGwNodePort ¶
func (x *SliceGwConnectionContext) GetRemoteSliceGwNodePort() string
func (*SliceGwConnectionContext) GetRemoteSliceGwNsmSubnet ¶
func (x *SliceGwConnectionContext) GetRemoteSliceGwNsmSubnet() string
func (*SliceGwConnectionContext) GetRemoteSliceGwVpnIP ¶
func (x *SliceGwConnectionContext) GetRemoteSliceGwVpnIP() string
func (*SliceGwConnectionContext) GetSliceId ¶
func (x *SliceGwConnectionContext) GetSliceId() string
func (*SliceGwConnectionContext) ProtoMessage ¶
func (*SliceGwConnectionContext) ProtoMessage()
func (*SliceGwConnectionContext) ProtoReflect ¶
func (x *SliceGwConnectionContext) ProtoReflect() protoreflect.Message
func (*SliceGwConnectionContext) Reset ¶
func (x *SliceGwConnectionContext) Reset()
func (*SliceGwConnectionContext) String ¶
func (x *SliceGwConnectionContext) String() string
type SliceGwHostType ¶
type SliceGwHostType int32
slice gateway-host-type
const ( SliceGwHostType_SLICE_GW_SERVER SliceGwHostType = 0 SliceGwHostType_SLICE_GW_CLIENT SliceGwHostType = 1 )
func (SliceGwHostType) Descriptor ¶
func (SliceGwHostType) Descriptor() protoreflect.EnumDescriptor
func (SliceGwHostType) Enum ¶
func (x SliceGwHostType) Enum() *SliceGwHostType
func (SliceGwHostType) EnumDescriptor
deprecated
func (SliceGwHostType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SliceGwHostType.Descriptor instead.
func (SliceGwHostType) Number ¶
func (x SliceGwHostType) Number() protoreflect.EnumNumber
func (SliceGwHostType) String ¶
func (x SliceGwHostType) String() string
func (SliceGwHostType) Type ¶
func (SliceGwHostType) Type() protoreflect.EnumType
type SliceQosProfile ¶
type SliceQosProfile struct { // Name of the slice SliceName string `protobuf:"bytes,1,opt,name=sliceName,proto3" json:"sliceName,omitempty"` // Slice Identifier SliceId string `protobuf:"bytes,2,opt,name=sliceId,proto3" json:"sliceId,omitempty"` // Name of the QoS profile attached to the slice QosProfileName string `protobuf:"bytes,3,opt,name=qosProfileName,proto3" json:"qosProfileName,omitempty"` // TC type - Bandwidth control TcType TcType `protobuf:"varint,4,opt,name=tcType,proto3,enum=sidecar.TcType" json:"tcType,omitempty"` // ClassType - HTB ( HTB) ClassType ClassType `protobuf:"varint,5,opt,name=ClassType,proto3,enum=sidecar.ClassType" json:"ClassType,omitempty"` // Bandwidth Ceiling in Mbps - 5 Mbps (100k - 100 Mbps) BwCeiling uint32 `protobuf:"varint,6,opt,name=bwCeiling,proto3" json:"bwCeiling,omitempty"` // Bandwidth Guaranteed - 1 Mbps ( 100k- 100 Mbps) BwGuaranteed uint32 `protobuf:"varint,7,opt,name=bwGuaranteed,proto3" json:"bwGuaranteed,omitempty"` // Priority - 2 (Number 0-3) Priority uint32 `protobuf:"varint,8,opt,name=priority,proto3" json:"priority,omitempty"` // Dscp class to mark inter cluster traffic DscpClass string `protobuf:"bytes,9,opt,name=dscpClass,proto3" json:"dscpClass,omitempty"` // contains filtered or unexported fields }
Slice QoS Profile
func (*SliceQosProfile) Descriptor
deprecated
func (*SliceQosProfile) Descriptor() ([]byte, []int)
Deprecated: Use SliceQosProfile.ProtoReflect.Descriptor instead.
func (*SliceQosProfile) GetBwCeiling ¶
func (x *SliceQosProfile) GetBwCeiling() uint32
func (*SliceQosProfile) GetBwGuaranteed ¶
func (x *SliceQosProfile) GetBwGuaranteed() uint32
func (*SliceQosProfile) GetClassType ¶
func (x *SliceQosProfile) GetClassType() ClassType
func (*SliceQosProfile) GetDscpClass ¶
func (x *SliceQosProfile) GetDscpClass() string
func (*SliceQosProfile) GetPriority ¶
func (x *SliceQosProfile) GetPriority() uint32
func (*SliceQosProfile) GetQosProfileName ¶
func (x *SliceQosProfile) GetQosProfileName() string
func (*SliceQosProfile) GetSliceId ¶
func (x *SliceQosProfile) GetSliceId() string
func (*SliceQosProfile) GetSliceName ¶
func (x *SliceQosProfile) GetSliceName() string
func (*SliceQosProfile) GetTcType ¶
func (x *SliceQosProfile) GetTcType() TcType
func (*SliceQosProfile) ProtoMessage ¶
func (*SliceQosProfile) ProtoMessage()
func (*SliceQosProfile) ProtoReflect ¶
func (x *SliceQosProfile) ProtoReflect() protoreflect.Message
func (*SliceQosProfile) Reset ¶
func (x *SliceQosProfile) Reset()
func (*SliceQosProfile) String ¶
func (x *SliceQosProfile) String() string
type TcInfo ¶
type TcInfo struct {
// contains filtered or unexported fields
}
tcInfo - the TC information
type TcType ¶
type TcType int32
TcType represents Traffic Control Type.
const (
TcType_BANDWIDTH_CONTROL TcType = 0
)
func (TcType) Descriptor ¶
func (TcType) Descriptor() protoreflect.EnumDescriptor
func (TcType) EnumDescriptor
deprecated
func (TcType) Number ¶
func (x TcType) Number() protoreflect.EnumNumber
func (TcType) Type ¶
func (TcType) Type() protoreflect.EnumType
type TunnelInterfaceStatus ¶
type TunnelInterfaceStatus struct { // Net Interface NetInterface string `protobuf:"bytes,1,opt,name=netInterface,proto3" json:"netInterface,omitempty"` // Local IP LocalIP string `protobuf:"bytes,2,opt,name=localIP,proto3" json:"localIP,omitempty"` // Peer IP PeerIP string `protobuf:"bytes,3,opt,name=peerIP,proto3" json:"peerIP,omitempty"` // Latency Latency uint64 `protobuf:"varint,4,opt,name=latency,proto3" json:"latency,omitempty"` // Transmit Rate TxRate uint64 `protobuf:"varint,5,opt,name=txRate,proto3" json:"txRate,omitempty"` // Receive Rate RxRate uint64 `protobuf:"varint,6,opt,name=rxRate,proto3" json:"rxRate,omitempty"` //Packet loss PacketLoss uint64 `protobuf:"varint,7,opt,name=packetLoss,proto3" json:"packetLoss,omitempty"` //Status Status TunnelStatusType `protobuf:"varint,8,opt,name=status,proto3,enum=sidecar.TunnelStatusType" json:"status,omitempty"` // contains filtered or unexported fields }
TunnelInterfaceStatus represents Tunnel Interface Status.
func (*TunnelInterfaceStatus) Descriptor
deprecated
func (*TunnelInterfaceStatus) Descriptor() ([]byte, []int)
Deprecated: Use TunnelInterfaceStatus.ProtoReflect.Descriptor instead.
func (*TunnelInterfaceStatus) GetLatency ¶
func (x *TunnelInterfaceStatus) GetLatency() uint64
func (*TunnelInterfaceStatus) GetLocalIP ¶
func (x *TunnelInterfaceStatus) GetLocalIP() string
func (*TunnelInterfaceStatus) GetNetInterface ¶
func (x *TunnelInterfaceStatus) GetNetInterface() string
func (*TunnelInterfaceStatus) GetPacketLoss ¶ added in v0.2.0
func (x *TunnelInterfaceStatus) GetPacketLoss() uint64
func (*TunnelInterfaceStatus) GetPeerIP ¶
func (x *TunnelInterfaceStatus) GetPeerIP() string
func (*TunnelInterfaceStatus) GetRxRate ¶
func (x *TunnelInterfaceStatus) GetRxRate() uint64
func (*TunnelInterfaceStatus) GetStatus ¶ added in v0.2.0
func (x *TunnelInterfaceStatus) GetStatus() TunnelStatusType
func (*TunnelInterfaceStatus) GetTxRate ¶
func (x *TunnelInterfaceStatus) GetTxRate() uint64
func (*TunnelInterfaceStatus) ProtoMessage ¶
func (*TunnelInterfaceStatus) ProtoMessage()
func (*TunnelInterfaceStatus) ProtoReflect ¶
func (x *TunnelInterfaceStatus) ProtoReflect() protoreflect.Message
func (*TunnelInterfaceStatus) Reset ¶
func (x *TunnelInterfaceStatus) Reset()
func (*TunnelInterfaceStatus) String ¶
func (x *TunnelInterfaceStatus) String() string
type TunnelStatusType ¶ added in v0.2.0
type TunnelStatusType int32
const ( TunnelStatusType_GW_TUNNEL_STATE_UP TunnelStatusType = 0 TunnelStatusType_GW_TUNNEL_STATE_DOWN TunnelStatusType = 1 )
func (TunnelStatusType) Descriptor ¶ added in v0.2.0
func (TunnelStatusType) Descriptor() protoreflect.EnumDescriptor
func (TunnelStatusType) Enum ¶ added in v0.2.0
func (x TunnelStatusType) Enum() *TunnelStatusType
func (TunnelStatusType) EnumDescriptor
deprecated
added in
v0.2.0
func (TunnelStatusType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TunnelStatusType.Descriptor instead.
func (TunnelStatusType) Number ¶ added in v0.2.0
func (x TunnelStatusType) Number() protoreflect.EnumNumber
func (TunnelStatusType) String ¶ added in v0.2.0
func (x TunnelStatusType) String() string
func (TunnelStatusType) Type ¶ added in v0.2.0
func (TunnelStatusType) Type() protoreflect.EnumType
type UnimplementedGwSidecarServiceServer ¶
type UnimplementedGwSidecarServiceServer struct { }
UnimplementedGwSidecarServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGwSidecarServiceServer) GetSliceGwRemotePodName ¶ added in v0.2.0
func (UnimplementedGwSidecarServiceServer) GetSliceGwRemotePodName(context.Context, *RemoteGwVpnIP) (*GwPodStatus, error)
func (UnimplementedGwSidecarServiceServer) GetStatus ¶
func (UnimplementedGwSidecarServiceServer) GetStatus(context.Context, *empty.Empty) (*GwPodStatus, error)
func (UnimplementedGwSidecarServiceServer) UpdateConnectionContext ¶
func (UnimplementedGwSidecarServiceServer) UpdateConnectionContext(context.Context, *SliceGwConnectionContext) (*SidecarResponse, error)
func (UnimplementedGwSidecarServiceServer) UpdateSliceQosProfile ¶
func (UnimplementedGwSidecarServiceServer) UpdateSliceQosProfile(context.Context, *SliceQosProfile) (*SidecarResponse, error)
type UnsafeGwSidecarServiceServer ¶
type UnsafeGwSidecarServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGwSidecarServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GwSidecarServiceServer will result in compilation errors.