Documentation
¶
Overview ¶
Package assuan implements an libgcrypt Assuan protocol server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventStrings ¶
func EventStrings() []string
EventStrings returns a slice of all String values of the enum
func PercentDecodeSExp ¶ added in v0.9.0
PercentDecodeSExp replaces the percent-encoded byte sequences with their raw byte values.
func PercentEncodeSExp ¶ added in v0.9.0
PercentEncodeSExp replaces the raw byte values with their percent-encoded byte sequences.
func StateStrings ¶
func StateStrings() []string
StateStrings returns a slice of all String values of the enum
Types ¶
type Assuan ¶
Assuan is the Assuan protocol FSM.
func New ¶
func New(rw io.ReadWriter, log *zap.Logger, n *notify.Notify, ks ...KeyService) *Assuan
New initialises a new gpg-agent server assuan FSM. It returns a *fsm.Machine configured in the ready state.
type Event ¶
Event represents an Assuan event.
func EventString ¶
EventString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Event) IsAEvent ¶
IsAEvent returns "true" if the value is listed in the enum definition. "false" otherwise
func (Event) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface for Event
func (*Event) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface for Event
type KeyService ¶ added in v0.4.0
type KeyService interface { Name() string HaveKey([][]byte) (bool, []byte, error) Keygrips() ([][]byte, error) GetSigner([]byte) (crypto.Signer, error) GetDecrypter([]byte) (crypto.Decrypter, error) }
The KeyService interface provides functions used by the Assuan FSM.
type State ¶
State represents an Assuan state.
func StateString ¶
StateString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (State) IsAState ¶
IsAState returns "true" if the value is listed in the enum definition. "false" otherwise
func (State) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface for State
func (*State) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface for State