Documentation
¶
Index ¶
- Constants
- func DetectAgentSocketPath() (string, error)
- func ForwardAgent(ctx context.Context, client client2.BaseWorkspaceClient) error
- func GetHostOwnerTrust() ([]byte, error)
- func GetHostPubKey() ([]byte, error)
- func IsGpgTunnelRunning(ctx context.Context, user string, client *ssh.Client) bool
- func SetupGpgConf() error
- func SigningKey(ctx context.Context) string
- func StopGpgAgent() error
- type GPGConf
Constants ¶
View Source
const ContainerSocketPath = "/tmp/S.gpg-agent"
ContainerSocketPath is the container-local path the host gpg-agent socket is forwarded to; any workspace user can reach it.
Variables ¶
This section is empty.
Functions ¶
func DetectAgentSocketPath ¶ added in v1.10.0
DetectAgentSocketPath returns the host gpg-agent extra socket path, used to reverse-forward the agent into a workspace.
func ForwardAgent ¶
func ForwardAgent(ctx context.Context, client client2.BaseWorkspaceClient) error
ForwardAgent starts a supervised background SSH connection that forwards the local GPG agent, restarting it until ctx is cancelled.
func GetHostOwnerTrust ¶
func GetHostPubKey ¶
func IsGpgTunnelRunning ¶
func SetupGpgConf ¶ added in v1.11.0
func SetupGpgConf() error
func SigningKey ¶ added in v1.10.0
SigningKey returns the user's GPG signing key from git config, or "" when no key is configured or the signing format is SSH (SSH signing keys are handled by the separate SSH signature helper).
func StopGpgAgent ¶ added in v1.11.0
func StopGpgAgent() error
Types ¶
type GPGConf ¶
func (*GPGConf) ImportGpgKey ¶
func (*GPGConf) ImportOwnerTrust ¶
func (*GPGConf) SetupRemoteSocketDirTree ¶
func (*GPGConf) SetupRemoteSocketLink ¶
Click to show internal directories.
Click to hide internal directories.