Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
Agent structure wraps running gpg-agent process.
func (*Agent) Close ¶
func (a *Agent) Close(ct ConnectorType)
Close stops serving requests for a particular ConnectorType.
func (*Agent) GetConnector ¶ added in v1.2.0
func (a *Agent) GetConnector(ct ConnectorType) *Connector
GetConnector returns pointer to requested connector or nil.
func (*Agent) Serve ¶
func (a *Agent) Serve(ct ConnectorType) error
Serve handles serving requests for a particular ConnectorType.
func (*Agent) SessionLock ¶
func (a *Agent) SessionLock()
SessionLock sets flag to indicate that user session is presently locked.
func (*Agent) SessionUnlock ¶
func (a *Agent) SessionUnlock()
SessionUnlock sets flag to indicate that user session is presently unlocked.
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector keeps parameters to be able to serve particular ConnectorType.
func NewConnector ¶
func NewConnector(index ConnectorType, pathGPG, pathGUI, name string, locked *int32, wg *sync.WaitGroup) *Connector
NewConnector initializes Connector of particular ConnectorType.
type ConnectorType ¶
type ConnectorType int
ConnectorType to define what we support.
const ( ConnectorSockAgent ConnectorType = iota ConnectorSockAgentExtra ConnectorSockAgentBrowser ConnectorSockAgentSSH ConnectorPipeSSH ConnectorSockAgentCygwinSSH ConnectorExtraPort ConnectorXShell )
All possible Connector Types.
func (ConnectorType) String ¶
func (ct ConnectorType) String() string
Click to show internal directories.
Click to hide internal directories.