translate

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCtrlE2EReservationID

func NewCtrlE2EReservationID(ID *reservation.E2EID) *colibri_mgmt.E2EReservationID

func NewCtrlFromMsg

func NewCtrlFromMsg(msg base.MessageWithPath, renewal bool) (
	*colibri_mgmt.ColibriRequestPayload, error)

NewCtrlFromMsg translates the application type "msg" into a capnp one.

func NewE2EIDFromCtrl

func NewE2EIDFromCtrl(ctrl *colibri_mgmt.E2EReservationID) (
	*reservation.E2EID, error)

NewE2EIDFromCtrl converts a segment id from ctrl to its application type.

func NewIndexStateFromCtrl

func NewIndexStateFromCtrl(st proto.ReservationIndexState) (segment.IndexState, error)

NewIndexStateFromCtrl converts a proto reservation index state into its application type.

func NewMsgFromCtrl

NewMsgFromCtrl takes a colibri ctrl message and returns a new application type. the ColibriPath comes from the packet that encapsulates the ctrl payload.

func NewSegmentIDFromCtrl

func NewSegmentIDFromCtrl(ctrl *colibri_mgmt.SegmentReservationID) (
	*reservation.SegmentID, error)

NewSegmentIDFromCtrl converts a segment id from ctrl to its application type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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