gpg

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostOwnerTrust

func GetHostOwnerTrust() ([]byte, error)

func GetHostPubKey

func GetHostPubKey() ([]byte, error)

func IsGpgTunnelRunning

func IsGpgTunnelRunning(
	user string,
	ctx context.Context,
	client *ssh.Client,
	log log.Logger,
) bool

Types

type GPGConf

type GPGConf struct {
	PublicKey  []byte
	OwnerTrust []byte
	SocketPath string
	GitKey     string
}

func (*GPGConf) ImportGpgKey

func (g *GPGConf) ImportGpgKey() error

func (*GPGConf) ImportOwnerTrust

func (g *GPGConf) ImportOwnerTrust() error

func (*GPGConf) SetupGpgConf

func (g *GPGConf) SetupGpgConf() error

func (*GPGConf) SetupRemoteSocketDirTree

func (g *GPGConf) SetupRemoteSocketDirTree() error
func (g *GPGConf) SetupRemoteSocketLink() error

This function will normalize the location of the forwarded socket. the forwarding that happens in pkg/ssh/forward.go will forward the socket in the same path (eg. /Users/foo/.gnupg/S.gpg-agent) This function will use hardlinks to normalize it to where linux usually expects the socket to be.

func (*GPGConf) StopGpgAgent

func (g *GPGConf) StopGpgAgent() error

Jump to

Keyboard shortcuts

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