sidecar

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_router_sidecar_proto protoreflect.FileDescriptor
View Source
var SliceRouterSidecarService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "router.SliceRouterSidecarService",
	HandlerType: (*SliceRouterSidecarServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateSliceGwConnectionContext",
			Handler:    _SliceRouterSidecarService_UpdateSliceGwConnectionContext_Handler,
		},
		{
			MethodName: "GetSliceRouterClientConnectionInfo",
			Handler:    _SliceRouterSidecarService_GetSliceRouterClientConnectionInfo_Handler,
		},
		{
			MethodName: "GetRouteInKernel",
			Handler:    _SliceRouterSidecarService_GetRouteInKernel_Handler,
		},
		{
			MethodName: "UpdateEcmpRoutes",
			Handler:    _SliceRouterSidecarService_UpdateEcmpRoutes_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "router_sidecar.proto",
}

SliceRouterSidecarService_ServiceDesc is the grpc.ServiceDesc for SliceRouterSidecarService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSliceRouterSidecarServiceServer

func RegisterSliceRouterSidecarServiceServer(s grpc.ServiceRegistrar, srv SliceRouterSidecarServiceServer)

Types

type ClientConnectionInfo

type ClientConnectionInfo struct {
	Connection []*ConnectionInfo `protobuf:"bytes,1,rep,name=connection,proto3" json:"connection,omitempty"`
	// contains filtered or unexported fields
}

ClientConnectionInfo - Consolidated client connection information. Represents all clients connected to the slice router.

func (*ClientConnectionInfo) Descriptor deprecated

func (*ClientConnectionInfo) Descriptor() ([]byte, []int)

Deprecated: Use ClientConnectionInfo.ProtoReflect.Descriptor instead.

func (*ClientConnectionInfo) GetConnection

func (x *ClientConnectionInfo) GetConnection() []*ConnectionInfo

func (*ClientConnectionInfo) ProtoMessage

func (*ClientConnectionInfo) ProtoMessage()

func (*ClientConnectionInfo) ProtoReflect

func (x *ClientConnectionInfo) ProtoReflect() protoreflect.Message

func (*ClientConnectionInfo) Reset

func (x *ClientConnectionInfo) Reset()

func (*ClientConnectionInfo) String

func (x *ClientConnectionInfo) String() string

type ConnectionInfo

type ConnectionInfo struct {

	// Pod Name of the client
	PodName string `protobuf:"bytes,1,opt,name=podName,proto3" json:"podName,omitempty"`
	// Name of the nsm interface created after successful connection
	NsmInterface string `protobuf:"bytes,2,opt,name=nsmInterface,proto3" json:"nsmInterface,omitempty"`
	// IP address on the nsm interface on the client
	NsmIP string `protobuf:"bytes,3,opt,name=nsmIP,proto3" json:"nsmIP,omitempty"`
	// IP address on the nsm interface on the slice router
	NsmPeerIP string `protobuf:"bytes,4,opt,name=nsmPeerIP,proto3" json:"nsmPeerIP,omitempty"`
	// contains filtered or unexported fields
}

ConnectionInfo - Slice Router client connection information

func (*ConnectionInfo) Descriptor deprecated

func (*ConnectionInfo) Descriptor() ([]byte, []int)

Deprecated: Use ConnectionInfo.ProtoReflect.Descriptor instead.

func (*ConnectionInfo) GetNsmIP

func (x *ConnectionInfo) GetNsmIP() string

func (*ConnectionInfo) GetNsmInterface

func (x *ConnectionInfo) GetNsmInterface() string

func (*ConnectionInfo) GetNsmPeerIP

func (x *ConnectionInfo) GetNsmPeerIP() string

func (*ConnectionInfo) GetPodName

func (x *ConnectionInfo) GetPodName() string

func (*ConnectionInfo) ProtoMessage

func (*ConnectionInfo) ProtoMessage()

func (*ConnectionInfo) ProtoReflect

func (x *ConnectionInfo) ProtoReflect() protoreflect.Message

func (*ConnectionInfo) Reset

func (x *ConnectionInfo) Reset()

func (*ConnectionInfo) String

func (x *ConnectionInfo) String() string

type EcmpUpdateInfo added in v0.4.0

type EcmpUpdateInfo struct {

	// Remote slice-gw NSM subnet
	RemoteSliceGwNsmSubnet string `protobuf:"bytes,1,opt,name=remoteSliceGwNsmSubnet,proto3" json:"remoteSliceGwNsmSubnet,omitempty"`
	// Local NSM ip to remove
	NsmIPToRemove string `protobuf:"bytes,8,opt,name=nsmIPToRemove,proto3" json:"nsmIPToRemove,omitempty"`
	// contains filtered or unexported fields
}

func (*EcmpUpdateInfo) Descriptor deprecated added in v0.4.0

func (*EcmpUpdateInfo) Descriptor() ([]byte, []int)

Deprecated: Use EcmpUpdateInfo.ProtoReflect.Descriptor instead.

func (*EcmpUpdateInfo) GetNsmIPToRemove added in v0.4.0

func (x *EcmpUpdateInfo) GetNsmIPToRemove() string

func (*EcmpUpdateInfo) GetRemoteSliceGwNsmSubnet added in v0.4.0

func (x *EcmpUpdateInfo) GetRemoteSliceGwNsmSubnet() string

func (*EcmpUpdateInfo) ProtoMessage added in v0.4.0

func (*EcmpUpdateInfo) ProtoMessage()

func (*EcmpUpdateInfo) ProtoReflect added in v0.4.0

func (x *EcmpUpdateInfo) ProtoReflect() protoreflect.Message

func (*EcmpUpdateInfo) Reset added in v0.4.0

func (x *EcmpUpdateInfo) Reset()

func (*EcmpUpdateInfo) String added in v0.4.0

func (x *EcmpUpdateInfo) 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 SliceGwConContext

type SliceGwConContext struct {

	// Slice-Id
	SliceId string `protobuf:"bytes,1,opt,name=sliceId,proto3" json:"sliceId,omitempty"`
	// Local slice-gw ID
	LocalSliceGwId string `protobuf:"bytes,2,opt,name=localSliceGwId,proto3" json:"localSliceGwId,omitempty"`
	// Local slice-gw VPN IP
	LocalSliceGwVpnIP string `protobuf:"bytes,3,opt,name=localSliceGwVpnIP,proto3" json:"localSliceGwVpnIP,omitempty"`
	// Local Slice-gw-host-type  -  client/server
	LocalSliceGwHostType SliceGwHostType `protobuf:"varint,4,opt,name=localSliceGwHostType,proto3,enum=router.SliceGwHostType" json:"localSliceGwHostType,omitempty"`
	// Local slice-gw NSM Subnet
	LocalSliceGwNsmSubnet string `protobuf:"bytes,5,opt,name=localSliceGwNsmSubnet,proto3" json:"localSliceGwNsmSubnet,omitempty"`
	// Remote slice-gw NSM subnet
	RemoteSliceGwNsmSubnet string `protobuf:"bytes,6,opt,name=remoteSliceGwNsmSubnet,proto3" json:"remoteSliceGwNsmSubnet,omitempty"`
	// Local NSM gw peer IP
	LocalNsmGwPeerIP string `protobuf:"bytes,7,opt,name=localNsmGwPeerIP,proto3" json:"localNsmGwPeerIP,omitempty"`
	// Local NSM gw peer IPs
	LocalNsmGwPeerIPList []string `protobuf:"bytes,8,rep,name=localNsmGwPeerIPList,proto3" json:"localNsmGwPeerIPList,omitempty"`
	// contains filtered or unexported fields
}

SliceGwConContext - Slice GW connection information

func (*SliceGwConContext) Descriptor deprecated

func (*SliceGwConContext) Descriptor() ([]byte, []int)

Deprecated: Use SliceGwConContext.ProtoReflect.Descriptor instead.

func (*SliceGwConContext) GetLocalNsmGwPeerIP

func (x *SliceGwConContext) GetLocalNsmGwPeerIP() string

func (*SliceGwConContext) GetLocalNsmGwPeerIPList added in v0.4.0

func (x *SliceGwConContext) GetLocalNsmGwPeerIPList() []string

func (*SliceGwConContext) GetLocalSliceGwHostType

func (x *SliceGwConContext) GetLocalSliceGwHostType() SliceGwHostType

func (*SliceGwConContext) GetLocalSliceGwId

func (x *SliceGwConContext) GetLocalSliceGwId() string

func (*SliceGwConContext) GetLocalSliceGwNsmSubnet

func (x *SliceGwConContext) GetLocalSliceGwNsmSubnet() string

func (*SliceGwConContext) GetLocalSliceGwVpnIP

func (x *SliceGwConContext) GetLocalSliceGwVpnIP() string

func (*SliceGwConContext) GetRemoteSliceGwNsmSubnet

func (x *SliceGwConContext) GetRemoteSliceGwNsmSubnet() string

func (*SliceGwConContext) GetSliceId

func (x *SliceGwConContext) GetSliceId() string

func (*SliceGwConContext) ProtoMessage

func (*SliceGwConContext) ProtoMessage()

func (*SliceGwConContext) ProtoReflect

func (x *SliceGwConContext) ProtoReflect() protoreflect.Message

func (*SliceGwConContext) Reset

func (x *SliceGwConContext) Reset()

func (*SliceGwConContext) String

func (x *SliceGwConContext) 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) Enum

func (x SliceGwHostType) Enum() *SliceGwHostType

func (SliceGwHostType) EnumDescriptor deprecated

func (SliceGwHostType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SliceGwHostType.Descriptor instead.

func (SliceGwHostType) Number

func (SliceGwHostType) String

func (x SliceGwHostType) String() string

func (SliceGwHostType) Type

type SliceRouterSidecarServiceClient

type SliceRouterSidecarServiceClient interface {
	// Used to add remote cluster subnet routes in the slice router
	UpdateSliceGwConnectionContext(ctx context.Context, in *SliceGwConContext, opts ...grpc.CallOption) (*SidecarResponse, error)
	// Provides connection information of all clients connected to the slice router
	GetSliceRouterClientConnectionInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ClientConnectionInfo, error)
	// Verify route add Verifies if the route is present
	GetRouteInKernel(ctx context.Context, in *VerifyRouteAddRequest, opts ...grpc.CallOption) (*VerifyRouteAddResponse, error)
	// Updates Ecmp routes in the router
	UpdateEcmpRoutes(ctx context.Context, in *EcmpUpdateInfo, opts ...grpc.CallOption) (*SidecarResponse, error)
}

SliceRouterSidecarServiceClient is the client API for SliceRouterSidecarService 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.

type SliceRouterSidecarServiceServer

type SliceRouterSidecarServiceServer interface {
	// Used to add remote cluster subnet routes in the slice router
	UpdateSliceGwConnectionContext(context.Context, *SliceGwConContext) (*SidecarResponse, error)
	// Provides connection information of all clients connected to the slice router
	GetSliceRouterClientConnectionInfo(context.Context, *empty.Empty) (*ClientConnectionInfo, error)
	// Verify route add Verifies if the route is present
	GetRouteInKernel(context.Context, *VerifyRouteAddRequest) (*VerifyRouteAddResponse, error)
	// Updates Ecmp routes in the router
	UpdateEcmpRoutes(context.Context, *EcmpUpdateInfo) (*SidecarResponse, error)
	// contains filtered or unexported methods
}

SliceRouterSidecarServiceServer is the server API for SliceRouterSidecarService service. All implementations must embed UnimplementedSliceRouterSidecarServiceServer for forward compatibility

type UnimplementedSliceRouterSidecarServiceServer

type UnimplementedSliceRouterSidecarServiceServer struct {
}

UnimplementedSliceRouterSidecarServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSliceRouterSidecarServiceServer) GetRouteInKernel added in v0.4.0

func (UnimplementedSliceRouterSidecarServiceServer) GetSliceRouterClientConnectionInfo

func (UnimplementedSliceRouterSidecarServiceServer) UpdateEcmpRoutes added in v0.4.0

func (UnimplementedSliceRouterSidecarServiceServer) UpdateSliceGwConnectionContext

type UnsafeSliceRouterSidecarServiceServer

type UnsafeSliceRouterSidecarServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSliceRouterSidecarServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SliceRouterSidecarServiceServer will result in compilation errors.

type VerifyRouteAddRequest added in v0.4.0

type VerifyRouteAddRequest struct {

	// IP address on the nsm interface on the client/server
	NsmIP string `protobuf:"bytes,1,opt,name=nsmIP,proto3" json:"nsmIP,omitempty"`
	// Remote slice-gw NSM subnet
	DstIP string `protobuf:"bytes,2,opt,name=dstIP,proto3" json:"dstIP,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyRouteAddRequest) Descriptor deprecated added in v0.4.0

func (*VerifyRouteAddRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifyRouteAddRequest.ProtoReflect.Descriptor instead.

func (*VerifyRouteAddRequest) GetDstIP added in v0.4.0

func (x *VerifyRouteAddRequest) GetDstIP() string

func (*VerifyRouteAddRequest) GetNsmIP added in v0.4.0

func (x *VerifyRouteAddRequest) GetNsmIP() string

func (*VerifyRouteAddRequest) ProtoMessage added in v0.4.0

func (*VerifyRouteAddRequest) ProtoMessage()

func (*VerifyRouteAddRequest) ProtoReflect added in v0.4.0

func (x *VerifyRouteAddRequest) ProtoReflect() protoreflect.Message

func (*VerifyRouteAddRequest) Reset added in v0.4.0

func (x *VerifyRouteAddRequest) Reset()

func (*VerifyRouteAddRequest) String added in v0.4.0

func (x *VerifyRouteAddRequest) String() string

type VerifyRouteAddResponse added in v0.4.0

type VerifyRouteAddResponse struct {

	// isRoutePresent checks if route is present
	IsRoutePresent bool `protobuf:"varint,1,opt,name=isRoutePresent,proto3" json:"isRoutePresent,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyRouteAddResponse) Descriptor deprecated added in v0.4.0

func (*VerifyRouteAddResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifyRouteAddResponse.ProtoReflect.Descriptor instead.

func (*VerifyRouteAddResponse) GetIsRoutePresent added in v0.4.0

func (x *VerifyRouteAddResponse) GetIsRoutePresent() bool

func (*VerifyRouteAddResponse) ProtoMessage added in v0.4.0

func (*VerifyRouteAddResponse) ProtoMessage()

func (*VerifyRouteAddResponse) ProtoReflect added in v0.4.0

func (x *VerifyRouteAddResponse) ProtoReflect() protoreflect.Message

func (*VerifyRouteAddResponse) Reset added in v0.4.0

func (x *VerifyRouteAddResponse) Reset()

func (*VerifyRouteAddResponse) String added in v0.4.0

func (x *VerifyRouteAddResponse) String() string

Jump to

Keyboard shortcuts

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