Documentation ¶
Index ¶
- func NewCtrlE2EReservationID(ID *reservation.E2EID) *colibri_mgmt.E2EReservationID
- func NewCtrlFromMsg(msg base.MessageWithPath, renewal bool) (*colibri_mgmt.ColibriRequestPayload, error)
- func NewCtrlSegmentReservationID(ID *reservation.SegmentID) *colibri_mgmt.SegmentReservationID
- func NewE2EIDFromCtrl(ctrl *colibri_mgmt.E2EReservationID) (*reservation.E2EID, error)
- func NewIndexStateFromCtrl(st proto.ReservationIndexState) (segment.IndexState, error)
- func NewMsgFromCtrl(ctrl *colibri_mgmt.ColibriRequestPayload, path base.ColibriPath) (base.MessageWithPath, error)
- func NewSegmentIDFromCtrl(ctrl *colibri_mgmt.SegmentReservationID) (*reservation.SegmentID, error)
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 NewCtrlSegmentReservationID ¶
func NewCtrlSegmentReservationID(ID *reservation.SegmentID) *colibri_mgmt.SegmentReservationID
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 ¶
func NewMsgFromCtrl(ctrl *colibri_mgmt.ColibriRequestPayload, path base.ColibriPath) ( base.MessageWithPath, error)
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.
Click to show internal directories.
Click to hide internal directories.