server

package
v0.21.0 Latest Latest
Warning

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

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

Documentation

Overview

Package server implements a gpg-agent server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPG

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

GPG represents a gpg-agent server.

func NewGPG

func NewGPG(piv *piv.KeyService, pinentry gpg.PINEntryService,
	log *zap.Logger, path string, n *notify.Notify) *GPG

NewGPG initialises a new gpg-agent server.

func (*GPG) Serve

func (g *GPG) Serve(ctx context.Context, l net.Listener, exit *time.Ticker,
	timeout time.Duration) error

Serve starts serving signing requests, and returns when the request socket is closed, the context is cancelled, or an error occurs.

type SSH

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

SSH represents an ssh-agent server.

func NewSSH

func NewSSH(l *zap.Logger) *SSH

NewSSH initialises a new ssh-agent server.

func (*SSH) Serve

func (s *SSH) Serve(ctx context.Context, a *ssh.Agent, l net.Listener,
	exit *time.Ticker, timeout time.Duration) error

Serve starts serving signing requests, and returns when the request socket is closed, the context is cancelled, or an error occurs.

Jump to

Keyboard shortcuts

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