ssh

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

Plugin shares SSH credentials with containers. It provides:

  • SSH agent socket forwarding (so private keys never leave the host)
  • SSH config file injection (~/.ssh/config)
  • SSH public key injection (~/.ssh/*.pub, for git commit signing)
  • Git SSH signing config extraction (only when gpg.format=ssh)

func New

func New() *Plugin

New creates an SSH plugin that uses the real user environment.

func (*Plugin) Name

func (p *Plugin) Name() string

Name returns the plugin identifier.

func (*Plugin) PreContainerRun

PreContainerRun composes results from agent forwarding, config/key copying, and git signing config. Each sub-function is fail-safe: partial results are returned if one component fails.

Jump to

Keyboard shortcuts

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