tlv

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by ndn tlv codegen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaProfile

type CaProfile struct {
	//+field:struct:NameContainer
	CaPrefix *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

func ParseCaProfile(reader enc.WireView, ignoreCritical bool) (*CaProfile, error)

func (*CaProfile) Bytes

func (value *CaProfile) Bytes() []byte

func (*CaProfile) Encode

func (value *CaProfile) Encode() enc.Wire

type CaProfileEncoder

type CaProfileEncoder struct {
	CaPrefix_encoder NameContainerEncoder

	ParamKey_subencoder []struct {
	}

	CaCert_length uint
	// contains filtered or unexported fields
}

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 NameContainerParsingContext
}

func (*CaProfileParsingContext) Init

func (context *CaProfileParsingContext) Init()

func (*CaProfileParsingContext) Parse

func (context *CaProfileParsingContext) Parse(reader enc.WireView, ignoreCritical bool) (*CaProfile, error)

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

type ChallengeReqEncoder struct {
	Params_valencoder map[string]*struct {
	}
	// contains filtered or unexported fields
}

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:NameContainer
	CertName *NameContainer `tlv:"0xA9"`
	//+field:struct:NameContainer
	ForwardingHint *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 {
	CertName_encoder       NameContainerEncoder
	ForwardingHint_encoder NameContainerEncoder
	Params_valencoder      map[string]*struct {
	}
	// contains filtered or unexported fields
}

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       NameContainerParsingContext
	ForwardingHint_context 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

func ParseCipherMsg(reader enc.WireView, ignoreCritical bool) (*CipherMsg, error)

func (*CipherMsg) Bytes

func (value *CipherMsg) Bytes() []byte

func (*CipherMsg) Encode

func (value *CipherMsg) Encode() enc.Wire

type CipherMsgEncoder

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

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()

func (*CipherMsgParsingContext) Parse

func (context *CipherMsgParsingContext) Parse(reader enc.WireView, ignoreCritical bool) (*CipherMsg, error)

type ErrorRes

type ErrorRes struct {
	//+field:natural
	ErrCode uint64 `tlv:"0xAB"`
	//+field:string
	ErrInfo string `tlv:"0xAD"`
}

func ParseErrorRes

func ParseErrorRes(reader enc.WireView, ignoreCritical bool) (*ErrorRes, error)

func (*ErrorRes) Bytes

func (value *ErrorRes) Bytes() []byte

func (*ErrorRes) Encode

func (value *ErrorRes) Encode() enc.Wire

type ErrorResEncoder

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

func (*ErrorResEncoder) Encode

func (encoder *ErrorResEncoder) Encode(value *ErrorRes) enc.Wire

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()

func (*ErrorResParsingContext) Parse

func (context *ErrorResParsingContext) Parse(reader enc.WireView, ignoreCritical bool) (*ErrorRes, error)

type NameContainer

type NameContainer struct {
	//+field:name
	Name enc.Name `tlv:"0x07"`
}

func ParseNameContainer

func ParseNameContainer(reader enc.WireView, ignoreCritical bool) (*NameContainer, error)

func (*NameContainer) Bytes

func (value *NameContainer) Bytes() []byte

func (*NameContainer) Encode

func (value *NameContainer) Encode() enc.Wire

type NameContainerEncoder

type NameContainerEncoder struct {
	Name_length uint
	// contains filtered or unexported fields
}

func (*NameContainerEncoder) Encode

func (encoder *NameContainerEncoder) Encode(value *NameContainer) enc.Wire

func (*NameContainerEncoder) EncodeInto

func (encoder *NameContainerEncoder) EncodeInto(value *NameContainer, buf []byte)

func (*NameContainerEncoder) Init

func (encoder *NameContainerEncoder) Init(value *NameContainer)

type NameContainerParsingContext

type NameContainerParsingContext struct {
}

func (*NameContainerParsingContext) Init

func (context *NameContainerParsingContext) Init()

func (*NameContainerParsingContext) Parse

func (context *NameContainerParsingContext) Parse(reader enc.WireView, ignoreCritical bool) (*NameContainer, error)

type NewReq

type NewReq struct {
	//+field:binary
	EcdhPub []byte `tlv:"0x91"`
	//+field:wire
	CertReq enc.Wire `tlv:"0x93"`
}

func ParseNewReq

func ParseNewReq(reader enc.WireView, ignoreCritical bool) (*NewReq, error)

func (*NewReq) Bytes

func (value *NewReq) Bytes() []byte

func (*NewReq) Encode

func (value *NewReq) Encode() enc.Wire

type NewReqEncoder

type NewReqEncoder struct {
	CertReq_length uint
	// contains filtered or unexported fields
}

func (*NewReqEncoder) Encode

func (encoder *NewReqEncoder) Encode(value *NewReq) enc.Wire

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()

func (*NewReqParsingContext) Parse

func (context *NewReqParsingContext) Parse(reader enc.WireView, ignoreCritical bool) (*NewReq, error)

type NewRes

type NewRes struct {
	//+field:binary
	EcdhPub []byte `tlv:"0x91"`
	//+field:binary
	Salt []byte `tlv:"0x95"`
	//+field:binary
	ReqId []byte `tlv:"0x97"`
	//+field:sequence:string:string
	Challenge []string `tlv:"0x99"`
}

func ParseNewRes

func ParseNewRes(reader enc.WireView, ignoreCritical bool) (*NewRes, error)

func (*NewRes) Bytes

func (value *NewRes) Bytes() []byte

func (*NewRes) Encode

func (value *NewRes) Encode() enc.Wire

type NewResEncoder

type NewResEncoder struct {
	Challenge_subencoder []struct {
	}
	// contains filtered or unexported fields
}

func (*NewResEncoder) Encode

func (encoder *NewResEncoder) Encode(value *NewRes) enc.Wire

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()

func (*NewResParsingContext) Parse

func (context *NewResParsingContext) Parse(reader enc.WireView, ignoreCritical bool) (*NewRes, error)

type ProbeReq

type ProbeReq struct {
	//+field:map:string:string:0x87:[]byte:binary
	Params map[string][]byte `tlv:"0x85"`
}

func ParseProbeReq

func ParseProbeReq(reader enc.WireView, ignoreCritical bool) (*ProbeReq, error)

func (*ProbeReq) Bytes

func (value *ProbeReq) Bytes() []byte

func (*ProbeReq) Encode

func (value *ProbeReq) Encode() enc.Wire

type ProbeReqEncoder

type ProbeReqEncoder struct {
	Params_valencoder map[string]*struct {
	}
	// contains filtered or unexported fields
}

func (*ProbeReqEncoder) Encode

func (encoder *ProbeReqEncoder) Encode(value *ProbeReq) enc.Wire

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()

func (*ProbeReqParsingContext) Parse

func (context *ProbeReqParsingContext) Parse(reader enc.WireView, ignoreCritical bool) (*ProbeReq, error)

type ProbeRes

type ProbeRes struct {
	//+field:sequence:*ProbeResVals:struct:ProbeResVals
	Vals []*ProbeResVals `tlv:"0x8D"`
	//+field:struct:NameContainer
	RedirectPrefix *NameContainer `tlv:"0xB3"`
}

func ParseProbeRes

func ParseProbeRes(reader enc.WireView, ignoreCritical bool) (*ProbeRes, error)

func (*ProbeRes) Bytes

func (value *ProbeRes) Bytes() []byte

func (*ProbeRes) Encode

func (value *ProbeRes) Encode() enc.Wire

type ProbeResEncoder

type ProbeResEncoder struct {
	Vals_subencoder []struct {
		Vals_encoder ProbeResValsEncoder
	}
	RedirectPrefix_encoder NameContainerEncoder
	// contains filtered or unexported fields
}

func (*ProbeResEncoder) Encode

func (encoder *ProbeResEncoder) Encode(value *ProbeRes) enc.Wire

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 NameContainerParsingContext
}

func (*ProbeResParsingContext) Init

func (context *ProbeResParsingContext) Init()

func (*ProbeResParsingContext) Parse

func (context *ProbeResParsingContext) Parse(reader enc.WireView, ignoreCritical bool) (*ProbeRes, error)

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

type ProbeResValsEncoder struct {
	Response_length uint
	// contains filtered or unexported fields
}

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)

Jump to

Keyboard shortcuts

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