tags

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: Apache-2.0 Imports: 16 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 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() (*info.Item, error)
}

Subs is parsing interface

func NewSubs

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

NewSubs returns Tags instance for pasing

type Tag08 added in v0.3.0

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

Tag08 class for Compressed Data Packet

func (*Tag08) Parse added in v0.3.0

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

Parse parsing Compressed Data Packet

func (*Tag08) Reader added in v0.3.0

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

Reader returns io.Reader of compressed data

type Tags

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

Tags parsing interface

func NewTag

func NewTag(op *openpgp.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