tags

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncMap

type FuncMap map[int]NewPacket

FuncMap is type of NewPacket function list.

func (FuncMap) Get

func (fm FuncMap) Get(i int, defFunc NewPacket) NewPacket

Get returns NewPacket function.

type NewPacket

type NewPacket func(*context.Context, values.TagID, []byte) Tags

NewPacket is function value of parsing Packet

type NewSubpacket

type NewSubpacket func(*context.Context, values.SuboacketID, []byte) Subs

NewSubpacket is function value of parsing Sub-packet

type Packets

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

Packets class is context data for OpenPGP packets

func NewPackets

func NewPackets(cxt *context.Context, reader io.Reader) (*Packets, error)

func (*Packets) Next

func (p *Packets) Next() error

func (*Packets) Parse

func (p *Packets) Parse() (*result.Item, error)

type SubFuncMap

type SubFuncMap map[int]NewSubpacket

SubFuncMap is type of NewPacket function list.

func (SubFuncMap) Get

func (fm SubFuncMap) Get(i int, defFunc NewSubpacket) NewSubpacket

Get returns NewSubpacket function.

type Subs

type Subs interface {
	Parse() (*result.Item, error)
}

Subs is parsing interface

func NewSubs

func NewSubs(cxt *context.Context, osp *packet.OpaqueSubpacket, tagID values.TagID) Subs

NewSubs returns Tags instance for pasing

type Tag08

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

Tag08 class for Compressed Data Packet

func (*Tag08) Parse

func (t *Tag08) Parse() (*result.Item, error)

Parse parsing Compressed Data Packet

func (*Tag08) Reader

func (t *Tag08) Reader() io.Reader

Reader returns io.Reader of compressed data

func (*Tag08) ToItem

func (t *Tag08) ToItem() *result.Item

ToItem returns result.Item instance

type Tags

type Tags interface {
	Parse() (*result.Item, error)
}

Tags parsing interface

func NewTag

func NewTag(op *packet.OpaquePacket, cxt *context.Context) Tags

NewTag returns Tags instance for pasing

Jump to

Keyboard shortcuts

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