colibri_mgmt

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocationBead added in v0.6.0

type AllocationBead struct {
	AllocBW uint8
	MaxBW   uint8
}

func (*AllocationBead) ProtoId added in v0.6.0

func (ab *AllocationBead) ProtoId() proto.ProtoIdType

type ColibriRequestPayload

type ColibriRequestPayload struct {
	Timestamp uint32
	Which     proto.ColibriRequestPayload_Which
	Request   *Request
	Response  *Response
}

func NewFromRaw

func NewFromRaw(b []byte) (*ColibriRequestPayload, error)

func (*ColibriRequestPayload) PackRoot

func (p *ColibriRequestPayload) PackRoot() ([]byte, error)

func (*ColibriRequestPayload) ProtoId

func (*ColibriRequestPayload) String

func (p *ColibriRequestPayload) String() string

type E2EBase added in v0.6.0

type E2EBase struct {
	ID    *E2EReservationID `capnp:"id"`
	Index uint8
}

func (*E2EBase) ProtoId added in v0.6.0

func (p *E2EBase) ProtoId() proto.ProtoIdType

type E2ECleanup

type E2ECleanup struct {
	Base *E2EBase
}

func (*E2ECleanup) ProtoId

func (r *E2ECleanup) ProtoId() proto.ProtoIdType

type E2ECleanupRes added in v0.6.0

type E2ECleanupRes struct {
	Base      *E2EBase
	ErrorCode uint8
}

func (*E2ECleanupRes) ProtoId added in v0.6.0

func (r *E2ECleanupRes) ProtoId() proto.ProtoIdType

type E2EReservationID

type E2EReservationID struct {
	ASID   []byte `capnp:"asid"`
	Suffix []byte // 10 bytes long
}

func (*E2EReservationID) ProtoId

func (id *E2EReservationID) ProtoId() proto.ProtoIdType

type E2ESetup

type E2ESetup struct {
	Base              *E2EBase
	SegmentRsvs       []SegmentReservationID
	SegmentRsvASCount []uint8
	RequestedBW       uint8
	AllocationTrail   []uint8
	Which             proto.E2ESetupReqData_Which
	Success           *E2ESetupReqSuccess
	Failure           *E2ESetupReqFailure
}

func (*E2ESetup) ProtoId

func (s *E2ESetup) ProtoId() proto.ProtoIdType

type E2ESetupFailure

type E2ESetupFailure struct {
	ErrorCode       uint8
	AllocationTrail []uint8
}

type E2ESetupReqFailure added in v0.6.0

type E2ESetupReqFailure struct {
	ErrorCode uint8
}

type E2ESetupReqSuccess added in v0.6.0

type E2ESetupReqSuccess struct {
	Token []byte
}

type E2ESetupRes added in v0.6.0

type E2ESetupRes struct {
	Base    *E2EBase
	Which   proto.E2ESetupResData_Which
	Success *E2ESetupSuccess
	Failure *E2ESetupFailure
}

func (*E2ESetupRes) ProtoId added in v0.6.0

func (s *E2ESetupRes) ProtoId() proto.ProtoIdType

type E2ESetupSuccess

type E2ESetupSuccess struct {
	Token []byte
}

type PathEndProps

type PathEndProps struct {
	Local    bool
	Transfer bool
}

func (*PathEndProps) ProtoId

func (pep *PathEndProps) ProtoId() proto.ProtoIdType

type Request

type Request struct {
	Which                    proto.Request_Which
	SegmentSetup             *SegmentSetup
	SegmentRenewal           *SegmentSetup
	SegmentTelesSetup        *SegmentTelesSetup
	SegmentTelesRenewal      *SegmentTelesSetup
	SegmentTeardown          *SegmentTeardownReq
	SegmentIndexConfirmation *SegmentIndexConfirmation
	SegmentCleanup           *SegmentCleanup
	E2ESetup                 *E2ESetup   `capnp:"e2eSetup"`
	E2ERenewal               *E2ESetup   `capnp:"e2eRenewal"`
	E2ECleanup               *E2ECleanup `capnp:"e2eCleanup"`
}

func (*Request) ProtoId

func (r *Request) ProtoId() proto.ProtoIdType

type Response

type Response struct {
	Which                    proto.Response_Which
	SegmentSetup             *SegmentSetupRes
	SegmentRenewal           *SegmentSetupRes
	SegmentTeardown          *SegmentTeardownRes
	SegmentIndexConfirmation *SegmentIndexConfirmationRes
	SegmentCleanup           *SegmentCleanupRes
	E2ESetup                 *E2ESetupRes   `capnp:"e2eSetup"`
	E2ERenewal               *E2ESetupRes   `capnp:"e2eRenewal"`
	E2ECleanup               *E2ECleanupRes `capnp:"e2eCleanup"`
	Accepted                 bool
	FailedHop                uint8 // only relevant if Accepted == false
}

func (*Response) ProtoId added in v0.6.0

func (r *Response) ProtoId() proto.ProtoIdType

type SegmentBase added in v0.6.0

type SegmentBase struct {
	ID    *SegmentReservationID `capnp:"id"`
	Index uint8
}

func (*SegmentBase) ProtoId added in v0.6.0

func (p *SegmentBase) ProtoId() proto.ProtoIdType

type SegmentCleanup

type SegmentCleanup struct {
	Base *SegmentBase
}

func (*SegmentCleanup) ProtoId

func (s *SegmentCleanup) ProtoId() proto.ProtoIdType

type SegmentCleanupRes added in v0.6.0

type SegmentCleanupRes struct {
	Base      *SegmentBase
	ErrorCode uint8
}

func (*SegmentCleanupRes) ProtoId added in v0.6.0

func (s *SegmentCleanupRes) ProtoId() proto.ProtoIdType

type SegmentIndexConfirmation

type SegmentIndexConfirmation struct {
	Base  *SegmentBase
	State proto.ReservationIndexState
}

func (*SegmentIndexConfirmation) ProtoId

type SegmentIndexConfirmationRes added in v0.6.0

type SegmentIndexConfirmationRes struct {
	Base      *SegmentBase
	ErrorCode uint8
}

func (*SegmentIndexConfirmationRes) ProtoId added in v0.6.0

type SegmentReservationID

type SegmentReservationID struct {
	ASID   []byte `capnp:"asid"`
	Suffix []byte // 4 bytes long
}

func (*SegmentReservationID) ProtoId

func (id *SegmentReservationID) ProtoId() proto.ProtoIdType

type SegmentSetup

type SegmentSetup struct {
	Base            *SegmentBase
	MinBW           uint8
	MaxBW           uint8
	SplitCls        uint8
	StartProps      PathEndProps
	EndProps        PathEndProps
	InfoField       []byte
	AllocationTrail []*AllocationBead
}

func (*SegmentSetup) ProtoId

func (s *SegmentSetup) ProtoId() proto.ProtoIdType

type SegmentSetupRes added in v0.6.0

type SegmentSetupRes struct {
	Base    *SegmentBase
	Which   proto.SegmentSetupResData_Which
	Failure *SegmentSetup
	Token   []byte
}

func (*SegmentSetupRes) ProtoId added in v0.6.0

func (s *SegmentSetupRes) ProtoId() proto.ProtoIdType

type SegmentTeardownReq

type SegmentTeardownReq struct {
	Base *SegmentBase
}

func (*SegmentTeardownReq) ProtoId

func (s *SegmentTeardownReq) ProtoId() proto.ProtoIdType

type SegmentTeardownRes added in v0.6.0

type SegmentTeardownRes struct {
	Base      *SegmentBase
	ErrorCode uint8 // relevant only if Response.Accepted == false
}

func (*SegmentTeardownRes) ProtoId added in v0.6.0

func (r *SegmentTeardownRes) ProtoId() proto.ProtoIdType

type SegmentTelesSetup

type SegmentTelesSetup struct {
	Setup  *SegmentSetup
	BaseID *SegmentReservationID
}

func (*SegmentTelesSetup) ProtoId

func (sts *SegmentTelesSetup) ProtoId() proto.ProtoIdType

Jump to

Keyboard shortcuts

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