Documentation
¶
Overview ¶
Code generated by ndn tlv codegen DO NOT EDIT.
Index ¶
- type CaProfile
- type CaProfileEncoder
- type CaProfileParsingContext
- type ChallengeReq
- type ChallengeReqEncoder
- type ChallengeReqParsingContext
- type ChallengeRes
- type ChallengeResEncoder
- type ChallengeResParsingContext
- type CipherMsg
- type CipherMsgEncoder
- type CipherMsgParsingContext
- type ErrorRes
- type ErrorResEncoder
- type ErrorResParsingContext
- type NewReq
- type NewReqEncoder
- type NewReqParsingContext
- type NewRes
- type NewResEncoder
- type NewResParsingContext
- type ProbeReq
- type ProbeReqEncoder
- type ProbeReqParsingContext
- type ProbeRes
- type ProbeResEncoder
- type ProbeResParsingContext
- type ProbeResVals
- type ProbeResValsEncoder
- type ProbeResValsParsingContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaProfile ¶
type CaProfile struct {
//+field:struct:spec.NameContainer
CaPrefix *spec.NameContainer `tlv:"0x81"`
//+field:string
CaInfo string `tlv:"0x83"`
//+field:sequence:string:string
ParamKey []string `tlv:"0x85"`
//+field:natural
MaxValidPeriod uint64 `tlv:"0x8B"`
//+field:wire
CaCert enc.Wire `tlv:"0x89"`
}
func ParseCaProfile ¶
type CaProfileEncoder ¶
type CaProfileEncoder struct {
Length uint
CaPrefix_encoder spec.NameContainerEncoder
ParamKey_subencoder []struct {
}
CaCert_length uint
}
func (*CaProfileEncoder) Encode ¶
func (encoder *CaProfileEncoder) Encode(value *CaProfile) enc.Wire
func (*CaProfileEncoder) EncodeInto ¶
func (encoder *CaProfileEncoder) EncodeInto(value *CaProfile, buf []byte)
func (*CaProfileEncoder) Init ¶
func (encoder *CaProfileEncoder) Init(value *CaProfile)
type CaProfileParsingContext ¶
type CaProfileParsingContext struct {
CaPrefix_context spec.NameContainerParsingContext
}
func (*CaProfileParsingContext) Init ¶
func (context *CaProfileParsingContext) Init()
type ChallengeReq ¶
type ChallengeReq struct {
//+field:string
Challenge string `tlv:"0xA1"`
//+field:map:string:string:0x87:[]byte:binary
Params map[string][]byte `tlv:"0x85"`
}
func ParseChallengeReq ¶
func ParseChallengeReq(reader enc.WireView, ignoreCritical bool) (*ChallengeReq, error)
func (*ChallengeReq) Bytes ¶
func (value *ChallengeReq) Bytes() []byte
func (*ChallengeReq) Encode ¶
func (value *ChallengeReq) Encode() enc.Wire
type ChallengeReqEncoder ¶
func (*ChallengeReqEncoder) Encode ¶
func (encoder *ChallengeReqEncoder) Encode(value *ChallengeReq) enc.Wire
func (*ChallengeReqEncoder) EncodeInto ¶
func (encoder *ChallengeReqEncoder) EncodeInto(value *ChallengeReq, buf []byte)
func (*ChallengeReqEncoder) Init ¶
func (encoder *ChallengeReqEncoder) Init(value *ChallengeReq)
type ChallengeReqParsingContext ¶
type ChallengeReqParsingContext struct {
}
func (*ChallengeReqParsingContext) Init ¶
func (context *ChallengeReqParsingContext) Init()
func (*ChallengeReqParsingContext) Parse ¶
func (context *ChallengeReqParsingContext) Parse(reader enc.WireView, ignoreCritical bool) (*ChallengeReq, error)
type ChallengeRes ¶
type ChallengeRes struct {
//+field:natural
Status uint64 `tlv:"0x9B"`
//+field:string:optional
ChalStatus optional.Optional[string] `tlv:"0xA3"`
//+field:natural:optional
RemainTries optional.Optional[uint64] `tlv:"0xA5"`
//+field:natural:optional
RemainTime optional.Optional[uint64] `tlv:"0xA7"`
//+field:struct:spec.NameContainer
CertName *spec.NameContainer `tlv:"0xA9"`
//+field:struct:spec.NameContainer
ForwardingHint *spec.NameContainer `tlv:"0x1e"`
//+field:map:string:string:0x87:[]byte:binary
Params map[string][]byte `tlv:"0x85"`
}
func ParseChallengeRes ¶
func ParseChallengeRes(reader enc.WireView, ignoreCritical bool) (*ChallengeRes, error)
func (*ChallengeRes) Bytes ¶
func (value *ChallengeRes) Bytes() []byte
func (*ChallengeRes) Encode ¶
func (value *ChallengeRes) Encode() enc.Wire
type ChallengeResEncoder ¶
type ChallengeResEncoder struct {
Length uint
CertName_encoder spec.NameContainerEncoder
ForwardingHint_encoder spec.NameContainerEncoder
Params_valencoder map[string]*struct {
}
}
func (*ChallengeResEncoder) Encode ¶
func (encoder *ChallengeResEncoder) Encode(value *ChallengeRes) enc.Wire
func (*ChallengeResEncoder) EncodeInto ¶
func (encoder *ChallengeResEncoder) EncodeInto(value *ChallengeRes, buf []byte)
func (*ChallengeResEncoder) Init ¶
func (encoder *ChallengeResEncoder) Init(value *ChallengeRes)
type ChallengeResParsingContext ¶
type ChallengeResParsingContext struct {
CertName_context spec.NameContainerParsingContext
ForwardingHint_context spec.NameContainerParsingContext
}
func (*ChallengeResParsingContext) Init ¶
func (context *ChallengeResParsingContext) Init()
func (*ChallengeResParsingContext) Parse ¶
func (context *ChallengeResParsingContext) Parse(reader enc.WireView, ignoreCritical bool) (*ChallengeRes, error)
type CipherMsg ¶
type CipherMsg struct {
//+field:binary
InitVec []byte `tlv:"0x9D"`
//+field:binary
AuthNTag []byte `tlv:"0xAF"`
//+field:binary
Payload []byte `tlv:"0x9F"`
}
func ParseCipherMsg ¶
type CipherMsgEncoder ¶
type CipherMsgEncoder struct {
Length uint
}
func (*CipherMsgEncoder) Encode ¶
func (encoder *CipherMsgEncoder) Encode(value *CipherMsg) enc.Wire
func (*CipherMsgEncoder) EncodeInto ¶
func (encoder *CipherMsgEncoder) EncodeInto(value *CipherMsg, buf []byte)
func (*CipherMsgEncoder) Init ¶
func (encoder *CipherMsgEncoder) Init(value *CipherMsg)
type CipherMsgParsingContext ¶
type CipherMsgParsingContext struct {
}
func (*CipherMsgParsingContext) Init ¶
func (context *CipherMsgParsingContext) Init()
type ErrorRes ¶
type ErrorRes struct {
//+field:natural
ErrCode uint64 `tlv:"0xAB"`
//+field:string
ErrInfo string `tlv:"0xAD"`
}
func ParseErrorRes ¶
type ErrorResEncoder ¶
type ErrorResEncoder struct {
Length uint
}
func (*ErrorResEncoder) EncodeInto ¶
func (encoder *ErrorResEncoder) EncodeInto(value *ErrorRes, buf []byte)
func (*ErrorResEncoder) Init ¶
func (encoder *ErrorResEncoder) Init(value *ErrorRes)
type ErrorResParsingContext ¶
type ErrorResParsingContext struct {
}
func (*ErrorResParsingContext) Init ¶
func (context *ErrorResParsingContext) Init()
type NewReq ¶
type NewReqEncoder ¶
func (*NewReqEncoder) EncodeInto ¶
func (encoder *NewReqEncoder) EncodeInto(value *NewReq, buf []byte)
func (*NewReqEncoder) Init ¶
func (encoder *NewReqEncoder) Init(value *NewReq)
type NewReqParsingContext ¶
type NewReqParsingContext struct {
}
func (*NewReqParsingContext) Init ¶
func (context *NewReqParsingContext) Init()
type NewRes ¶
type NewResEncoder ¶
type NewResEncoder struct {
Length uint
Challenge_subencoder []struct {
}
}
func (*NewResEncoder) EncodeInto ¶
func (encoder *NewResEncoder) EncodeInto(value *NewRes, buf []byte)
func (*NewResEncoder) Init ¶
func (encoder *NewResEncoder) Init(value *NewRes)
type NewResParsingContext ¶
type NewResParsingContext struct {
}
func (*NewResParsingContext) Init ¶
func (context *NewResParsingContext) Init()
type ProbeReq ¶
type ProbeReq struct {
//+field:map:string:string:0x87:[]byte:binary
Params map[string][]byte `tlv:"0x85"`
}
func ParseProbeReq ¶
type ProbeReqEncoder ¶
func (*ProbeReqEncoder) EncodeInto ¶
func (encoder *ProbeReqEncoder) EncodeInto(value *ProbeReq, buf []byte)
func (*ProbeReqEncoder) Init ¶
func (encoder *ProbeReqEncoder) Init(value *ProbeReq)
type ProbeReqParsingContext ¶
type ProbeReqParsingContext struct {
}
func (*ProbeReqParsingContext) Init ¶
func (context *ProbeReqParsingContext) Init()
type ProbeRes ¶
type ProbeRes struct {
//+field:sequence:*ProbeResVals:struct:ProbeResVals
Vals []*ProbeResVals `tlv:"0x8D"`
//+field:struct:spec.NameContainer
RedirectPrefix *spec.NameContainer `tlv:"0xB3"`
}
func ParseProbeRes ¶
type ProbeResEncoder ¶
type ProbeResEncoder struct {
Length uint
Vals_subencoder []struct {
Vals_encoder ProbeResValsEncoder
}
RedirectPrefix_encoder spec.NameContainerEncoder
}
func (*ProbeResEncoder) EncodeInto ¶
func (encoder *ProbeResEncoder) EncodeInto(value *ProbeRes, buf []byte)
func (*ProbeResEncoder) Init ¶
func (encoder *ProbeResEncoder) Init(value *ProbeRes)
type ProbeResParsingContext ¶
type ProbeResParsingContext struct {
Vals_context ProbeResValsParsingContext
RedirectPrefix_context spec.NameContainerParsingContext
}
func (*ProbeResParsingContext) Init ¶
func (context *ProbeResParsingContext) Init()
type ProbeResVals ¶
type ProbeResVals struct {
//+field:name
Response enc.Name `tlv:"0x07"`
//+field:natural:optional
MaxSuffixLength optional.Optional[uint64] `tlv:"0x8F"`
}
func ParseProbeResVals ¶
func ParseProbeResVals(reader enc.WireView, ignoreCritical bool) (*ProbeResVals, error)
func (*ProbeResVals) Bytes ¶
func (value *ProbeResVals) Bytes() []byte
func (*ProbeResVals) Encode ¶
func (value *ProbeResVals) Encode() enc.Wire
type ProbeResValsEncoder ¶
func (*ProbeResValsEncoder) Encode ¶
func (encoder *ProbeResValsEncoder) Encode(value *ProbeResVals) enc.Wire
func (*ProbeResValsEncoder) EncodeInto ¶
func (encoder *ProbeResValsEncoder) EncodeInto(value *ProbeResVals, buf []byte)
func (*ProbeResValsEncoder) Init ¶
func (encoder *ProbeResValsEncoder) Init(value *ProbeResVals)
type ProbeResValsParsingContext ¶
type ProbeResValsParsingContext struct {
}
func (*ProbeResValsParsingContext) Init ¶
func (context *ProbeResValsParsingContext) Init()
func (*ProbeResValsParsingContext) Parse ¶
func (context *ProbeResValsParsingContext) Parse(reader enc.WireView, ignoreCritical bool) (*ProbeResVals, error)
Click to show internal directories.
Click to hide internal directories.