Documentation ¶
Index ¶
- type Context
- func (c *Context) Armor() bool
- func (c *Context) Cert() bool
- func (c *Context) Debug() bool
- func (c *Context) GDump() bool
- func (c *Context) Get(code OptCode) bool
- func (c *Context) Integer() bool
- func (c *Context) Literal() bool
- func (c *Context) Marker() bool
- func (c *Context) Private() bool
- func (c *Context) Set(code OptCode, f bool)
- func (c *Context) String() string
- func (c *Context) UTC() bool
- type OptCode
- type OptFunc
- type SymAlgMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { SymAlgMode SigCreationTime *values.DateTime KeyCreationTime *values.DateTime // contains filtered or unexported fields }
Context class fir parsing packets
type OptCode ¶
type OptCode int
Level is log level
const ( UNKNOWN OptCode = iota //unknown option ARMOR //accepts ASCII input only CERT //dumps attested certification in signature packets (tag 2) DEBUG //for debug GDUMP //selects alternate (GnuPG type) dump format (not used) INTEGER //dumps multi-precision integers LITERAL //dumps literal packets (tag 11) MARKER //dumps marker packets (tag 10) PRIVATE //dumps private packets (tag 60-63) UTC //output UTC time )
type OptFunc ¶
type OptFunc func(*Context)
OptFunc is self-referential function for functional options pattern
func SetByString ¶
SetByString returns closure as type OptFunc
type SymAlgMode ¶
type SymAlgMode int
SymAlgMode as Sym. algorithm mode
const ( //ModeNotSpecified as Not Specified ModeNotSpecified SymAlgMode = iota //ModeSymEnc as Sym. Encryption Mode ModeSymEnc //ModePubEnc as Pubkey Encryption Mode ModePubEnc )
func (SymAlgMode) IsPubEnc ¶
func (mode SymAlgMode) IsPubEnc() bool
IsPubEnc is true when mode is ModePubEnc
func (SymAlgMode) IsSymEnc ¶
func (mode SymAlgMode) IsSymEnc() bool
IsSymEnc is true when mode is ModeSymEnc
func (*SymAlgMode) SetAlgPubEnc ¶
func (mode *SymAlgMode) SetAlgPubEnc()
SetAlgPubEnc sets SymAlgMode to SymAlgModePubEnc
func (*SymAlgMode) SetAlgSymEnc ¶
func (mode *SymAlgMode) SetAlgSymEnc()
SetAlgSymEnc sets SymAlgMode to SymAlgModeSymEnc
func (SymAlgMode) String ¶
func (mode SymAlgMode) String() string
Click to show internal directories.
Click to hide internal directories.