Help us shape the future of Go! Take the 2026 Go Developer Survey

ssh

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 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 {
	plugin.BasePlugin
	// 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