server

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SLICE_GW_SERVER sliceGwType = "SLICE_GW_SERVER"
	SLICE_GW_CLIENT sliceGwType = "SLICE_GW_CLIENT"
)

sliceGwType - Slice Gateway Host type - client/server

View Source
const MAX_NUM_OF_SLICE uint32 = 100

Variables

View Source
var (
	// NetOpHandle is a global handle to store the slice information in a map.
	NetOpHandle map[string]*SliceInfo
)

Functions

func BootstrapNetOpPod

func BootstrapNetOpPod() error

BootstrapNetOpPod handles the bootstrap of the NetOp Pod.

func TcCmdError

func TcCmdError(tcCmd string, err error, cmdOut string) string

Types

type NetOps

type NetOps struct {
	netops.UnimplementedNetOpsServiceServer
}

NetOps represents the GRPC NetOps

func (*NetOps) UpdateConnectionContext

func (s *NetOps) UpdateConnectionContext(ctx context.Context, conContext *netops.NetOpConnectionContext) (*netops.Response, error)

UpdateConnectionContext updates the connection context and adds the route

func (*NetOps) UpdateSliceLifeCycleEvent

func (s *NetOps) UpdateSliceLifeCycleEvent(ctx context.Context, sliceEvent *netops.SliceLifeCycleEvent) (*netops.Response, error)

UpdateSliceLifeCycleEvent handles slice life cycle events

func (*NetOps) UpdateSliceQosProfile

func (s *NetOps) UpdateSliceQosProfile(ctx context.Context, qosProfile *netops.SliceQosProfile) (*netops.Response, error)

UpdateSliceQosProfile implements the QoS Policy for a slice

type SliceGwInfo

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

type SliceInfo

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

SliceInfo - the Slice information

type SliceQosProfile

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

sliceQosProfile structure to store slice QoS Profile

type TcInfo

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

tcInfo - the TC information

Jump to

Keyboard shortcuts

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